I have implemented it in two frameworks - Cypress and Playwright. Cypress is the framework I use daily. I like it, because a lot of features work out of the box and it supports API testing.
I've been meaning to dig into Playwright, as many users recommend it, but actually this weekend and this asignment was my first go with the framework. I was able to complete the flow of the tests using the available documentation. It is possible I have not been aware of some good practices, for which I apologize. (:
-
Clone this repo:
git clone "https://github.com/cstemmer/neon_assignment.git"
-
Run npm install
-
Inside the directory "playwright_assignment", find the directory "tests" and in it the file auth.setup
In auth.setup:
Change the value of .fill('github username goes here') to your github username (mine is cstemmer)
Change the value of .fill('github password goes here') to your github password
-
Inside the directory "playwright_assignment", find the directory "tests" and in it the file project_creation_page.spec.js In project_creation_page.spec.js:
Change the value of const defaultUser = 'gmail username goes here' to google login - for example, for [email protected] input 'conrad.stemmer'
-
The repo has 1 spec file: project_creation_page.spec.js Inside terminal navigate to playwright_assignment directory When you're there, enter the following command:
npx playwright test --ui
and launch the only test
-
Clone this repo:
git clone "https://github.com/cstemmer/neon_assignment.git"
-
Run npm install
-
Inside the directory "cypress_assignment", find the file "cypress.config.js"
Change the value of gitHubUser: 'google login goes here' to google login - for example, for [email protected] input 'conrad.stemmer'
Change the value of gitHubPassword: 'password goes here' to the password that you use to access Github
-
The repo has 1 spec file: project_creation_form.cy.js
Inside terminal navigate to cypress_assignment directory
When you're there, enter the following command:
npx cypress open
and launch the only test