Skip to content

Commit

Permalink
test: fix for redirection ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Feb 9, 2024
1 parent 323a0a9 commit bf16f2a
Showing 1 changed file with 10 additions and 32 deletions.
42 changes: 10 additions & 32 deletions packages/app/tests/e2e/features/redirection/redirectionSet1.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Redirection

Examples:
| Extra button name | url |
| Docs | https://docs.zksync.io/build/ |
| Docs | https://docs.zksync.io/build/tooling/block-explorer/getting-started.html |
| Terms | https://zksync.io/terms |
| Contact | https://zksync.io/contact |

Expand All @@ -32,7 +32,7 @@ Feature: Redirection
@id251
Scenario: Verify redirection for Documentation link
Given I click by text "Documentation"
Then New page have "https://docs.zksync.io/build/" address
Then New page have "https://docs.zksync.io/build/tooling/block-explorer/getting-started.html" address

@id252
Scenario Outline: Verify redirection for "<Sub-Section>" in BE menu
Expand All @@ -45,7 +45,7 @@ Feature: Redirection
| Blocks | /blocks/ |
| Transactions | /transactions/ |

@id253:II
@id253:I
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>"
Expand All @@ -56,47 +56,25 @@ Feature: Redirection
| Smart Contract Verification | /contracts/verify |
# | zkEVM Debugger | /tools/debugger |

@id253:III @featureEnv @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.staging-portal.zksync.dev/ |


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

Examples:
| Sub-Section | url | redirect_url |
| Portal | https://zksync.io/explore#bridges | https://goerli.portal.zksync.io |
| Sub-Section | url | redirect_url |
| Bridge | https://portal.zksync.io/bridge/?network=sepolia | https://portal.zksync.io/bridge/?network=sepolia |

@id253:IV @featureEnv @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 "<redirect_url>" and text "<Sub-Section>"
Then New page have "<url>" address

Examples:
| Sub-Section | url | redirect_url |
| Portal | https://staging-portal.zksync.dev/bridge/ | https://staging-portal.zksync.dev |


@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 "<redirect_url>" and text "<Sub-Section>"
When I click by element with partial href "<url>" and text "<Sub-Section>"
Then New page have "<url>" address

Examples:
| Sub-Section | url | redirect_url |
| Portal | https://zksync.io/explore#bridges | https://portal.zksync.io |
| Sub-Section | url |
| Bridge | https://portal.zksync.io/bridge/?network=mainnet |

#Account page
@id259 @testnet
Expand Down

0 comments on commit bf16f2a

Please sign in to comment.