Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: add more e2e tests #732

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linting & e2e tests
name: 🧪 Linting & End to End tests

on: push

Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions tests/e2e/spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})

Expand Down Expand Up @@ -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')
})

Expand Down
Loading