-
Notifications
You must be signed in to change notification settings - Fork 471
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 tests refactoring: PO model, safe app tests #2522
Conversation
Branch preview✅ Deploy successful! https://cypress_tests_refactor_p3--walletweb.review-wallet-web.5afe.dev |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
# Conflicts: # cypress/e2e/pages/safeapps.pages.js # cypress/support/constants.js
@@ -9,7 +9,7 @@ concurrency: | |||
|
|||
jobs: | |||
e2e: | |||
runs-on: ubuntu-latest | |||
runs-on: ubuntu-20.04 |
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.
Why is this necessary? Latest is too new for Cypress? Or too old?
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.
Our Cypress tests started to fail due to using latest runner image which conflicts with Cypress version. -latest tag uses image which might not be that stable as previous one, or be in pre-release mode.
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.
Do we still need to pin the ubuntu version if we also upgraded cypress?
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.
By specifying a version, we ensure that there will be some control over it. When this version is planned to become unavailable, we will hopefully receive notification that will give us enough time for updating to newer version of Cypress/resolve any conflicts instead of reacting to this when it was unexpected.
cypress/e2e/pages/create_tx.pages.js
Outdated
cy.contains(expandallbtnStr).click() | ||
} | ||
|
||
export function lickOnCollapseAllBtn() { |
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.
export function lickOnCollapseAllBtn() { | |
export function clickOnCollapseAllBtn() { |
cypress/e2e/pages/create_tx.pages.js
Outdated
@@ -26,6 +27,8 @@ const editBtnStr = 'Edit' | |||
const executionParamsStr = 'Execution parameters' | |||
const noLaterStr = 'No, later' | |||
const signBtnStr = 'Sign' | |||
const expandallbtnStr = 'Expand all' |
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.
const expandallbtnStr = 'Expand all' | |
const expandAllBtnStr = 'Expand all' |
cypress/e2e/pages/safeapps.pages.js
Outdated
@@ -0,0 +1,193 @@ | |||
import * as constants from '../../support/constants' | |||
|
|||
const searchappInput = 'input[id="search-by-name"]' |
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.
const searchappInput = 'input[id="search-by-name"]' | |
const searchAppInput = 'input[id="search-by-name"]' |
cypress/e2e/smoke/tx_history.cy.js
Outdated
@@ -1,25 +1,37 @@ | |||
import * as constants from '../../support/constants' | |||
import * as main from '../pages/main.page' | |||
import * as createtx from '../pages/create_tx.pages' |
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.
import * as createtx from '../pages/create_tx.pages' | |
import * as createTx from '../pages/create_tx.pages' |
cypress/support/constants.js
Outdated
export const invalidappUrl = 'https://my-invalid-custom-app.com/manifest.json' | ||
export const validappUrlJson = 'https://my-valid-custom-app.com/manifest.json' | ||
export const validappUrl = 'https://my-valid-custom-app.com' |
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.
export const invalidappUrl = 'https://my-invalid-custom-app.com/manifest.json' | |
export const validappUrlJson = 'https://my-valid-custom-app.com/manifest.json' | |
export const validappUrl = 'https://my-valid-custom-app.com' | |
export const invalidAppUrl = 'https://my-invalid-custom-app.com/manifest.json' | |
export const validAppUrlJson = 'https://my-valid-custom-app.com/manifest.json' | |
export const validAppUrl = 'https://my-valid-custom-app.com' |
cypress/support/constants.js
Outdated
export const proposeEndPoint = '/**/propose' | ||
export const appsEndPoint = '/**/safe-apps' |
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.
export const proposeEndPoint = '/**/propose' | |
export const appsEndPoint = '/**/safe-apps' | |
export const proposeEndpoint = '/**/propose' | |
export const appsEndpoint = '/**/safe-apps' |
cypress/support/constants.js
Outdated
walletconnect: 'walletconnect', | ||
customcontract: 'compose custom contract', | ||
noresults: 'atextwithoutresults', |
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.
walletconnect: 'walletconnect', | |
customcontract: 'compose custom contract', | |
noresults: 'atextwithoutresults', | |
walletConnect: 'walletconnect', | |
customContract: 'compose custom contract', | |
noResults: 'atextwithoutresults', |
cypress/support/constants.js
Outdated
} | ||
|
||
export const tokenNames = { | ||
wrapped_ether: 'Wrapped Ether', |
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.
wrapped_ether: 'Wrapped Ether', | |
wrappedEther: 'Wrapped Ether', |
Co-authored-by: Aaron Cook <[email protected]>
Co-authored-by: Aaron Cook <[email protected]>
What it solves
Resolves #2521
How this PR fixes it