Skip to content

Commit

Permalink
test: verify e2e tests for be (#89)
Browse files Browse the repository at this point in the history
# What ❔

check and fix e2e tests for be if any

## Why ❔
-

## Checklist



- [ +] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ -] Tests for the changes have been added / updated.
- [ -] Documentation comments have been added / updated.
  • Loading branch information
pcheremu authored Nov 20, 2023
1 parent c080938 commit b7a9c76
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 17 deletions.
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 |

0 comments on commit b7a9c76

Please sign in to comment.