Skip to content

JS + Cypress стек. Практический проект в рамках изучения автоматизации тестирования.

Notifications You must be signed in to change notification settings

Sandarella/JenkinsQA_JS_2024_fall

 
 

Repository files navigation

ProjectJS_2024_fall

How to start working in our project?

  1. Clone repository to your machine.

  2. Navigate to project root folder.

  3. Run command npm ci in terminal VScode.

  4. Copy and paste the file cypress.env.json.example to project root folder. Сhange the file name to cypress.env.json. Put your own credentials for login in json file.

  5. After, execute npx cypress open to run tests.

Project Coding Convention

Naming conventions: We shall use Camelcase for naming conventions: camelCase

Spec names: student should create the spec containing the name of the userstory (US): header.cy.js

Spec structure:

  • Each block describe should contain the name of spec file
  • Each test (it) should contain name of test case (TC)

example: describe('Header', () => {

it('Verify logo jenkins is visible on the header', function () {
    ...
})

it('Verify logo jenkins is clickable and redirects to homePage', function () {
    ...
})

})

Attention!

Students are not allowed to install any libraries, plugins, etc. to avoid changing configuration files.

!!Do not push changed files as:

package.json package.lock.json cypress.config.js e2e.js ci.yml cancel.yml globalHooks.js cleanData.js

How to use faker library

Our project utilises Faker.js library. You can find more info here: https://v6.fakerjs.dev/guide/ Use this import in your file: import { faker } from '@faker-js/faker';

How to use testing library

You can find more info here: https://testing-library.com/docs/cypress-testing-library/intro/

About

JS + Cypress стек. Практический проект в рамках изучения автоматизации тестирования.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%