Skip to content

Commit 4201423

Browse files
committed
test: enable app e2e tests
1 parent 6ddf512 commit 4201423

File tree

10 files changed

+35
-61
lines changed

10 files changed

+35
-61
lines changed

.github/workflows/app-deploy-feature-branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
contents: write
9898
with:
9999
targetUrl: ${{ needs.build.outputs.dappUrl }}
100-
testnet_network_value_for_e2e: "/?network=sepolia"
101-
default_network_value_for_e2e: "/?network=mainnet"
100+
testnet_network_value_for_e2e: "/?network=zksync-os-testnet-alpha"
101+
default_network_value_for_e2e: "/?network=zksync-os-mainnet"
102102
publish_to_allure: true
103103
environmentTags: "and not @productionEnv"

.github/workflows/app-deploy-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
contents: write
8888
with:
8989
targetUrl: ${{ needs.deploy.outputs.dappUrl }}
90-
testnet_network_value_for_e2e: "/?network=sepolia"
91-
default_network_value_for_e2e: "/?network=mainnet"
90+
testnet_network_value_for_e2e: "/?network=zksync-os-testnet-alpha"
91+
default_network_value_for_e2e: "/?network=zksync-os-mainnet"
9292
publish_to_allure: true
9393
environmentTags: "and not @featureEnv"

.github/workflows/app-e2e.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ on:
1313
required: false
1414
targetUrl:
1515
type: string
16-
default: 'https://staging-scan-v2.zksync.dev/'
16+
default: 'https://staging-scan-v2.zksync.dev'
1717
required: true
1818
default_network_value_for_e2e:
1919
type: string
20-
default: '/?network=mainnet'
20+
default: '/?network=zksync-os-mainnet'
2121
required: true
2222
testnet_network_value_for_e2e:
23-
type: string
24-
default: '/?network=sepolia'
25-
required: true
23+
type: string
24+
default: '/?network=zksync-os-testnet-alpha'
25+
required: true
2626
publish_to_allure: #Here we define the variable that can be overwritten by caller workflow
2727
type: boolean
2828
description: "Publish test results to allure"
@@ -47,15 +47,16 @@ jobs:
4747
fail-fast: false
4848
matrix:
4949
tags: [
50-
"@artifactsSet1",
51-
"@artifactsSet2",
52-
"@artifactsSet3",
53-
"@artifactsSet4",
54-
"@redirectionSet1",
55-
"@redirectionSet2",
56-
"@redirectionSet3",
57-
"@copying",
58-
"@search",
50+
# Disabled all tests running on Mainnet until Mainnet is deployed
51+
# "@artifactsSet1",
52+
# "@artifactsSet2",
53+
# "@artifactsSet3",
54+
# "@artifactsSet4",
55+
# "@redirectionSet1",
56+
# "@redirectionSet2",
57+
# "@redirectionSet3",
58+
# "@copying",
59+
# "@search",
5960
"@testnetSmokeSuite"
6061
]
6162

packages/app/tests/e2e/features/artifacts/artifactsSet1.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Feature: Main Page
7979

8080
Examples:
8181
| Table | Number of rows |
82-
| Latest Blocks | 10 |
82+
| Latest Blocks | 10 |
8383
| Latest Transactions | 10 |
8484

8585
@id101:II @id274:II @testnetSmokeSuite
@@ -91,7 +91,7 @@ Feature: Main Page
9191
| Latest Transactions | Status |
9292
| Latest Transactions | Transaction Hash |
9393
| Latest Transactions | Age |
94-
| Latest blocks | Block |
94+
| Latest Blocks | Block |
9595
| Latest Blocks | Status |
9696
| Latest Blocks | Age |
9797

packages/app/tests/e2e/features/artifacts/artifactsSet3.feature

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,6 @@ Feature: Main Page
8888
| L2 Token address |
8989
| L1 Token address |
9090

91-
@id381 @testnet @testnetSmokeSuite
92-
Scenario Outline: Verify label "out" for Account info on Account page
93-
When I go to page "/address/0xed7175341f123f7718aBaCF1702d6980CFc08784"
94-
Then Element with "text" "out" should be "visible"
95-
96-
@id380 @testnet @testnetSmokeSuite
97-
Scenario: Verify label "in" for Account info on Account page
98-
Given I go to page "/address/0xed7175341f123f7718aBaCF1702d6980CFc08784"
99-
# When I click by text "Show more transactions ->"
100-
Then Element with "text" "in" should be "visible"
101-
102-
@id382 @testnet @testnetSmokeSuite
103-
Scenario: Verify label "self" for Account info on Account page
104-
Given I go to page "/address/0xed7175341f123f7718aBaCF1702d6980CFc08784"
105-
# When I click by text "Show more transactions ->"
106-
Then Element with "text" "self" should be "visible"
107-
10891
@id381 @mainnet
10992
Scenario Outline: Verify label "out" for Account info on Account page
11093
When I go to page "/address/0x9CE4Feb41669BbD3FAA50EbbB6ffF85FC5Dec16C"
@@ -142,7 +125,7 @@ Feature: Main Page
142125

