mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Make editor popover toolbar keyboard focusable (#25169)
* Remove redundant class conflicting with focus styling * Make the toolbar in the popover focusable via keyboard * Focus to the first context menu item via keyboard only GitOrigin-RevId: 7d3e2af4ba96654b5b2312b3999483c2a439b406
This commit is contained in:
+8
-8
@@ -121,7 +121,7 @@ describe('<CodeMirrorEditor/> toolbar in Rich Text mode', function () {
|
||||
mountEditor('test')
|
||||
selectAll()
|
||||
|
||||
clickToolbarButton('More')
|
||||
clickToolbarButton('More editor toolbar items')
|
||||
clickToolbarButton('Bullet List')
|
||||
|
||||
cy.get('.cm-content').should('have.text', ' test')
|
||||
@@ -134,7 +134,7 @@ describe('<CodeMirrorEditor/> toolbar in Rich Text mode', function () {
|
||||
mountEditor('test')
|
||||
selectAll()
|
||||
|
||||
clickToolbarButton('More')
|
||||
clickToolbarButton('More editor toolbar items')
|
||||
clickToolbarButton('Numbered List')
|
||||
|
||||
cy.get('.cm-content').should('have.text', ' test')
|
||||
@@ -147,7 +147,7 @@ describe('<CodeMirrorEditor/> toolbar in Rich Text mode', function () {
|
||||
mountEditor('test')
|
||||
selectAll()
|
||||
|
||||
clickToolbarButton('More')
|
||||
clickToolbarButton('More editor toolbar items')
|
||||
clickToolbarButton('Numbered List')
|
||||
|
||||
// expose the markup
|
||||
@@ -180,7 +180,7 @@ describe('<CodeMirrorEditor/> toolbar in Rich Text mode', function () {
|
||||
mountEditor('test')
|
||||
selectAll()
|
||||
|
||||
clickToolbarButton('More')
|
||||
clickToolbarButton('More editor toolbar items')
|
||||
clickToolbarButton('Numbered List')
|
||||
|
||||
// expose the markup
|
||||
@@ -205,7 +205,7 @@ describe('<CodeMirrorEditor/> toolbar in Rich Text mode', function () {
|
||||
mountEditor('test\ntest')
|
||||
selectAll()
|
||||
|
||||
clickToolbarButton('More')
|
||||
clickToolbarButton('More editor toolbar items')
|
||||
clickToolbarButton('Numbered List')
|
||||
|
||||
// expose the markup
|
||||
@@ -242,7 +242,7 @@ describe('<CodeMirrorEditor/> toolbar in Rich Text mode', function () {
|
||||
|
||||
cy.get('.cm-line').eq(1).click()
|
||||
|
||||
clickToolbarButton('More')
|
||||
clickToolbarButton('More editor toolbar items')
|
||||
clickToolbarButton('Numbered List')
|
||||
|
||||
cy.get('.cm-line').eq(0).type('{upArrow}')
|
||||
@@ -263,7 +263,7 @@ describe('<CodeMirrorEditor/> toolbar in Rich Text mode', function () {
|
||||
mountEditor('test\ntest')
|
||||
selectAll()
|
||||
|
||||
clickToolbarButton('More')
|
||||
clickToolbarButton('More editor toolbar items')
|
||||
clickToolbarButton('Numbered List')
|
||||
|
||||
// expose the markup
|
||||
@@ -300,7 +300,7 @@ describe('<CodeMirrorEditor/> toolbar in Rich Text mode', function () {
|
||||
|
||||
cy.get('.cm-line').eq(0).click()
|
||||
|
||||
clickToolbarButton('More')
|
||||
clickToolbarButton('More editor toolbar items')
|
||||
clickToolbarButton('Numbered List')
|
||||
|
||||
// expose the markup
|
||||
|
||||
Reference in New Issue
Block a user