From 9ff8711d806ea2980cbfb92aa62265d56e0cb7ff Mon Sep 17 00:00:00 2001 From: Jakub Mucha Date: Wed, 14 Sep 2022 17:30:14 +0200 Subject: [PATCH 1/2] fix: debug mode Signed-off-by: Jakub Mucha --- synpress.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/synpress.config.js b/synpress.config.js index 185f96eb4..88f55408c 100644 --- a/synpress.config.js +++ b/synpress.config.js @@ -20,9 +20,9 @@ module.exports = defineConfig({ env: { coverage: false, }, - defaultCommandTimeout: process.env.SYNDEBUG ? 0 : 30000, - pageLoadTimeout: process.env.SYNDEBUG ? 0 : 30000, - requestTimeout: process.env.SYNDEBUG ? 0 : 30000, + defaultCommandTimeout: process.env.SYNDEBUG ? 9999999 : 30000, + pageLoadTimeout: process.env.SYNDEBUG ? 0 : 9999999, + requestTimeout: process.env.SYNDEBUG ? 0 : 9999999, e2e: { setupNodeEvents, baseUrl: 'http://localhost:3000', From a425bdcc55a352a594a33657fec08f85323fff97 Mon Sep 17 00:00:00 2001 From: Jakub Mucha Date: Wed, 14 Sep 2022 17:32:31 +0200 Subject: [PATCH 2/2] fix: lint Signed-off-by: Jakub Mucha --- README.md | 3 ++- docker-compose.ci.yml | 2 +- support/index.d.ts | 8 ++------ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 78714f19e..1a0eaafaa 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,8 @@ To see in which direction Synpress is headed to, take a look at - can be used in existing [cypress setup](https://github.com/Synthetixio/synpress/issues/346#issuecomment-1060506096) - supports dotenv - - loads all env vars from your `.env` file automatically (from project root folder) + - loads all env vars from your `.env` file automatically (from project root + folder) - ability to use latest metamask or lock it's version to avoid unexpected failures related to metamask updates - supports multi-lang of metamask, it doesn't depend on any labels diff --git a/docker-compose.ci.yml b/docker-compose.ci.yml index 3c070913c..ccfd966d9 100644 --- a/docker-compose.ci.yml +++ b/docker-compose.ci.yml @@ -25,7 +25,7 @@ services: ngrok:4040/api/tunnels | jq -r .tunnels[0].public_url && yarn test:e2e' networks: - x11 - + display: container_name: display image: synthetixio/display:b2643097e891906524e52e7ee956260b20fa01fb-base diff --git a/support/index.d.ts b/support/index.d.ts index 601374584..86fe25047 100644 --- a/support/index.d.ts +++ b/support/index.d.ts @@ -194,9 +194,7 @@ declare namespace Cypress { * cy.confirmMetamaskTransaction() * cy.confirmMetamaskTransaction({gasFee: 10, gasLimit: 1000000}) */ - confirmMetamaskTransaction( - gasConfig?: object, - ): Chainable; + confirmMetamaskTransaction(gasConfig?: object): Chainable; /** * Reject metamask transaction * @example @@ -209,9 +207,7 @@ declare namespace Cypress { * cy.allowMetamaskToAddNetwork() * cy.allowMetamaskToAddNetwork('close') // (waitForEvent) */ - allowMetamaskToAddNetwork( - waitForEvent?: string, - ): Chainable; + allowMetamaskToAddNetwork(waitForEvent?: string): Chainable; /** * Reject site to add new network in metamask * @example