From 259d5dd60ad7692685234e047a467912c14692b9 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Wed, 21 Aug 2024 11:57:37 +0200 Subject: [PATCH 1/2] tests: add more e2e tests --- tests/e2e/spec.cy.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/spec.cy.js b/tests/e2e/spec.cy.js index 2ba53aada5f..d5ee724d9ab 100644 --- a/tests/e2e/spec.cy.js +++ b/tests/e2e/spec.cy.js @@ -50,6 +50,8 @@ describe('Basic tests', () => { cy.get('[data-name="product-not-found-alert"]').should('have.length', 0) cy.get('[data-name="category-not-found-alert"]').should('have.length', 0) cy.get('[data-name="price-card"]').should('have.length', 1) + cy.contains('0.67') + cy.contains('3.83 / kg') cy.contains('Load more').should('not.exist') }) @@ -84,6 +86,8 @@ describe('Basic tests', () => { cy.get('[data-name="product-not-found-alert"]').should('have.length', 0) cy.get('[data-name="category-not-found-alert"]').should('have.length', 0) cy.get('[data-name="price-card"]').should('have.length', 2) + cy.contains('4.00 / unit') + cy.contains('3.00 / kg') cy.contains('Load more').should('not.exist') }) From 1e94d2a915a5f4f294c0764683cf8928ac8a2995 Mon Sep 17 00:00:00 2001 From: Pierre Slamich Date: Wed, 21 Aug 2024 16:05:26 +0200 Subject: [PATCH 2/2] Update lint-and-test.yml --- .github/workflows/lint-and-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 8786f9ebab1..bb21af64b7f 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -1,4 +1,4 @@ -name: Linting & e2e tests +name: 🧪 Linting & End to End tests on: push @@ -16,7 +16,7 @@ jobs: runTests: false - name: Lint with ESLint run: yarn lint - - name: Run e2e tests + - name: Run End to End tests uses: cypress-io/github-action@v6 with: # we have already installed all dependencies above