-
Notifications
You must be signed in to change notification settings - Fork 687
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
Cypress Setup #3082
Cypress Setup #3082
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking for examples on how to manage
- css element declaration in one place and call them as needed in tests.
- where to add common actions like login, place order and call them in tests as needed.
- where to mock data
pwa-automation-tests/README.md
Outdated
@@ -0,0 +1,7 @@ | |||
# Running Venia Functional Tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to rename the folder name something specific to Venia and Integration/E2E tests. venia-integrestion-tests
, venia-e2e-tests
. words pwa and automation are very generic/higher level.
it('test', () => { | ||
cy.visit('/'); | ||
|
||
cy.wait(5000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment if its needed else remove this.
Addressed the PR comments. Created a new folder structure. But unfortunately, the sample tests I left in the PR are dummy ones. Anyways we will add new tests once this is merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right @supernova-at there are no Should have added this in the description. My bad. |
…a-studio into revanth/cypress_setup
Description
Initial cypress setup.
Related Issue
Closes PWA-1569
Verification Stakeholders
@dpatil-magento
Specification
Verification Steps
pwa-automation-tests
.yarn install
if its your first time.yarn test
to open up the cypress UI. You should see 2 dummy tests but they won't run. They are just provided as examples.Screenshots / Screen Captures (if appropriate)
Checklist