From 5ccce3497f5792087049779c59add313e7eeecf9 Mon Sep 17 00:00:00 2001 From: pcheremu Date: Mon, 20 Nov 2023 08:34:51 +0100 Subject: [PATCH] test: fix tests --- .../workflows/app-deploy-feature-branch.yml | 10 +++++----- .../features/artifacts/artifactsSet1.feature | 18 ++++++++++++++---- .../redirection/redirectionSet1.feature | 8 ++++---- .../redirection/redirectionSet3.feature | 7 ++++--- 4 files changed, 27 insertions(+), 16 deletions(-) diff --git a/.github/workflows/app-deploy-feature-branch.yml b/.github/workflows/app-deploy-feature-branch.yml index 7801779b65..7701b73b8a 100644 --- a/.github/workflows/app-deploy-feature-branch.yml +++ b/.github/workflows/app-deploy-feature-branch.yml @@ -36,11 +36,11 @@ jobs: run: | npm run lint -- --no-fix --max-warnings 0 - # - name: Test - # run: npm run test:ci + - name: Test + run: npm run test:ci - # - name: Type check - # run: npm run typecheck + - name: Type check + run: npm run typecheck - name: Build run: | @@ -75,4 +75,4 @@ jobs: targetUrl: ${{ needs.build.outputs.dappUrl }} default_network_value_for_e2e: "/?network=mainnet" publish_to_allure: true - environmentTags: "and not @stagingEnv" + environmentTags: "and not @productionEnv" diff --git a/packages/app/tests/e2e/features/artifacts/artifactsSet1.feature b/packages/app/tests/e2e/features/artifacts/artifactsSet1.feature index 48fb7e8fb2..cf5f9e2ccc 100644 --- a/packages/app/tests/e2e/features/artifacts/artifactsSet1.feature +++ b/packages/app/tests/e2e/features/artifacts/artifactsSet1.feature @@ -28,7 +28,7 @@ Feature: Main Page | Smart Contract Verification | /contracts/verify | | Portal | https://staging-portal.zksync.dev/ | - @id253:I @stagingEnv @testnet + @id253:I @productionEnv @testnet Scenario Outline: Check the element "" in Tools section is available, clickable and have correct href Given I click by text "Tools" Given Element with "text" "" should be "visible" @@ -40,7 +40,7 @@ Feature: Main Page | Smart Contract Verification | /contracts/verify | | Portal | https://goerli.portal.zksync.io/ | - @id253:I @stagingEnv @mainnet + @id253:I @productionEnv @mainnet Scenario Outline: Check the element "" in Tools section is available, clickable and have correct href Given I click by text "Tools" Given Element with "text" "" should be "visible" @@ -71,7 +71,6 @@ Feature: Main Page Examples: | Value | Dropdown | - | zkSync Era Goerli Testnet | network | | zkSync Era Mainnet | network | | EN | language | | UA | language | @@ -81,9 +80,20 @@ Feature: Main Page Given Set the "" value for "" switcher Then Check the "" value is actual for "" switcher + Examples: + | Value | Dropdown | + | zkSync Era Sepolia Testnet | network | + | zkSync Era Goerli Testnet | network | + | Goerli (Stage2) | network | + + @id254:II @productionEnv + Scenario Outline: Check dropdown "" for "" and verify + Given Set the "" value for "" switcher + Then Check the "" value is actual for "" switcher + Examples: | Value | Dropdown | - | Goerli (Stage2) | network | + | zkSync Era Testnet | network | Scenario: Network stats is displayed Then Element with "text" "Network Stats" should be "visible" diff --git a/packages/app/tests/e2e/features/redirection/redirectionSet1.feature b/packages/app/tests/e2e/features/redirection/redirectionSet1.feature index 5d5883cfc4..f686558bbd 100644 --- a/packages/app/tests/e2e/features/redirection/redirectionSet1.feature +++ b/packages/app/tests/e2e/features/redirection/redirectionSet1.feature @@ -67,7 +67,7 @@ Feature: Redirection | Portal | https://goerli.staging-portal.zksync.dev/ | - @id253:IIII @stagingEnv @testnet + @id253:IIII @productionEnv @testnet Scenario Outline: Verify redirection for "" in Tools menu Given I click by text "Tools " When I click by element with partial href "" and text "" @@ -75,7 +75,7 @@ Feature: Redirection Examples: | Sub-Section | url | - | Portal | https://goerli.portal.zksync.io/ | + | Portal | https://zksync.io/explore#bridges | @id253:IV @featureEnv @mainnet Scenario Outline: Verify redirection for "" in Tools menu @@ -88,7 +88,7 @@ Feature: Redirection | Portal | https://staging-portal.zksync.dev/ | - @id253:IV @stagingEnv @mainnet + @id253:IV @productionEnv @mainnet Scenario Outline: Verify redirection for "" in Tools menu Given I click by text "Tools " When I click by element with partial href "" and text "" @@ -96,7 +96,7 @@ Feature: Redirection Examples: | Sub-Section | url | - | Portal | https://portal.zksync.io/ | + | Portal | https://zksync.io/explore#bridges | #Account page @id259 @testnet diff --git a/packages/app/tests/e2e/features/redirection/redirectionSet3.feature b/packages/app/tests/e2e/features/redirection/redirectionSet3.feature index d66eee55cb..9e8f9ed129 100644 --- a/packages/app/tests/e2e/features/redirection/redirectionSet3.feature +++ b/packages/app/tests/e2e/features/redirection/redirectionSet3.feature @@ -64,9 +64,10 @@ Feature: Redirection | Initial page | Network | url | | /address/0x000000000000000000000000000000000000800A | zkSync Era Goerli Testnet | /address/0x000000000000000000000000000000000000800A/?network=goerli | | /address/0x000000000000000000000000000000000000800A | Goerli (Stage2) | /address/0x000000000000000000000000000000000000800A/?network=goerli-beta | - | /address/0x000000000000000000000000000000000000800A | zkSync Era Mainnet | /address/0x000000000000000000000000000000000000800A/?network=mainnet | + | /address/0x000000000000000000000000000000000000800A | zkSync Era Mainnet | /address/0x000000000000000000000000000000000000800A/?network=mainnet | + | /address/0x000000000000000000000000000000000000800A | zkSync Era Sepolia Testnet | /address/0x000000000000000000000000000000000000800A/?network=sepolia | - @id561:I @id562:I @id563:I @stagingEnv + @id561:I @id562:I @id563:I @productionEnv Scenario Outline: Verify redirection to "" network Given I go to page "" When Set the "" value for "network" switcher @@ -75,4 +76,4 @@ Feature: Redirection Examples: | Initial page | Network | url | | /address/0x000000000000000000000000000000000000800A | zkSync Era Mainnet | /address/0x000000000000000000000000000000000000800A/?network=mainnet | - | /address/0x000000000000000000000000000000000000800A | zkSync Era Goerli Testnet | /address/0x000000000000000000000000000000000000800A/?network=goerli | + | /address/0x000000000000000000000000000000000000800A | zkSync Era Testnet | /address/0x000000000000000000000000000000000000800A/?network=goerli |