Skip to content

Commit ce4f5d6

Browse files
committed
Simplify element selection on cypress test
1 parent 948d0c8 commit ce4f5d6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cypress/e2e/playground.cy.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ describe('Cypress Playground', () => {
3333
"You've been successfully subscribed to our newsletter.",
3434
).should('be.visible')
3535
cy.tick(3000)
36-
cy.contains(
37-
'#click span#success',
38-
"You've been successfully subscribed to our newsletter.",
39-
).should('not.be.visible')
36+
cy.get('#click span#success').should('not.be.visible')
4037
})
4138

4239
it("types in an input which 'signs' a form, then asserts it's signed", () => {

0 commit comments

Comments
 (0)