Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit f5f2c6a

Browse files
committed
add a few assertions before taking sudoku snapshots
1 parent 54355a5 commit f5f2c6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/visual-sudoku/src/App.cy-spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ describe('App', () => {
88
mount(<App />)
99

1010
cy.log('**parts that do not change**')
11+
// make sure the text has loaded and rendered
12+
cy.contains('New Game').should('be.visible')
13+
cy.contains('footer', 'Github').should('be.visible')
14+
1115
cy.get('header').matchImageSnapshot('header')
1216
cy.get('.status__numbers').matchImageSnapshot('numbers')
1317
cy.get('.status__actions').matchImageSnapshot('actions')

0 commit comments

Comments
 (0)