mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 06:01:24 +02:00
prevent code highlighting test failure due to timeout (#4423)
This commit is contained in:
@@ -16,7 +16,12 @@ describe('code highlighting', () => {
|
||||
.should('have.css', 'color', 'rgb(153, 0, 85)')
|
||||
})
|
||||
|
||||
it('highlights javascript syntax', () => {
|
||||
it(
|
||||
'highlights javascript syntax',
|
||||
{
|
||||
defaultCommandTimeout: 10000, // test was not passing within 4s default
|
||||
},
|
||||
() => {
|
||||
const JSCode = 'const slateVar = 30;{enter}'
|
||||
cy.get('select').select('JavaScript') // Select the 'JavaScript' option
|
||||
|
||||
@@ -31,5 +36,6 @@ describe('code highlighting', () => {
|
||||
.eq(0)
|
||||
.should('contain', 'const')
|
||||
.should('have.css', 'color', 'rgb(0, 119, 170)')
|
||||
})
|
||||
}
|
||||
)
|
||||
})
|
||||
|
Reference in New Issue
Block a user