Skip to content

Commit 271ed6e

Browse files
committed
Add Cypress test for a simple slideshow
1 parent f70e151 commit 271ed6e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cypress/e2e/slideshow.cy.js

+10
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ context('Without a config parameter', () => {
99
})
1010
})
1111
})
12+
13+
context('With a valid config', () => {
14+
beforeEach(() => {
15+
cy.visit('/?config=/cypress/fixtures/conf.json')
16+
})
17+
18+
it('shows images', () => {
19+
cy.get('#viewer img').should('have.attr', 'src').should('eq', '/cypress/fixtures/camera.jpg')
20+
})
21+
})

0 commit comments

Comments
 (0)