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

test: verify e2e tests for be #89

Merged
merged 3 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/app-deploy-feature-branch.yml
Original file line number Diff line number Diff line change
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"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ volumes
cypress/videos/
cypress/screenshots/
tests/e2e/reports/
tests/e2e/artifacts/
**/tests/e2e/artifacts/

# Logs
logs
Expand Down
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>"
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.portal.zksync.io/ |
| Sub-Section | url | redirect_url |
| Portal | https://zksync.io/explore#bridges | https://goerli.portal.zksync.io |

@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>"
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://portal.zksync.io/ |
| Sub-Section | url | redirect_url |
| Portal | https://zksync.io/explore#bridges | https://portal.zksync.io |

#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 |
Loading