1
0
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:
Dylan Schiemann
2021-08-07 05:46:36 -07:00
committed by GitHub
parent 1f3a489afd
commit e4e27575a0

View File

@@ -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)')
})
}
)
})