diff --git a/cypress.config.ts b/cypress.config.ts index 4a08e5eb88..d2491fe956 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -6,7 +6,7 @@ export default defineConfig({ defaultCommandTimeout: 24000, // 2x average block time chromeWebSecurity: false, experimentalMemoryManagement: true, // better memory management, see https://github.com/cypress-io/cypress/pull/25462 - retries: { runMode: 2 }, + retries: { runMode: process.env.CYPRESS_RETRIES ? +process.env.CYPRESS_RETRIES : 2 }, video: false, // GH provides 2 CPUs, and cypress video eats one up, see https://github.com/cypress-io/cypress/issues/20468#issuecomment-1307608025 e2e: { async setupNodeEvents(on, config) { diff --git a/cypress/e2e/token-details.test.ts b/cypress/e2e/token-details.test.ts index 382a35623d..ed9116d44d 100644 --- a/cypress/e2e/token-details.test.ts +++ b/cypress/e2e/token-details.test.ts @@ -108,7 +108,7 @@ describe('Token details', () => { it('should automatically navigate to the new TDP', () => { cy.get(`#swap-currency-output .open-currency-select-button`).click() - cy.contains('WETH').click() + cy.get('[data-reach-dialog-content]').contains('WETH').click() cy.url().should('include', `${WETH9[1].address}`) cy.url().should('not.include', `${UNI_MAINNET.address}`) }) diff --git a/cypress/e2e/wallet-dropdown.test.ts b/cypress/e2e/wallet-dropdown.test.ts index 24d711289b..46246eab48 100644 --- a/cypress/e2e/wallet-dropdown.test.ts +++ b/cypress/e2e/wallet-dropdown.test.ts @@ -115,7 +115,7 @@ describe('Wallet Dropdown', () => { cy.get(getTestSelector('web3-status-connected')).click() cy.get(getTestSelector('wallet-settings')).click() cy.get(getTestSelector('theme-auto')).click() - cy.get(getTestSelector('wallet-header')).should('have.css', 'color', 'rgb(152, 161, 192)') + cy.get(getTestSelector('wallet-header')).should('have.css', 'color', 'rgb(155, 155, 155)') }) it('should properly use light system theme when auto theme setting is selected', () => { @@ -123,7 +123,7 @@ describe('Wallet Dropdown', () => { cy.get(getTestSelector('web3-status-connected')).click() cy.get(getTestSelector('wallet-settings')).click() cy.get(getTestSelector('theme-auto')).click() - cy.get(getTestSelector('wallet-header')).should('have.css', 'color', 'rgb(119, 128, 160)') + cy.get(getTestSelector('wallet-header')).should('have.css', 'color', 'rgb(125, 125, 125)') }) }) diff --git a/functions/__snapshots__/default.test.ts.snap b/functions/__snapshots__/default.test.ts.snap new file mode 100644 index 0000000000..c008820149 --- /dev/null +++ b/functions/__snapshots__/default.test.ts.snap @@ -0,0 +1,439 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should inject metadata for valid collections 1`] = ` +" + +
+ + +