Skip to content

Densf2/cypress_js

Folders and files

NameName
Last commit message
Last commit date
Dec 29, 2024
Dec 29, 2024
Apr 16, 2023
Jan 26, 2022
Apr 27, 2023
Mar 7, 2023
Feb 21, 2023
Apr 27, 2023
Dec 21, 2024
Mar 7, 2023
Jan 17, 2021
Feb 24, 2025
Feb 24, 2025

Repository files navigation

tests on Chrome

the repo contain the example of test based on cypress & JS
supported browsers: chrome, firefox, webkit

all actions performed with yarn package manager

for running tests:

  • pull the repo
  • run in the console:
yarn run cypress open

running tests in headless mode

yarn run cypress run

list of params for cypress

yarn run cypress run -b chrome --headed --spec cypress/e2e/open_auto_ria.js

commad for trigger in webkit

cy:run -- --browser webkit --spec cypress/e2e/open_auto_ria.cy.js

The 'DockerfileBuild' can be used for creating new image with tests and all dependecies. Below the steps for creating the image and usage:

  • docker build -t cypress-custom-base .
  • docker run -t cypress-custom-base:latest "./node_modules/cypress/bin/cypress run --browser chrome --headless"

The 'Dockerfile' and 'docker-compose' files can be used for running tests in parallel with different browsers. Steps:

  • docker-compose up