We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be3fa73 commit 69536c2Copy full SHA for 69536c2
cypress/integration/counter.spec.js
@@ -0,0 +1,18 @@
1
+/* eslint-disable no-undef */
2
+describe('counter', () => {
3
+ beforeEach(() => {
4
+ cy.visit('/')
5
+ })
6
+
7
+ it('should increment the counter', () => {
8
+ cy.get('h4').contains('0')
9
+ cy.get("[data-qa='increment-counter']").click()
10
+ cy.get('h4').contains('1')
11
12
13
+ it('should decrement the counter', () => {
14
15
+ cy.get("[data-qa='decrement-counter']").click()
16
+ cy.get('h4').contains('-1')
17
18
+})
0 commit comments