Skip to content

Commit

Permalink
fix: new one
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbairak committed Jan 31, 2024
1 parent f31ea0a commit 361d3fd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 47 deletions.
41 changes: 16 additions & 25 deletions packages/app/tests/e2e/features/artifacts/artifactsSet1.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,32 @@ 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
@id253:I @productionEnv @goerli
Scenario Outline: Check the element "<Sub-Section>" in Tools section is available, clickable and have correct href
Given I go to page "/?network=goerli"
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/ |
| Sub-Section | url |
| Smart Contract Verification | /contracts/verify |
| Bridge | https://portal.zksync.io/bridge/?network=goerli |

@id253:I @productionEnv @testnet
@id253:I @productionEnv @sepolia
Scenario Outline: Check the element "<Sub-Section>" in Tools section is available, clickable and have correct href
Given I go to page "/?network=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
Expand All @@ -48,9 +39,9 @@ Feature: Main Page
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 +76,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 +130,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 +192,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
36 changes: 14 additions & 22 deletions packages/app/tests/e2e/features/redirection/redirectionSet1.feature
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,47 +56,39 @@ Feature: Redirection
| Smart Contract Verification | /contracts/verify |
# | zkEVM Debugger | /tools/debugger |

@id253:III @featureEnv @testnet

@id253:II @productionEnv @goerli
Scenario Outline: Verify redirection for "<Sub-Section>" in Tools menu
Given I go to page "/?network=goerli"
Given I click by text "Tools "
When I click by element with partial href "<url>" and text "<Sub-Section>"
When I click by element with partial href "<redirect_url>" and text "<Sub-Section>"
Then New page have "<url>" address

Examples:
| Sub-Section | url |
#| Portal | https://goerli.staging-portal.zksync.dev/ |
| Sub-Section | url | redirect_url |
| Portal | https://portal.zksync.io/bridge/?network=goerli | https://goerli.portal.zksync.io |


@id253:IIII @productionEnv @testnet
@id253:III @productionEnv @sepolia
Scenario Outline: Verify redirection for "<Sub-Section>" in Tools menu
Given I go to page "/?network=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 |
| Portal | https://portal.zksync.io/bridge/?network=sepolia | https://goerli.portal.zksync.io |

@id253:IV @featureEnv @mainnet
Scenario Outline: Verify redirection for "<Sub-Section>" in Tools menu
Given I go to page "/?network=mainnet"
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://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 |
| Portal | https://portal.zksync.io/bridge/?network=mainnet |

#Account page
@id259 @testnet
Expand Down

0 comments on commit 361d3fd

Please sign in to comment.