Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Nov 20, 2023
1 parent 3651ed3 commit 5ccce34
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/app-deploy-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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"
18 changes: 14 additions & 4 deletions packages/app/tests/e2e/features/artifacts/artifactsSet1.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<Sub-Section>" in Tools section is available, clickable and have correct href
Given I click by text "Tools"
Given Element with "text" "<Sub-Section>" should be "visible"
Expand All @@ -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 "<Sub-Section>" in Tools section is available, clickable and have correct href
Given I click by text "Tools"
Given Element with "text" "<Sub-Section>" should be "visible"
Expand Down Expand Up @@ -71,7 +71,6 @@ Feature: Main Page

Examples:
| Value | Dropdown |
| zkSync Era Goerli Testnet | network |
| zkSync Era Mainnet | network |
| EN | language |
| UA | language |
Expand All @@ -81,9 +80,20 @@ Feature: Main Page
Given Set the "<Value>" value for "<Dropdown>" switcher
Then Check the "<Value>" value is actual for "<Dropdown>" switcher

Examples:
| Value | Dropdown |
| zkSync Era Sepolia Testnet | network |
| zkSync Era Goerli Testnet | network |
| Goerli (Stage2) | network |

@id254:II @productionEnv
Scenario Outline: Check dropdown "<Dropdown>" for "<Value>" and verify
Given Set the "<Value>" value for "<Dropdown>" switcher
Then Check the "<Value>" value is actual for "<Dropdown>" 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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ Feature: Redirection
| Portal | https://goerli.staging-portal.zksync.dev/ |


@id253:IIII @stagingEnv @testnet
@id253:IIII @productionEnv @testnet
Scenario Outline: Verify redirection for "<Sub-Section>" in Tools menu
Given I click by text "Tools "
When I click by element with partial href "<url>" and text "<Sub-Section>"
Then New page have "<url>" address

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 "<Sub-Section>" in Tools menu
Expand All @@ -88,15 +88,15 @@ Feature: Redirection
| Portal | https://staging-portal.zksync.dev/ |


@id253:IV @stagingEnv @mainnet
@id253:IV @productionEnv @mainnet
Scenario Outline: Verify redirection for "<Sub-Section>" in Tools menu
Given I click by text "Tools "
When I click by element with partial href "<url>" and text "<Sub-Section>"
Then New page have "<url>" address

Examples:
| Sub-Section | url |
| Portal | https://portal.zksync.io/ |
| Portal | https://zksync.io/explore#bridges |

#Account page
@id259 @testnet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>" network
Given I go to page "<Initial page>"
When Set the "<Network>" value for "network" switcher
Expand All @@ -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 |

0 comments on commit 5ccce34

Please sign in to comment.