Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update tests for removing duplicate portal links #160

49 changes: 13 additions & 36 deletions packages/app/tests/e2e/features/artifacts/artifactsSet1.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,30 @@ Feature: Main Page
Background:
Given I am on main page

@id253 @featureEnv @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"
When Element with "text" "<Sub-Section>" should be "clickable"
Then Element with "text" "<Sub-Section>" should have "<url>" value

Examples:
| Sub-Section | url |
| Smart Contract Verification | /contracts/verify |
#| Portal | https://goerli.staging-portal.zksync.dev/ |

@id253 @featureEnv @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"
When Element with "text" "<Sub-Section>" should be "clickable"
Then Element with "text" "<Sub-Section>" should have "<url>" value

Examples:
| Sub-Section | url |
| Smart Contract Verification | /contracts/verify |
#| Portal | https://staging-portal.zksync.dev/ |

@id253:I @productionEnv @testnet
Scenario Outline: Check the element "<Sub-Section>" in Tools section is available, clickable and have correct href
@id253:I @featureEnv @testnetSmokeSuite @testnet
Scenario Outline: Check the element "<Sub-Section>" in Tools section is available, clickable and have correct href (Sepolia)
Given I click by text "Tools"
Given Element with "text" "<Sub-Section>" should be "visible"
When Element with "text" "<Sub-Section>" should be "clickable"
Then Element with "text" "<Sub-Section>" should have "<url>" value

Examples:
| Sub-Section | url |
| Smart Contract Verification | /contracts/verify |
#| Portal | https://goerli.portal.zksync.io/ |
| Sub-Section | url |
| Smart Contract Verification | /contracts/verify |
| Bridge | https://portal.zksync.io/bridge/?network=sepolia |

@id253:I @productionEnv @mainnet
Scenario Outline: Check the element "<Sub-Section>" in Tools section is available, clickable and have correct href
@id253:II @mainnet
Scenario Outline: Check the element "<Sub-Section>" in Tools section is available, clickable and have correct href (Mainnet)
Given I click by text "Tools"
Given Element with "text" "<Sub-Section>" should be "visible"
When Element with "text" "<Sub-Section>" should be "clickable"
Then Element with "text" "<Sub-Section>" should have "<url>" value

Examples:
| Sub-Section | url |
| Smart Contract Verification | /contracts/verify |
#| Portal | https://portal.zksync.io/ |
| Sub-Section | url |
| Smart Contract Verification | /contracts/verify |
| Bridge | https://portal.zksync.io/bridge/?network=mainnet |

@id231
Scenario Outline: Check social networks icon "<Value>" is available, clickable and have correct href
Expand Down Expand Up @@ -85,7 +62,7 @@ Feature: Main Page
| 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
Expand Down Expand Up @@ -139,7 +116,7 @@ Feature: Main Page
Given I go to page "/address/0x8f0F33583a56908F7F933cd6F0AaE382aC3fd8f6"
Then Element with "id" "search" should be "visible"

@id209:I @testnet
@id209:I @testnet
Scenario Outline: Verify Transaction table contains "<Row>" row
Given I go to page "/tx/0xe7a91cc9b270d062328ef995e0ef67195a3703d43ce4e1d375f87d5c64e51981"
When Table contains row with "<Row>"
Expand Down Expand Up @@ -201,7 +178,7 @@ Feature: Main Page
| Created | 2023-05-14 |


@id211 @testnet
@id211 @testnet
Scenario Outline: Verify Contract info table contains "<Row>" row
Given I go to page "/address/0x3e7676937A7E96CFB7616f255b9AD9FF47363D4b"
Then Element with "text" "<Row>" should be "visible"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,26 +56,15 @@ 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
Expand All @@ -84,19 +73,8 @@ Feature: Redirection
Then New page have "<url>" address

Examples:
| Sub-Section | url |
#| Portal | 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>"
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
Loading