143126
@id258 @testnet @testnetSmokeSuite
144127
Scenario Outline: Check data type dropdown for "<Row>" and select "<Value>"
145-
Given I go to page "/tx/0x4dca9c536124e5e2b29af17d075c3e55d15f119acf5f3327c9fdb1a3ffeab427"
128+
Given I go to page "/tx/0x784153820d71c4a25db5004cb5d7c34814f66c596ce72ff941643c0b09934571"
146129
When I select "Logs" tab on "Transaction" page
147130
When I click on datatype dropdown of "<Row>" row
148131
When I click by text "<Value>"
@@ -178,26 +161,17 @@ Feature: Main Page
178161
| Data | Text |
179162
| Data | Address |
180163

181-
@id587 @testnetSmokeSuite
182-
Scenario: Check Processed status component for Transaction page
183-
Given I go to the first Processed transaction link
184-
Then Verify the badge with "Processed" status is visible
185-
Then Verify the badge with "Sending" status is visible
186-
Then Sending spinner should be visible
187-
Then Element with "text" "Sending" should be "visible"
188-
# Then Status component color with "Sending" status should be "grey"
189-
190164
@id588 @testnet @testnetSmokeSuite
191165
Scenario: Check Processed status component for Transaction page
192-
Given I go to page "/tx/0x4dca9c536124e5e2b29af17d075c3e55d15f119acf5f3327c9fdb1a3ffeab427"
166+
Given I go to page "/tx/0x784153820d71c4a25db5004cb5d7c34814f66c596ce72ff941643c0b09934571"
193167
Then Verify the badge with "Processed" status is visible
194168
Then Verify the badge with "Executed" status is visible
195169
Then Element with "text" "Executed" should be "visible"
196170
# Then Status component color with "Executed" status should be "green"
197171

198172
@id589 @testnet @testnetSmokeSuite
199173
Scenario: Check Failed status component for Transaction page
200-
Given I go to page "/tx/0xd5f436a8f6785ae6d4d21375c5f497e4d0350407582a584a867cd7e01efbbc15"
174+
Given I go to page "/tx/0x4ca73e0bd9218eee881377dc75a88803f6c3333b15003a1371266c63d585b5de"
201175
Then Verify the badge with "Failed" status is visible
202176
Then Element with "text" "Failed" should be "visible"
203177
# Then Status component color with "failed" status should be "red"

packages/app/tests/e2e/features/copying.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Feature: Copying
166166

167167
Examples:
168168
| Row | Text |
169-
| ETH | 0x000000000000000000000000000000000000800A |
169+
| USDC | 0x8DfcCCBB134E36EE145bE17E682ED46EaF4b6c5b |
170170

171171
@id275:I @mainnet
172172
Scenario Outline: Check "<Row>" hashes copying for Tokens page

packages/app/tests/e2e/features/redirection/redirectionSet2.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@ Feature: Redirection
8989
#Transaction page 241 - navigation, 553 - redirection
9090
@id241 @id553 @id339 @id340 @testnet @testnetSmokeSuite
9191
Scenario Outline: Verify redirection from Transaction page after "<Artifact type>" click
92-
Given I go to page "/tx/0x095ba0e946b09767085c7ddfb0f9ff36fab230fc819b56d41185a3033de27bea"
92+
Given I go to page "/tx/0x822f9eeb3c6e03ecd0d3027baafa187e0b96e0cd5e6efd959e2cb73e6322f7f1"
9393
When I click on the first "<Artifact type>" link
9494
Given Page with part address "<url>" includes ID result
9595

9696
Examples:
97-
| Artifact type | url |
98-
| block number | /block/ |
99-
| To | /address/ |
100-
| Fee | /token/ |
101-
| Tokens Transferred | /address/ |
97+
| Artifact type | url |
98+
| block number | /block/ |
99+
| To | /address/ |
100+
| Fee | /token/ |
101+
| Tokens Transferred | /address/ |
102102

103103
@id241 @id553 @id339 @id340 @mainnet
104104
Scenario Outline: Verify redirection from Transaction page after "<Artifact type>" click

packages/app/tests/e2e/features/redirection/redirectionSet3.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Feature: Redirection
4343
#369 Contract page - Pages - Redirection
4444
@id369 @testnet @testnetSmokeSuite
4545
Scenario: Verify contract link on the Contacts page
46-
Given I go to page "/address/0xed7175341f123f7718aBaCF1702d6980CFc08784"
46+
Given I go to page "/address/0xfb7e0856e44eff812a44a9f47733d7d55c39aa28"
4747
When I click on the first "from address" link
4848
Given Page with part address "/address/" includes ID result
4949

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export enum NetworkSwitcher {
2-
goerliStage2 = "/?network=goerli-beta",
3-
zkSyncEraMainnet = "/?network=mainnet",
4-
zkSyncEraSepolia = "/?network=sepolia",
2+
zkSyncOSMainnet = "/?network=zksync-os-mainnet",
3+
zkSyncOSSepolia = "/?network=zksync-os-testnet-alpha",
54
}

packages/app/tests/e2e/src/support/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const config = {
1515
BASE_URL: process.env.TARGET_ENV || "http://localhost:3010",
1616
mainWindowSize: { width: 1920, height: 1080 },
1717
artifactsFolder: "tests/e2e/artifacts/",
18-
DAPP_NETWORK: process.env.E2ENETWORK || NetworkSwitcher.zkSyncEraMainnet,
18+
DAPP_NETWORK: process.env.E2ENETWORK || NetworkSwitcher.zkSyncOSMainnet,
1919
headless: true,
2020
slowMo: 10,
2121
defaultTimeout: { timeout: 5000 },

0 commit comments

Comments
 (0)