How to start working in our project?
Clone repository to your machine.
Navigate to project root folder.
Run command npm ci
in terminal VScode.
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.
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:
describe
should contain the name of spec fileit
) 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