Skip to content

Commit

Permalink
fix: update tests for removing duplicate portal links (#160)
Browse files Browse the repository at this point in the history
# What ❔

In the scope of this PR several changes to automation tests were
performed. Based on the
[PR](#159). Where
Portal links were removed and replaced with one solid approach - to
display link to Bridge as unified platform that we currently use.

## Why ❔

To have automation tests coverage up-to-date with recent changes and not
to block ci/cd run with incorrect behavior for old link.

## 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
olehbairak authored Feb 2, 2024
1 parent f31ea0a commit 66c0178
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 65 deletions.
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

0 comments on commit 66c0178

Please sign in to comment.