From c596bdf2f519375f8d454efbfad52118ca200162 Mon Sep 17 00:00:00 2001 From: Lukasz Jagiela Date: Tue, 20 May 2025 11:56:59 +0200 Subject: [PATCH 01/13] test: add script to convert perf metrics to prometheus format --- .github/workflows/ci.yml | 8 +++ .github/workflows/e2e-tests-linux-split.yml | 8 +++ .../tools/convertChromeExtToSafari.sh | 18 ----- .../tools/convert_metrics_to_prometheus.sh | 65 +++++++++++++++++++ .../e2e-tests/tools/openSafariExtension.sh | 8 --- 5 files changed, 81 insertions(+), 26 deletions(-) delete mode 100644 packages/e2e-tests/tools/convertChromeExtToSafari.sh create mode 100755 packages/e2e-tests/tools/convert_metrics_to_prometheus.sh delete mode 100644 packages/e2e-tests/tools/openSafariExtension.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index faf2eb740a..ac0735253d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -324,6 +324,9 @@ jobs: needs: smokeTests if: always() steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Download all smoke tests artifacts uses: actions/download-artifact@v4 with: @@ -343,6 +346,11 @@ jobs: platform=Linux " > environment.properties + - name: Convert metrics JSON to Prometheus format + working-directory: './packages/e2e-tests/tools/' + run: | + ./convert_metrics_to_prometheus.sh "${{ github.workflow }}" "${{ github.run_id }}" ../../../metrics + - name: Publish allure report to S3 uses: andrcuns/allure-publish-action@v2.9.0 if: always() diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index 110c80880f..38b6e43e25 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -193,6 +193,9 @@ jobs: # when cancelling job always() will prevent step from being cancelled and we don't want process results in this case if: ${{ success() || failure() }} steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Download all artifacts uses: actions/download-artifact@v4 with: @@ -212,6 +215,11 @@ jobs: tags=${{ needs.setup.outputs.tags }} " > environment.properties + - name: Convert metrics JSON to Prometheus format + working-directory: './packages/e2e-tests/tools/' + run: | + ./convert_metrics_to_prometheus.sh "${{ github.workflow }}" "${{ github.run_id }}" ../../../artifacts/metrics + - name: Publish allure report to S3 uses: andrcuns/allure-publish-action@v2.9.0 env: diff --git a/packages/e2e-tests/tools/convertChromeExtToSafari.sh b/packages/e2e-tests/tools/convertChromeExtToSafari.sh deleted file mode 100644 index 9067ae3589..0000000000 --- a/packages/e2e-tests/tools/convertChromeExtToSafari.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -EXTENSION_DIR=../../apps/browser-extension-wallet -EXTENSION_BUILD_DIR="$EXTENSION_DIR/dist" -SAFARI_EXTENSION_OUTPUT_RELATIVE_PATH=./wallet-extension-safari-build -SAFARI_BUILT_EXTENSION_DIR="$SAFARI_EXTENSION_OUTPUT_RELATIVE_PATH/extension-build" -SAFARI_DEBUG_BUILD_PATH="$SAFARI_BUILT_EXTENSION_DIR/Build/Products/Release" - -if [ ! -d $EXTENSION_BUILD_DIR ]; then - echo "Could not find web extension build. Please build extension first" - exit -fi - -xcrun safari-web-extension-converter $EXTENSION_BUILD_DIR --no-prompt --copy-resources --no-open --project-location $SAFARI_EXTENSION_OUTPUT_RELATIVE_PATH --bundle-identifier io.lace.Lace - -cd "$SAFARI_EXTENSION_OUTPUT_RELATIVE_PATH/Lace" - -xcodebuild -configuration Release -scheme "Lace (macOS)" -derivedDataPath $SAFARI_BUILT_EXTENSION_DIR diff --git a/packages/e2e-tests/tools/convert_metrics_to_prometheus.sh b/packages/e2e-tests/tools/convert_metrics_to_prometheus.sh new file mode 100755 index 0000000000..c2ba153b2e --- /dev/null +++ b/packages/e2e-tests/tools/convert_metrics_to_prometheus.sh @@ -0,0 +1,65 @@ +#!/bin/bash + +set -euo pipefail + +JOB=${1:-} +INSTANCE=${2:-} +METRICS_DIR=${3:-metrics} + +if [[ -z "$JOB" || -z "$INSTANCE" ]]; then + echo "Usage: $0 [metrics_dir]" + echo " job - GitHub workflow name" + echo " instance - GitHub run ID" + echo " metrics_dir - (optional) Directory containing JSON metrics files (default: metrics)" + exit 1 +fi + +OUTPUT_FILE="$METRICS_DIR/prometheus.txt" + +if [[ ! -d "$METRICS_DIR" ]]; then + echo "Metrics directory '$METRICS_DIR' does not exist." + exit 0 +fi + +shopt -s nullglob +FILES=("$METRICS_DIR"/*.json) + +# Filter out the output file from being processed +FILES=("${FILES[@]/$OUTPUT_FILE}") + +if [[ ${#FILES[@]} -eq 0 ]]; then + echo "No JSON files found in '$METRICS_DIR'." + exit 0 +fi + +> "$OUTPUT_FILE" + +for file in "${FILES[@]}"; do + if [[ ! -s "$file" ]]; then + echo "Skipping empty file: $file" + continue + fi + + filename=$(basename "$file") + scenario_id="${filename%%-chrome-usage.json}" + scenario_name=$(jq -r '.scenarioName // empty' "$file") + data_length=$(jq '.data | length' "$file") + + echo "# Metrics from $filename" >> "$OUTPUT_FILE" + + if [[ "$data_length" -eq 0 ]]; then + echo "e2e_cpu_seconds_total{scenario_name=\"$scenario_name\",scenario_id=\"$scenario_id\",job=\"$JOB\",instance=\"$INSTANCE\"} 0" >> "$OUTPUT_FILE" + echo "e2e_memory_rss_bytes{scenario_name=\"$scenario_name\",scenario_id=\"$scenario_id\",job=\"$JOB\",instance=\"$INSTANCE\"} 0" >> "$OUTPUT_FILE" + else + jq -c '.data[]' "$file" | while read -r entry; do + timestamp=$(echo "$entry" | jq -r '.timestamp') + cpu=$(echo "$entry" | jq -r '.cpu') + memory=$(echo "$entry" | jq -r '.memory') + + echo "e2e_cpu_seconds_total{scenario_name=\"$scenario_name\",scenario_id=\"$scenario_id\",job=\"$JOB\",instance=\"$INSTANCE\",timestamp=\"$timestamp\"} $cpu" >> "$OUTPUT_FILE" + echo "e2e_memory_rss_bytes{scenario_name=\"$scenario_name\",scenario_id=\"$scenario_id\",job=\"$JOB\",instance=\"$INSTANCE\",timestamp=\"$timestamp\"} $memory" >> "$OUTPUT_FILE" + done + fi +done + +echo "Metrics converted to Prometheus format: $OUTPUT_FILE" diff --git a/packages/e2e-tests/tools/openSafariExtension.sh b/packages/e2e-tests/tools/openSafariExtension.sh deleted file mode 100644 index fda8d696b2..0000000000 --- a/packages/e2e-tests/tools/openSafariExtension.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -SAFARI_EXTENSION_OUTPUT_RELATIVE_PATH=./wallet-extension-safari-build -SAFARI_BUILT_EXTENSION_DIR="$SAFARI_EXTENSION_OUTPUT_RELATIVE_PATH/extension-build" -SAFARI_DEBUG_BUILD_PATH="$SAFARI_BUILT_EXTENSION_DIR/Build/Products/Release" - -cd "$SAFARI_EXTENSION_OUTPUT_RELATIVE_PATH/Lace" -open -n "$SAFARI_DEBUG_BUILD_PATH/Lace.app" From 97610f9f6bcc33a52af12dbdaab0a0a477c39816 Mon Sep 17 00:00:00 2001 From: bernokl Date: Tue, 20 May 2025 13:23:50 +0000 Subject: [PATCH 02/13] chore: add prom metrics uploader to e2e --- .github/workflows/e2e-tests-linux-split.yml | 33 +++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index 38b6e43e25..c363baa4eb 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -249,6 +249,9 @@ jobs: SLACK_TITLE: 'Test automation results :rocket:' SLACK_USERNAME: lace-qa-bot SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + PUSH_URL: ${{ secrets.GRAFANA_PUSH_URL }} # e.g., https://prometheus-us-central1.grafana.net/api/prom/push + PUSH_USER: ${{ secrets.GRAFANA_USERNAME }} # e.g., 787878 + PUSH_PASS: ${{ secrets.GRAFANA_PASSWORD }} # e.g., eyJrIjoxxxxxxxxxxxxxxyMX0= - name: Deleting chrome tmp files id: clean-chrome-tmp-files @@ -268,3 +271,33 @@ jobs: with: name: performance-metrics path: ./artifacts/metrics + + - name: Create Prometheus config + run: | + cat >prometheus.yml < http.log 2>&1 + pwd + - name: Run Prometheus + run: | + docker run -d --name prometheus -v $(pwd):/etc/prometheus -p 9090:9090 --link http-server prom/prometheus:latest --config.file=/etc/prometheus/prometheus.yml --web.listen-address=:9090 > prom.log 2>&1 + sleep 60 + # Uncomment for troubleshooting. + curl http://localhost:9090/api/v1/query?query=e2e_cpu_seconds_total + From 893b2181d044d118ec41a345e8ea42951b97aebe Mon Sep 17 00:00:00 2001 From: bernokl Date: Tue, 20 May 2025 22:19:51 +0000 Subject: [PATCH 03/13] chore: update http.server root --- .github/workflows/e2e-tests-linux-split.yml | 43 +++++++++++++++------ 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/.github/workflows/e2e-tests-linux-split.yml b/.github/workflows/e2e-tests-linux-split.yml index c363baa4eb..8d5ae1c1e8 100644 --- a/.github/workflows/e2e-tests-linux-split.yml +++ b/.github/workflows/e2e-tests-linux-split.yml @@ -249,9 +249,6 @@ jobs: SLACK_TITLE: 'Test automation results :rocket:' SLACK_USERNAME: lace-qa-bot SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - PUSH_URL: ${{ secrets.GRAFANA_PUSH_URL }} # e.g., https://prometheus-us-central1.grafana.net/api/prom/push - PUSH_USER: ${{ secrets.GRAFANA_USERNAME }} # e.g., 787878 - PUSH_PASS: ${{ secrets.GRAFANA_PASSWORD }} # e.g., eyJrIjoxxxxxxxxxxxxxxyMX0= - name: Deleting chrome tmp files id: clean-chrome-tmp-files @@ -273,31 +270,55 @@ jobs: path: ./artifacts/metrics - name: Create Prometheus config + env: + PUSH_URL: ${{ secrets.GRAFANA_PUSH_URL }} # e.g., https://prometheus-us-central1.grafana.net/api/prom/push + PUSH_USER: ${{ secrets.GRAFANA_USERNAME }} # e.g., 787878 + PUSH_PASS: ${{ secrets.GRAFANA_PASSWORD }} # e.g., eyJrIjoxxxxxxxxxxxxxxyMX0= run: | cat >prometheus.yml < http.log 2>&1 + docker run -d --name pushgateway -p 9091:9091 prom/pushgateway + cat ./artifacts/metrics/prometheus.txt | curl --data-binary @- http://localhost:9091/metrics/job/e2e-perf + #docker run -d --name http-server -v $(pwd):/app -w /app -p 8000:8000 python:3.11-slim python -m http.server 8000 > http.log 2>&1 + printf '\n*****************\n' + echo 'This is my current directory:' pwd + printf '\n*****************\n' + echo 'This is ls -al in that directory' + ls -al + printf '\n*****************\n' + - name: Run Prometheus run: | - docker run -d --name prometheus -v $(pwd):/etc/prometheus -p 9090:9090 --link http-server prom/prometheus:latest --config.file=/etc/prometheus/prometheus.yml --web.listen-address=:9090 > prom.log 2>&1 - sleep 60 + # Enable logs for debugging + #docker run --name prometheus -v $(pwd):/etc/prometheus -p 9090:9090 --link pushgateway:pushgateway prom/prometheus:latest --config.file=/etc/prometheus/prometheus.yml --web.listen-address=:9090 --log.level=debug + docker run -d --name prometheus -v $(pwd):/etc/prometheus -p 9090:9090 --link pushgateway:pushgateway prom/prometheus:latest --config.file=/etc/prometheus/prometheus.yml --web.listen-address=:9090 > prom.log 2>&1 + sleep 500 # Uncomment for troubleshooting. + printf '\n*****************\n' + printf '\n curl e2e_cpu_seconds_total \n' curl http://localhost:9090/api/v1/query?query=e2e_cpu_seconds_total + printf '\n*****************\n' + printf '\n send_failures_total \n' + curl 'http://localhost:9090/api/v1/query?query=prometheus_remote_storage_queue_send_failures_total' + printf '\n*****************\n' + printf '\n storage_retries_total \n' + curl 'http://localhost:9090/api/v1/query?query=prometheus_remote_storage_retries_total' + From b2b9a3cb83187b84a4aa46b50b3ff890f55dbf68 Mon Sep 17 00:00:00 2001 From: bernokl Date: Fri, 23 May 2025 01:28:31 +0000 Subject: [PATCH 04/13] test: sub quote for single quote in dapp e2e --- .../src/features/AdaHandleExtended.feature | 208 ++++++------ .../src/features/AdaHandlePopup.feature | 208 ++++++------ .../features/AdaHandleSendExtended.feature | 58 ++-- .../src/features/AdaHandleSendPopup.feature | 38 +-- .../src/features/AddNewWalletConnect.feature | 20 +- .../features/AddNewWalletCreate.part1.feature | 136 ++++---- .../features/AddNewWalletCreate.part2.feature | 110 +++---- .../AddNewWalletCreatePaperWallet.feature | 150 ++++----- .../src/features/AddNewWalletRestore.feature | 204 ++++++------ .../AddressBookExtended.part1.feature | 44 +-- .../AddressBookExtended.part2.feature | 90 +++--- .../AddressBookExtended.part3.feature | 112 +++---- .../features/AddressBookPopup.part1.feature | 82 ++--- .../features/AddressBookPopup.part2.feature | 74 ++--- .../src/features/CollateralExtended.feature | 32 +- .../src/features/CollateralPopup.feature | 34 +- .../src/features/DAppConnector.feature | 112 +++---- .../features/DAppConnectorExtended.feature | 32 +- .../src/features/DAppConnectorPopup.feature | 32 +- .../src/features/DAppExplorerExtended.feature | 16 +- .../src/features/DAppExplorerPopup.feature | 2 +- .../src/features/EmptyStatesExtended.feature | 40 +-- .../src/features/EmptyStatesPopup.feature | 24 +- .../FiatOnRampOffRampBanxaExtended.feature | 44 +-- .../FiatOnRampOffRampBanxaPopup.feature | 2 +- .../src/features/ForgotPassword.feature | 94 +++--- .../src/features/FullExperiencePopup.feature | 12 +- .../src/features/HdWalletExtended.feature | 10 +- .../src/features/LockWalletExtended.feature | 16 +- .../src/features/LockWalletPopup.feature | 10 +- .../MultiDelegationPageExtended.part1.feature | 34 +- .../MultiDelegationPageExtended.part2.feature | 126 ++++---- .../MultiDelegationPageExtended.part3.feature | 104 +++--- .../features/MultiDelegationPagePopup.feature | 10 +- ...elegatedFundsMultiplePoolsExtended.feature | 78 ++--- ...MultiplePoolsNotRegisteredExtended.feature | 14 +- ...ndsMultiplePoolsNotRegisteredPopup.feature | 14 +- ...onDelegatedFundsMultiplePoolsPopup.feature | 8 +- ...gatedFundsSinglePoolExtended.part1.feature | 10 +- ...gatedFundsSinglePoolExtended.part2.feature | 80 ++--- ...ationDelegatedFundsSinglePoolPopup.feature | 6 +- .../src/features/NFTPrintLabExtended.feature | 24 +- .../src/features/NFTPrintLabPopup.feature | 24 +- .../src/features/NFTsExtended.feature | 58 ++-- .../NFTsFoldersExtended.part1.feature | 176 +++++------ .../NFTsFoldersExtended.part2.feature | 210 ++++++------ .../NFTsFoldersExtended.part3.feature | 74 ++--- .../features/NFTsFoldersPopup.part1.feature | 216 ++++++------- .../features/NFTsFoldersPopup.part2.feature | 198 ++++++------ .../features/NFTsFoldersPopup.part3.feature | 42 +-- .../e2e-tests/src/features/NFTsPopup.feature | 32 +- .../src/features/NamiModeExtended.feature | 22 +- .../src/features/NamiModePopup.feature | 22 +- .../NavigationMainExtended.part1.feature | 36 +-- .../NavigationMainExtended.part2.feature | 36 +-- .../features/NavigationTopExtended.feature | 26 +- .../src/features/NavigationTopPopup.feature | 24 +- .../features/NetworkRequestsCounting.feature | 2 +- .../features/NetworkSwitchingExtended.feature | 10 +- .../features/NetworkSwitchingPopup.feature | 10 +- .../OnboardingCreatePaperWallet.feature | 154 ++++----- .../OnboardingCreateWallet.part1.feature | 128 ++++---- .../OnboardingCreateWallet.part2.feature | 164 +++++----- .../features/OnboardingHardwareWallet.feature | 26 +- .../OnboardingRestorePaperWallet.feature | 18 +- .../OnboardingRestoreWallet.part1.feature | 108 +++---- .../OnboardingRestoreWallet.part2.feature | 114 +++---- .../src/features/OwnTagsExtended.feature | 40 +-- .../src/features/OwnTagsPopup.feature | 12 +- ...ndTransactionBundlesExtended.part1.feature | 142 ++++----- ...ndTransactionBundlesExtended.part2.feature | 188 +++++------ ...dTransactionBundlesExtendedMainnet.feature | 298 +++++++++--------- .../SendTransactionMetadataExtended.feature | 18 +- .../SendTransactionMetadataPopup.feature | 18 +- ...ansactionMultipleSelectionExtended.feature | 72 ++--- ...dTransactionMultipleSelectionPopup.feature | 44 +-- ...endTransactionSimpleExtended.part1.feature | 170 +++++----- ...endTransactionSimpleExtended.part2.feature | 186 +++++------ ...endTransactionSimpleExtended.part3.feature | 166 +++++----- ...endTransactionSimpleExtended.part4.feature | 82 ++--- .../SendTransactionSimplePopup.part1.feature | 192 +++++------ .../SendTransactionSimplePopup.part2.feature | 190 +++++------ .../SendTransactionSimplePopup.part3.feature | 230 +++++++------- .../SendTransactionSimplePopup.part4.feature | 78 ++--- .../SettingsGeneratePaperWallet.feature | 78 ++--- .../SettingsPageExtended.part1.feature | 126 ++++---- .../SettingsPageExtended.part2.feature | 178 +++++------ .../features/SettingsPagePopup.part1.feature | 114 +++---- .../features/SettingsPagePopup.part2.feature | 140 ++++---- .../features/SharedWalletOnboarding.feature | 86 ++--- .../src/features/SignMessage.feature | 42 +-- .../features/TokensPageExtended.part1.feature | 30 +- .../features/TokensPageExtended.part2.feature | 38 +-- .../features/TokensPagePopup.part1.feature | 24 +- .../features/TokensPagePopup.part2.feature | 28 +- .../TransactionsExtended.part1.feature | 8 +- .../TransactionsExtended.part2.feature | 8 +- .../src/features/VotingCenterExtended.feature | 8 +- .../src/features/VotingCenterPopup.feature | 6 +- .../features/WalletAccountsExtended.feature | 96 +++--- .../src/features/WalletAccountsPopup.feature | 86 ++--- .../WalletAddressPageExtended.feature | 94 +++--- .../features/WalletRenamingExtended.feature | 90 +++--- .../src/features/WalletRenamingPopup.feature | 90 +++--- .../AnalyticsActivityExtended.feature | 12 +- .../analytics/AnalyticsActivityPopup.feature | 12 +- .../AnalyticsAddressBookExtended.feature | 78 ++--- .../AnalyticsAddressBookPopup.feature | 64 ++-- .../AnalyticsDAppExplorerExtended.feature | 6 +- .../AnalyticsEventPropertiesExtended.feature | 20 +- .../AnalyticsEventPropertiesPopup.feature | 20 +- .../AnalyticsFiatOnRampOffRamp.feature | 16 +- .../analytics/AnalyticsForgotPassword.feature | 46 +-- .../analytics/AnalyticsNFTsExtended.feature | 26 +- .../analytics/AnalyticsNFTsPopup.feature | 26 +- .../AnalyticsNavigationMainExtended.feature | 2 +- .../AnalyticsNavigationMainPopup.feature | 2 +- .../AnalyticsNavigationTopExtended.feature | 24 +- .../AnalyticsNavigationTopPopup.feature | 24 +- .../AnalyticsOnboardingEvents.feature | 80 ++--- .../analytics/AnalyticsSendExtended.feature | 90 +++--- .../analytics/AnalyticsSendPopup.feature | 28 +- .../AnalyticsSettingsExtended.feature | 132 ++++---- .../analytics/AnalyticsSettingsPopup.feature | 128 ++++---- .../AnalyticsStakingExtended.feature | 76 ++--- ...yticsStakingSwitchingPoolsExtended.feature | 62 ++-- .../analytics/AnalyticsTokensExtended.feature | 16 +- .../analytics/AnalyticsTokensPopup.feature | 12 +- .../AnalyticsVotingCenterExtended.feature | 6 +- .../AnalyticsVotingCenterPopup.feature | 6 +- ...elegationSwitchingPoolsExtendedE2E.feature | 84 ++--- .../features/e2e/SendNftExtendedE2E.feature | 16 +- .../e2e/SendNftExtendedHdWalletE2E.feature | 16 +- .../src/features/e2e/SendNftPopupE2E.feature | 18 +- .../e2e/SendTransactionBundlesE2E.feature | 36 +-- .../e2e/SendTransactionDappE2E.feature | 106 +++---- .../SendTransactionSimpleExtendedE2E.feature | 48 +-- .../e2e/SendTransactionSimplePopupE2E.feature | 48 +-- .../src/features/e2e/SignDataDAppE2E.feature | 14 +- .../e2e/StakingInitialFundsE2E.feature | 36 +-- .../governance/CIP95StaticMethods.feature | 24 +- .../features/trezor/TrezorOnboarding.feature | 6 +- .../trezor/TrezorSendExtended.feature | 24 +- 143 files changed, 4735 insertions(+), 4735 deletions(-) diff --git a/packages/e2e-tests/src/features/AdaHandleExtended.feature b/packages/e2e-tests/src/features/AdaHandleExtended.feature index 478a4be281..af9b36fbf4 100644 --- a/packages/e2e-tests/src/features/AdaHandleExtended.feature +++ b/packages/e2e-tests/src/features/AdaHandleExtended.feature @@ -8,184 +8,184 @@ Feature: ADA handle - extended view @LW-7331 Scenario: Extended view - Add a valid ADA handle to the address book Given I am on Address Book extended page - And I click "Add address" button on address book page - When I fill address form with "test_handle_1" name - And I fill address form with "$test_handle_1" ADA handle + And I click 'Add address' button on address book page + When I fill address form with 'test_handle_1' name + And I fill address form with '$test_handle_1' ADA handle Then Green tick icon is displayed next to ADA handle - And "Save address" button is enabled on "Add new address" drawer - When I click "Save address" button on "Add new address" drawer - Then I see a toast with text: "Address added" - And I see address row with name "test_handle_1" and address "$test_handle_1" on the list in extended mode + And 'Save address' button is enabled on 'Add new address' drawer + When I click 'Save address' button on 'Add new address' drawer + Then I see a toast with text: 'Address added' + And I see address row with name 'test_handle_1' and address '$test_handle_1' on the list in extended mode @LW-7333 Scenario: Extended view - Add an invalid ADA handle to the address book Given I am on Address Book extended page - And I click "Add address" button on address book page - When I fill address form with "ADA handle" name - And I fill address form with "$fake_handle" ADA handle - Then Red "X" icon is displayed next to ADA handle - And "Handle not found" error is displayed in address book form - And "Save address" button is disabled on "Add new address" drawer + And I click 'Add address' button on address book page + When I fill address form with 'ADA handle' name + And I fill address form with '$fake_handle' ADA handle + Then Red 'X' icon is displayed next to ADA handle + And 'Handle not found' error is displayed in address book form + And 'Save address' button is disabled on 'Add new address' drawer @LW-7335 Scenario: Extended view - Edit an ADA handle from the address book Given I have 2 addresses with ADA handle in my address book in extended mode - And I click address on the list with name "Ada Handle 1" - And I see address detail page in extended mode with details of "Ada Handle 1" address - And I click "Edit" button on address details page - And I see "Edit address" drawer in extended mode with details of "Ada Handle 1" address - When I fill address form with "AH 1 edited" name and "$test_handle_3" address + And I click address on the list with name 'Ada Handle 1' + And I see address detail page in extended mode with details of 'Ada Handle 1' address + And I click 'Edit' button on address details page + And I see 'Edit address' drawer in extended mode with details of 'Ada Handle 1' address + When I fill address form with 'AH 1 edited' name and '$test_handle_3' address Then Green tick icon is displayed next to ADA handle - And I click "Done" button on "Edit address" drawer - And I see a toast with text: "Edited successfully" - And I see address row with name "AH 1 edited" and address "$test_handle_3" on the list in extended mode + And I click 'Done' button on 'Edit address' drawer + And I see a toast with text: 'Edited successfully' + And I see address row with name 'AH 1 edited' and address '$test_handle_3' on the list in extended mode @LW-7337 Scenario: Extended view - Edit an ADA handle from the address book with an invalid handle Given I have 2 addresses with ADA handle in my address book in extended mode - And I click address on the list with name "Ada Handle 1" - And I click "Edit" button on address details page - When I fill address form with "AH 1 edited" name and "$a3asd35" address - Then Red "X" icon is displayed next to ADA handle - And Contact "empty" name error and "Handle not found" address error are displayed - And "Done" button is disabled on "Edit address" drawer + And I click address on the list with name 'Ada Handle 1' + And I click 'Edit' button on address details page + When I fill address form with 'AH 1 edited' name and '$a3asd35' address + Then Red 'X' icon is displayed next to ADA handle + And Contact 'empty' name error and 'Handle not found' address error are displayed + And 'Done' button is disabled on 'Edit address' drawer @LW-7339 Scenario: Extended view - Edit an ADA handle from the address book with a duplicated handle Given I have 2 addresses with ADA handle in my address book in extended mode - And I click address on the list with name "Ada Handle 1" - And I click "Edit" button on address details page - When I fill address form with "AH 1 edited" name and "$test_handle_2" address + And I click address on the list with name 'Ada Handle 1' + And I click 'Edit' button on address details page + When I fill address form with 'AH 1 edited' name and '$test_handle_2' address Then Green tick icon is displayed next to ADA handle - And I click "Done" button on "Edit address" drawer - And I see a toast with text: "Given address already exists" + And I click 'Done' button on 'Edit address' drawer + And I see a toast with text: 'Given address already exists' @LW-7140 @LW-7136 Scenario: Extended View - Ada handles displayed and sorted by handle length - When I click "Receive" button on page header - Then I see "Wallet Address" page in extended mode for wallet "WalletAdaHandle" - And I see handles listed on the "Receive" screen - And I see address card for handle: "$cde" - And I see address card for handle: "$t_h_1" - And I see address card for handle: "$test_handle_1" - And I see address card for handle: "$test_handle_2" - And I see address card for handle: "$test_handle_3" + When I click 'Receive' button on page header + Then I see 'Wallet Address' page in extended mode for wallet 'WalletAdaHandle' + And I see handles listed on the 'Receive' screen + And I see address card for handle: '$cde' + And I see address card for handle: '$t_h_1' + And I see address card for handle: '$test_handle_1' + And I see address card for handle: '$test_handle_2' + And I see address card for handle: '$test_handle_3' And The first ADA handle displayed on the list is the shortest @LW-7138 @LW-8509 Scenario: Extended View - Copy address/ADA handle Given I close wallet synced toast - And I click "Receive" button on page header - And I see "Wallet Address" page in extended mode for wallet "WalletAdaHandle" - When I click "Copy" button on "Receive" page for default wallet address - Then I see a toast with text: "Copied to clipboard" + And I click 'Receive' button on page header + And I see 'Wallet Address' page in extended mode for wallet 'WalletAdaHandle' + When I click 'Copy' button on 'Receive' page for default wallet address + Then I see a toast with text: 'Copied to clipboard' And I close a toast message - And Clipboard contains address of wallet: "WalletAdaHandle" - When I click "Copy" button on "Receive" page for handle: "$cde" - Then I see a toast with text: "Handle copied" + And Clipboard contains address of wallet: 'WalletAdaHandle' + When I click 'Copy' button on 'Receive' page for handle: '$cde' + Then I see a toast with text: 'Handle copied' And I close a toast message - And Clipboard contains text: "$cde" - When I click "Copy" button on "Receive" page for handle: "$t_h_1" - Then I see a toast with text: "Handle copied" + And Clipboard contains text: '$cde' + When I click 'Copy' button on 'Receive' page for handle: '$t_h_1' + Then I see a toast with text: 'Handle copied' And I close a toast message - And Clipboard contains text: "$t_h_1" - When I click "Copy" button on "Receive" page for handle: "$test_handle_1" - Then I see a toast with text: "Handle copied" + And Clipboard contains text: '$t_h_1' + When I click 'Copy' button on 'Receive' page for handle: '$test_handle_1' + Then I see a toast with text: 'Handle copied' And I close a toast message - And Clipboard contains text: "$test_handle_1" - When I click "Copy" button on "Receive" page for handle: "$test_handle_3" - Then I see a toast with text: "Handle copied" + And Clipboard contains text: '$test_handle_1' + When I click 'Copy' button on 'Receive' page for handle: '$test_handle_3' + Then I see a toast with text: 'Handle copied' And I close a toast message - And Clipboard contains text: "$test_handle_3" + And Clipboard contains text: '$test_handle_3' @LW-7427 @LW-7426 Scenario: Extended View - Validate custom ADA handle image on the wallet address/NFTs/NFT details page - When I click "Receive" button on page header - Then I see ADA handle with custom image on the "Wallet Address" page + When I click 'Receive' button on page header + Then I see ADA handle with custom image on the 'Wallet Address' page And I close the drawer by clicking close button When I navigate to NFTs extended page Then I see ADA handle NFT with custom image on the NFTs page - When I left click on the NFT with name "$test_handle_1" on NFTs page + When I left click on the NFT with name '$test_handle_1' on NFTs page Then I see ADA handle NFT details page with custom image in extended mode @LW-7430 Scenario: Extended View - Validate custom ADA handle image on the send/coin selector page - When I click "Send" button on page header - And I click "Add token or NFT" button for bundle 1 + When I click 'Send' button on page header + And I click 'Add token or NFT' button for bundle 1 And click on the NFTs button in the coin selector dropdown - Then NFT with name: "$test_handle_1" is displayed in coin selector + Then NFT with name: '$test_handle_1' is displayed in coin selector And I see ADA handle NFT with custom image on the Coin selector page - When I click on NFT with name: "$test_handle_1" - Then the "$test_handle_1" asset is displayed in bundle 1 + When I click on NFT with name: '$test_handle_1' + Then the '$test_handle_1' asset is displayed in bundle 1 @LW-7429 Scenario: Extended View - Validate custom ADA handle image on the NFT folder thumbnail/page Given I navigate to NFTs extended page - And I click "Receive" button on page header - And I see handles listed on the "Receive" screen + And I click 'Receive' button on page header + And I see handles listed on the 'Receive' screen And I close the drawer by clicking close button And I navigate to NFTs extended page - When I create folder with name: "Ada Handle folder" that contains 5 NFTs - Then I see a thumbnail of ADA handle with custom image on the NFT folder with name: "Ada Handle folder" - When I left click on the NFT folder with name "Ada Handle folder" - And I see "Ada Handle folder" NFT folder page in extended mode - And I see NFT with name "$test_handle_1" on the NFT folder page - And I see NFT with name "$test_handle_2" on the NFT folder page - And I see NFT with name "$test_handle_3" on the NFT folder page - And I see NFT with name "$t_h_1" on the NFT folder page + When I create folder with name: 'Ada Handle folder' that contains 5 NFTs + Then I see a thumbnail of ADA handle with custom image on the NFT folder with name: 'Ada Handle folder' + When I left click on the NFT folder with name 'Ada Handle folder' + And I see 'Ada Handle folder' NFT folder page in extended mode + And I see NFT with name '$test_handle_1' on the NFT folder page + And I see NFT with name '$test_handle_2' on the NFT folder page + And I see NFT with name '$test_handle_3' on the NFT folder page + And I see NFT with name '$t_h_1' on the NFT folder page Then I see ADA handle NFT with custom image on the NFT folder page @LW-7428 - Scenario: Extended View - Validate custom ADA handle image on the "Select NFT" (folder) screen + Scenario: Extended View - Validate custom ADA handle image on the 'Select NFT' (folder) screen Given I navigate to NFTs extended page - And I click "Receive" button on page header - And I see handles listed on the "Receive" screen + And I click 'Receive' button on page header + And I see handles listed on the 'Receive' screen And I close the drawer by clicking close button And I navigate to NFTs extended page - And I click "Create folder" button on NFTs page - And I enter a folder name "Sample NFT folder" into "Folder name" input - And I click "Next" button on "Name your folder" page - Then I can see the handles listed on the "Select NFT" screen + And I click 'Create folder' button on NFTs page + And I enter a folder name 'Sample NFT folder' into 'Folder name' input + And I click 'Next' button on 'Name your folder' page + Then I can see the handles listed on the 'Select NFT' screen And I see ADA handle NFT with custom image on the Select NFT page And the corresponding custom images are displayed @LW-5025 @LW-5028 @LW-5030 - @skip(browserName="firefox") + @skip(browserName='firefox') Scenario: Extended View - Send flow - Enter ADA handle and confirm validated - When I click "Send" button on page header + When I click 'Send' button on page header And I am in the slow network mode - And I enter "$test_handle_3" in the bundle 1 recipient's address + And I enter '$test_handle_3' in the bundle 1 recipient's address Then search loader is displayed inside address input field And Green tick icon is displayed next to ADA handle - And "Add address" button is enabled in the bundle 1 recipient's address input + And 'Add address' button is enabled in the bundle 1 recipient's address input @LW-5026 @LW-5032 - @skip(browserName="firefox") + @skip(browserName='firefox') Scenario: Extended View - Send flow - Enter ADA handle and confirm invalid - When I click "Send" button on page header + When I click 'Send' button on page header And I am in the slow network mode - And I enter "$fake_handle" in the bundle 1 recipient's address + And I enter '$fake_handle' in the bundle 1 recipient's address Then search loader is displayed inside address input field And Red exclamation icon is displayed next to ADA handle - And "Handle not found" error is displayed under address input in "Send" drawer - And "Add address" button is disabled in the bundle 1 recipient's address input + And 'Handle not found' error is displayed under address input in 'Send' drawer + And 'Add address' button is disabled in the bundle 1 recipient's address input @LW-8746 Scenario: Extended View - Send flow - Add address - Valid ADA handle - When I click "Send" button on page header - And I enter "$test_handle_3" in the bundle 1 recipient's address - And click "Add address" button inside address input 1 - And I fill address form with "test handle" name + When I click 'Send' button on page header + And I enter '$test_handle_3' in the bundle 1 recipient's address + And click 'Add address' button inside address input 1 + And I fill address form with 'test handle' name Then Green tick icon is displayed next to ADA handle - And "Save address" button is enabled on "Add new address" drawer + And 'Save address' button is enabled on 'Add new address' drawer @LW-8748 Scenario: Extended View - Send flow - Add address - Invalid ADA handle - When I click "Send" button on page header - And I enter "$test_handle_3" in the bundle 1 recipient's address - And click "Add address" button inside address input 1 - And I fill address form with "test handle" name - And I fill address form with "$fake_handle" ADA handle - Then Red "X" icon is displayed next to ADA handle - And "Handle not found" error is displayed in address book form - And "Save address" button is disabled on "Add new address" drawer + When I click 'Send' button on page header + And I enter '$test_handle_3' in the bundle 1 recipient's address + And click 'Add address' button inside address input 1 + And I fill address form with 'test handle' name + And I fill address form with '$fake_handle' ADA handle + Then Red 'X' icon is displayed next to ADA handle + And 'Handle not found' error is displayed in address book form + And 'Save address' button is disabled on 'Add new address' drawer diff --git a/packages/e2e-tests/src/features/AdaHandlePopup.feature b/packages/e2e-tests/src/features/AdaHandlePopup.feature index 9e2bb30456..a18ea920c9 100644 --- a/packages/e2e-tests/src/features/AdaHandlePopup.feature +++ b/packages/e2e-tests/src/features/AdaHandlePopup.feature @@ -8,181 +8,181 @@ Feature: ADA handle - popup view @LW-7332 Scenario: Popup view - Add a valid ADA handle to the address book Given I am on Address Book popup page - And I click "Add address" button on address book page - When I fill address form with "test_handle_1" name - And I fill address form with "$test_handle_1" ADA handle + And I click 'Add address' button on address book page + When I fill address form with 'test_handle_1' name + And I fill address form with '$test_handle_1' ADA handle Then Green tick icon is displayed next to ADA handle - And "Save address" button is enabled on "Add new address" drawer - When I click "Save address" button on "Add new address" drawer - Then I see a toast with text: "Address added" - And I see address row with name "test_handle_1" and address "$test_handle_1" on the list in popup mode + And 'Save address' button is enabled on 'Add new address' drawer + When I click 'Save address' button on 'Add new address' drawer + Then I see a toast with text: 'Address added' + And I see address row with name 'test_handle_1' and address '$test_handle_1' on the list in popup mode @LW-7334 Scenario: Popup view - Add an invalid ADA handle to the address book Given I am on Address Book popup page - And I click "Add address" button on address book page - When I fill address form with "ADA handle" name - And I fill address form with "$fake_handle" ADA handle - Then Red "X" icon is displayed next to ADA handle - And "Handle not found" error is displayed in address book form - And "Save address" button is disabled on "Add new address" drawer + And I click 'Add address' button on address book page + When I fill address form with 'ADA handle' name + And I fill address form with '$fake_handle' ADA handle + Then Red 'X' icon is displayed next to ADA handle + And 'Handle not found' error is displayed in address book form + And 'Save address' button is disabled on 'Add new address' drawer @LW-7336 @skip(browserName='firefox') @issue=LW-12440 Scenario: Popup view - Edit an ADA handle from the address book Given I have 2 addresses with ADA handle in my address book in popup mode - And I click address on the list with name "Ada Handle 1" - And I see address detail page in popup mode with details of "Ada Handle 1" address - And I click "Edit" button on address details page - And I see "Edit address" drawer in popup mode with details of "Ada Handle 1" address - When I fill address form with "AH 1 edited" name and "$test_handle_3" address + And I click address on the list with name 'Ada Handle 1' + And I see address detail page in popup mode with details of 'Ada Handle 1' address + And I click 'Edit' button on address details page + And I see 'Edit address' drawer in popup mode with details of 'Ada Handle 1' address + When I fill address form with 'AH 1 edited' name and '$test_handle_3' address Then Green tick icon is displayed next to ADA handle - And I click "Done" button on "Edit address" drawer - And I see a toast with text: "Edited successfully" - And I see address row with name "AH 1 edited" and address "$test_handle_3" on the list in popup mode + And I click 'Done' button on 'Edit address' drawer + And I see a toast with text: 'Edited successfully' + And I see address row with name 'AH 1 edited' and address '$test_handle_3' on the list in popup mode @LW-7338 Scenario: Popup view - Edit an ADA handle from the address book with an invalid handle Given I have 2 addresses with ADA handle in my address book in popup mode - And I click address on the list with name "Ada Handle 1" - And I click "Edit" button on address details page - When I fill address form with "AH 1 edited" name and "$a3asd35" address - Then Red "X" icon is displayed next to ADA handle - And Contact "empty" name error and "Handle not found" address error are displayed - And "Done" button is disabled on "Edit address" drawer + And I click address on the list with name 'Ada Handle 1' + And I click 'Edit' button on address details page + When I fill address form with 'AH 1 edited' name and '$a3asd35' address + Then Red 'X' icon is displayed next to ADA handle + And Contact 'empty' name error and 'Handle not found' address error are displayed + And 'Done' button is disabled on 'Edit address' drawer @LW-7340 Scenario: Popup view - Edit an ADA handle from the address book with a duplicated handle Given I have 2 addresses with ADA handle in my address book in popup mode - And I click address on the list with name "Ada Handle 1" - And I click "Edit" button on address details page - When I fill address form with "AH 1 edited" name and "$test_handle_2" address + And I click address on the list with name 'Ada Handle 1' + And I click 'Edit' button on address details page + When I fill address form with 'AH 1 edited' name and '$test_handle_2' address Then Green tick icon is displayed next to ADA handle - And I click "Done" button on "Edit address" drawer - And I see a toast with text: "Given address already exists" + And I click 'Done' button on 'Edit address' drawer + And I see a toast with text: 'Given address already exists' @LW-7135 @LW-7139 Scenario: Popup View - Ada handles displayed and sorted by handle length - When I click "Receive" button on Tokens page in popup mode - Then I see "Wallet Address" page in popup mode for wallet "WalletAdaHandle" - And I see handles listed on the "Receive" screen - And I see address card for handle: "$cde" - And I see address card for handle: "$t_h_1" - And I see address card for handle: "$test_handle_1" - And I see address card for handle: "$test_handle_2" - And I see address card for handle: "$test_handle_3" + When I click 'Receive' button on Tokens page in popup mode + Then I see 'Wallet Address' page in popup mode for wallet 'WalletAdaHandle' + And I see handles listed on the 'Receive' screen + And I see address card for handle: '$cde' + And I see address card for handle: '$t_h_1' + And I see address card for handle: '$test_handle_1' + And I see address card for handle: '$test_handle_2' + And I see address card for handle: '$test_handle_3' And The first ADA handle displayed on the list is the shortest @LW-7137 @LW-7070 Scenario: Popup View - Copy address/ADA handle - And I click "Receive" button on Tokens page in popup mode - And I see "Wallet Address" page in popup mode for wallet "WalletAdaHandle" - When I click "Copy" button on "Receive" page for default wallet address - Then I see a toast with text: "Copied to clipboard" + And I click 'Receive' button on Tokens page in popup mode + And I see 'Wallet Address' page in popup mode for wallet 'WalletAdaHandle' + When I click 'Copy' button on 'Receive' page for default wallet address + Then I see a toast with text: 'Copied to clipboard' And I close a toast message - And Clipboard contains address of wallet: "WalletAdaHandle" - When I click "Copy" button on "Receive" page for handle: "$cde" - Then I see a toast with text: "Handle copied" + And Clipboard contains address of wallet: 'WalletAdaHandle' + When I click 'Copy' button on 'Receive' page for handle: '$cde' + Then I see a toast with text: 'Handle copied' And I close a toast message - And Clipboard contains text: "$cde" - When I click "Copy" button on "Receive" page for handle: "$t_h_1" - Then I see a toast with text: "Handle copied" + And Clipboard contains text: '$cde' + When I click 'Copy' button on 'Receive' page for handle: '$t_h_1' + Then I see a toast with text: 'Handle copied' And I close a toast message - And Clipboard contains text: "$t_h_1" - When I click "Copy" button on "Receive" page for handle: "$test_handle_1" - Then I see a toast with text: "Handle copied" + And Clipboard contains text: '$t_h_1' + When I click 'Copy' button on 'Receive' page for handle: '$test_handle_1' + Then I see a toast with text: 'Handle copied' And I close a toast message - And Clipboard contains text: "$test_handle_1" - When I click "Copy" button on "Receive" page for handle: "$test_handle_3" - Then I see a toast with text: "Handle copied" + And Clipboard contains text: '$test_handle_1' + When I click 'Copy' button on 'Receive' page for handle: '$test_handle_3' + Then I see a toast with text: 'Handle copied' And I close a toast message - And Clipboard contains text: "$test_handle_3" + And Clipboard contains text: '$test_handle_3' @LW-7435 @LW-7436 Scenario: Popup View - Validate custom ADA handle image on the wallet address/NFTs/NFT details page - And I click "Receive" button on Tokens page in popup mode - Then I see ADA handle with custom image on the "Wallet Address" page + And I click 'Receive' button on Tokens page in popup mode + Then I see ADA handle with custom image on the 'Wallet Address' page And I close the drawer by clicking close button When I navigate to NFTs popup page Then I see ADA handle NFT with custom image on the NFTs page - When I left click on the NFT with name "$test_handle_1" on NFTs page + When I left click on the NFT with name '$test_handle_1' on NFTs page Then I see ADA handle NFT details page with custom image in popup mode @LW-7432 Scenario: Popup View - Validate custom ADA handle image on the send/coin selector page - When I click "Send" button on Tokens page in popup mode - And I click "Add token or NFT" button for bundle 1 + When I click 'Send' button on Tokens page in popup mode + And I click 'Add token or NFT' button for bundle 1 And click on the NFTs button in the coin selector dropdown - Then NFT with name: "$test_handle_1" is displayed in coin selector + Then NFT with name: '$test_handle_1' is displayed in coin selector And I see ADA handle NFT with custom image on the Coin selector page - When I click on NFT with name: "$test_handle_1" - Then the "$test_hand..." asset is displayed in bundle 1 + When I click on NFT with name: '$test_handle_1' + Then the '$test_hand...' asset is displayed in bundle 1 @LW-7434 Scenario: Popup View - Validate custom ADA handle image on the NFT folder thumbnail/page - Given I click "Receive" button on Tokens page in popup mode - And I see handles listed on the "Receive" screen + Given I click 'Receive' button on Tokens page in popup mode + And I see handles listed on the 'Receive' screen And I close the drawer by clicking close button And I navigate to NFTs popup page - When I create folder with name: "Ada Handle folder" that contains 5 NFTs - Then I see a thumbnail of ADA handle with custom image on the NFT folder with name: "Ada Handle folder" - When I left click on the NFT folder with name "Ada Handle folder" - And I see "Ada Handle folder" NFT folder page in popup mode - And I see NFT with name "$test_handle_1" on the NFT folder page - And I see NFT with name "$test_handle_2" on the NFT folder page - And I see NFT with name "$test_handle_3" on the NFT folder page - And I see NFT with name "$t_h_1" on the NFT folder page + When I create folder with name: 'Ada Handle folder' that contains 5 NFTs + Then I see a thumbnail of ADA handle with custom image on the NFT folder with name: 'Ada Handle folder' + When I left click on the NFT folder with name 'Ada Handle folder' + And I see 'Ada Handle folder' NFT folder page in popup mode + And I see NFT with name '$test_handle_1' on the NFT folder page + And I see NFT with name '$test_handle_2' on the NFT folder page + And I see NFT with name '$test_handle_3' on the NFT folder page + And I see NFT with name '$t_h_1' on the NFT folder page Then I see ADA handle NFT with custom image on the NFT folder page @LW-7433 @skip(browserName='firefox') @issue=LW-12440 - Scenario: Popup View - Validate custom image from a handle on the "Select NFT" (folder) screen - Given I click "Receive" button on Tokens page in popup mode - And I see handles listed on the "Receive" screen + Scenario: Popup View - Validate custom image from a handle on the 'Select NFT' (folder) screen + Given I click 'Receive' button on Tokens page in popup mode + And I see handles listed on the 'Receive' screen And I close the drawer by clicking close button And I navigate to NFTs popup page - And I click "Create folder" button on NFTs page - And I enter a folder name "Ada Handle folder" into "Folder name" input - When I click "Next" button on "Name your folder" page - Then I can see the handles listed on the "Select NFT" screen + And I click 'Create folder' button on NFTs page + And I enter a folder name 'Ada Handle folder' into 'Folder name' input + When I click 'Next' button on 'Name your folder' page + Then I can see the handles listed on the 'Select NFT' screen And I see ADA handle NFT with custom image on the Select NFT page And the corresponding custom images are displayed @LW-5023 @LW-5029 @LW-5033 - @skip(browserName="firefox") + @skip(browserName='firefox') Scenario: Popup View - Send flow - Enter ADA handle and confirm validated - When I click "Send" button on Tokens page in popup mode + When I click 'Send' button on Tokens page in popup mode And I am in the slow network mode - And I enter "$test_handle_3" in the bundle 1 recipient's address + And I enter '$test_handle_3' in the bundle 1 recipient's address Then search loader is displayed inside address input field And Green tick icon is displayed next to ADA handle - And "Add address" button is enabled in the bundle 1 recipient's address input + And 'Add address' button is enabled in the bundle 1 recipient's address input @LW-5024 @LW-5031 - @skip(browserName="firefox") + @skip(browserName='firefox') Scenario: Popup View - Send flow - Enter ADA handle and confirm invalid - When I click "Send" button on Tokens page in popup mode + When I click 'Send' button on Tokens page in popup mode And I am in the slow network mode - And I enter "$fake_handle" in the bundle 1 recipient's address + And I enter '$fake_handle' in the bundle 1 recipient's address Then search loader is displayed inside address input field And Red exclamation icon is displayed next to ADA handle - And "Handle not found" error is displayed under address input in "Send" drawer - And "Add address" button is disabled in the bundle 1 recipient's address input + And 'Handle not found' error is displayed under address input in 'Send' drawer + And 'Add address' button is disabled in the bundle 1 recipient's address input @LW-8747 Scenario: Popup View - Send flow - Add address - Valid ADA handle - When I click "Send" button on Tokens page in popup mode - And I enter "$test_handle_3" in the bundle 1 recipient's address - And click "Add address" button inside address input 1 - And I fill address form with "test handle" name + When I click 'Send' button on Tokens page in popup mode + And I enter '$test_handle_3' in the bundle 1 recipient's address + And click 'Add address' button inside address input 1 + And I fill address form with 'test handle' name Then Green tick icon is displayed next to ADA handle - And "Save address" button is enabled on "Add new address" drawer + And 'Save address' button is enabled on 'Add new address' drawer @LW-8749 Scenario: Popup View - Send flow - Add address - Invalid ADA handle - When I click "Send" button on Tokens page in popup mode - And I enter "$test_handle_3" in the bundle 1 recipient's address - And click "Add address" button inside address input 1 - And I fill address form with "test handle" name - And I fill address form with "$fake_handle" ADA handle - Then Red "X" icon is displayed next to ADA handle - And "Handle not found" error is displayed in address book form - And "Save address" button is disabled on "Add new address" drawer + When I click 'Send' button on Tokens page in popup mode + And I enter '$test_handle_3' in the bundle 1 recipient's address + And click 'Add address' button inside address input 1 + And I fill address form with 'test handle' name + And I fill address form with '$fake_handle' ADA handle + Then Red 'X' icon is displayed next to ADA handle + And 'Handle not found' error is displayed in address book form + And 'Save address' button is disabled on 'Add new address' drawer diff --git a/packages/e2e-tests/src/features/AdaHandleSendExtended.feature b/packages/e2e-tests/src/features/AdaHandleSendExtended.feature index 16438c4837..fd46102057 100644 --- a/packages/e2e-tests/src/features/AdaHandleSendExtended.feature +++ b/packages/e2e-tests/src/features/AdaHandleSendExtended.feature @@ -5,55 +5,55 @@ Feature: ADA handle - extended view Given Wallet is synced And I am on NFTs extended page And Address book is empty - And I use a wallet with ADA handle "$handletosend" NFT in extended mode + And I use a wallet with ADA handle '$handletosend' NFT in extended mode @LW-7073 @E2E Scenario: Extended view - Ada handle transfer e2e, review flow - Given I validate that handle: "$handletosend" is listed on the Receive screen - And I add address with name: "$handletosend" and address: "$handletosend" to address book in extended mode + Given I validate that handle: '$handletosend' is listed on the Receive screen + And I add address with name: '$handletosend' and address: '$handletosend' to address book in extended mode And I navigate to NFTs extended page - And I'm sending the ADA handle with name: "$handletosend" in extended mode + And I'm sending the ADA handle with name: '$handletosend' in extended mode And I enter correct password and confirm the transaction And The Transaction submitted screen is displayed in extended mode And I close the drawer by clicking close button And I navigate to Activity extended page - And the Sent transaction is displayed with handle name: "$handletosend" in extended mode + And the Sent transaction is displayed with handle name: '$handletosend' in extended mode When I navigate to Address Book extended page - Then I see warning for address row with name "$handletosend" - And I hover over the warning icon for "$handletosend" handle + Then I see warning for address row with name '$handletosend' + And I hover over the warning icon for '$handletosend' handle Then I see handle warning tooltip - And I click "Send" button on page header - When I enter "$handletosend" in the bundle 1 recipient's address - Then I see review handle banner for handle: "$handletosend" - When I click "Review" button in review handle banner - Then I see review handle drawer in extended mode for handle: "$handletosend" - And I click "Accept" button on review handle drawer - And I see "Are you sure" review address modal - And I click "Proceed" button on "Are you sure" review address modal - And I see a toast with text: "Edited successfully" + And I click 'Send' button on page header + When I enter '$handletosend' in the bundle 1 recipient's address + Then I see review handle banner for handle: '$handletosend' + When I click 'Review' button in review handle banner + Then I see review handle drawer in extended mode for handle: '$handletosend' + And I click 'Accept' button on review handle drawer + And I see 'Are you sure' review address modal + And I click 'Proceed' button on 'Are you sure' review address modal + And I see a toast with text: 'Edited successfully' And I close a toast message And I close the drawer by clicking close button - And I click "Agree" button on "You'll have to start again" modal + And I click 'Agree' button on 'You'll have to start again' modal And I navigate to Address Book extended page - And I see address row with name "$handletosend" and address "$handletosend" on the list in extended mode - And I validate that handle: "$handletosend" is not listed on the Receive screen + And I see address row with name '$handletosend' and address '$handletosend' on the list in extended mode + And I validate that handle: '$handletosend' is not listed on the Receive screen @LW-9106 Scenario: Extended view - test for bug LW-9082 - scenario 1 - When I click "Send" button on page header - And I click "Add bundle" button on "Send" page + When I click 'Send' button on page header + And I click 'Add bundle' button on 'Send' page And I remove bundle 1 Then I see 1 bundle rows - And the "tADA" asset is displayed in bundle 1 + And the 'tADA' asset is displayed in bundle 1 @LW-9107 Scenario: Extended view - test for bug LW-9082 - scenario 2 - When I click "Send" button on page header - And I enter a value of: 1 to the "tADA" asset in bundle 1 - And I click "Add bundle" button on "Send" page - And click on the coin selector for "tADA" asset in bundle 2 - And click on an token with name: "LaceCoin" - And I enter a value of: 1 to the "LaceCoin" asset in bundle 2 + When I click 'Send' button on page header + And I enter a value of: 1 to the 'tADA' asset in bundle 1 + And I click 'Add bundle' button on 'Send' page + And click on the coin selector for 'tADA' asset in bundle 2 + And click on an token with name: 'LaceCoin' + And I enter a value of: 1 to the 'LaceCoin' asset in bundle 2 And I remove bundle 2 Then I see 1 bundle rows - And the "tADA" asset is displayed in bundle 1 + And the 'tADA' asset is displayed in bundle 1 diff --git a/packages/e2e-tests/src/features/AdaHandleSendPopup.feature b/packages/e2e-tests/src/features/AdaHandleSendPopup.feature index fdc22923d3..72f9940e64 100644 --- a/packages/e2e-tests/src/features/AdaHandleSendPopup.feature +++ b/packages/e2e-tests/src/features/AdaHandleSendPopup.feature @@ -4,35 +4,35 @@ Feature: ADA handle - popup view Background: Given Wallet is synced And I am on NFTs popup page - And I use a wallet with ADA handle "$handletosend2" NFT in popup mode + And I use a wallet with ADA handle '$handletosend2' NFT in popup mode @LW-8808 @E2E @Pending @issue=LW-8793 Scenario: Popup view - Ada handle transfer e2e, review flow - Given I validate that handle: "$handletosend2" is listed on the Receive screen - And I add address with name: "$handletosend2" and address: "$handletosend2" to address book in popup mode + Given I validate that handle: '$handletosend2' is listed on the Receive screen + And I add address with name: '$handletosend2' and address: '$handletosend2' to address book in popup mode And I navigate to NFTs popup page - And I'm sending the ADA handle with name: "$handletosend2" in popup mode + And I'm sending the ADA handle with name: '$handletosend2' in popup mode And I enter correct password and confirm the transaction And The Transaction submitted screen is displayed in popup mode And I close the drawer by clicking close button And I navigate to Activity popup page - And the Sent transaction is displayed with handle name: "$handletosend2" in popup mode + And the Sent transaction is displayed with handle name: '$handletosend2' in popup mode When I navigate to Address Book popup page - Then I see warning for address row with name "$handletosend2" - And I hover over the warning icon for "$handletosend2" handle + Then I see warning for address row with name '$handletosend2' + And I hover over the warning icon for '$handletosend2' handle Then I see handle warning tooltip - And I click "Send" button on page header - When I enter "$handletosend2" in the bundle 1 recipient's address - Then I see review handle banner for handle: "$handletosend2" - When I click "Review" button in review handle banner - Then I see review handle drawer in popup mode for handle: "$handletosend2" - And I click "Accept" button on review handle drawer - And I see "Are you sure" review address modal - And I click "Proceed" button on "Are you sure" review address modal - And I see a toast with text: "Edited successfully" + And I click 'Send' button on page header + When I enter '$handletosend2' in the bundle 1 recipient's address + Then I see review handle banner for handle: '$handletosend2' + When I click 'Review' button in review handle banner + Then I see review handle drawer in popup mode for handle: '$handletosend2' + And I click 'Accept' button on review handle drawer + And I see 'Are you sure' review address modal + And I click 'Proceed' button on 'Are you sure' review address modal + And I see a toast with text: 'Edited successfully' And I close the drawer by clicking close button - And I click "Agree" button on "You'll have to start again" modal + And I click 'Agree' button on 'You'll have to start again' modal And I navigate to Address Book popup page - And I see address row with name "$handletosend2" and address "$handletosend2" on the list in popup mode - And I validate that handle: "$handletosend2" is not listed on the Receive screen + And I see address row with name '$handletosend2' and address '$handletosend2' on the list in popup mode + And I validate that handle: '$handletosend2' is not listed on the Receive screen diff --git a/packages/e2e-tests/src/features/AddNewWalletConnect.feature b/packages/e2e-tests/src/features/AddNewWalletConnect.feature index 6f64d45053..2d53a119ae 100644 --- a/packages/e2e-tests/src/features/AddNewWalletConnect.feature +++ b/packages/e2e-tests/src/features/AddNewWalletConnect.feature @@ -3,21 +3,21 @@ Feature: Add new wallet - Connect hardware wallet @LW-9358 Scenario: Extended-view - Multi-wallet - Connect - Create button click - When I opened "Connect" flow via "Add new wallet" feature - Then "Connect your device" page is displayed in modal - And "Connect device" step is marked as active on progress timeline + When I opened 'Connect' flow via 'Add new wallet' feature + Then 'Connect your device' page is displayed in modal + And 'Connect device' step is marked as active on progress timeline @LW-9359 Scenario: Extended-view - Multi-wallet - Connect - Back button click - Given I opened "Connect" flow via "Add new wallet" feature - And "Connect your device" page is displayed in modal - When I click "Back" button during wallet setup + Given I opened 'Connect' flow via 'Add new wallet' feature + And 'Connect your device' page is displayed in modal + When I click 'Back' button during wallet setup Then I see onboarding main screen within modal over the active Lace page in expanded view @LW-10965 - Scenario: Extended-view - Multi-wallet - Connect - "No hardware wallet device was chosen." error - When I opened "Connect" flow via "Add new wallet" feature + Scenario: Extended-view - Multi-wallet - Connect - 'No hardware wallet device was chosen.' error + When I opened 'Connect' flow via 'Add new wallet' feature # Step below triggers error by closing HID window And I switch to window with Lace - Then "No hardware wallet device was chosen." error is displayed on "Connect your device" page - And "Try again" button is enabled on "Connect your device" page + Then 'No hardware wallet device was chosen.' error is displayed on 'Connect your device' page + And 'Try again' button is enabled on 'Connect your device' page diff --git a/packages/e2e-tests/src/features/AddNewWalletCreate.part1.feature b/packages/e2e-tests/src/features/AddNewWalletCreate.part1.feature index 1effbfc127..b1c79a7f8f 100644 --- a/packages/e2e-tests/src/features/AddNewWalletCreate.part1.feature +++ b/packages/e2e-tests/src/features/AddNewWalletCreate.part1.feature @@ -5,101 +5,101 @@ Feature: Add new wallet - Create wallet Given Lace is ready for test @LW-9334 - Scenario: Extended-view - Multi-wallet - "Add new wallet" option click in user menu + Scenario: Extended-view - Multi-wallet - 'Add new wallet' option click in user menu When I open header menu - And I click on "Add new wallet" option + And I click on 'Add new wallet' option Then I see onboarding main screen within modal over the active Lace page in expanded view @LW-9335 - Scenario: Popup-view - Multi-wallet - "Add new wallet" option click in user menu + Scenario: Popup-view - Multi-wallet - 'Add new wallet' option click in user menu When I navigate to home page on popup view And I open header menu - And I click on "Add new wallet" option + And I click on 'Add new wallet' option And I switch to last window Then I see onboarding main screen within modal over the active Lace page in expanded view @LW-9336 Scenario: Extended-view - Multi-wallet - Create - Create button click - When I opened "Create" flow via "Add new wallet" feature - And I click "Next" button during wallet setup - Then "Mnemonic writedown" page is displayed with 24 words - And "Recovery setup" step is marked as active on progress timeline - And "Next" button is enabled during onboarding process + When I opened 'Create' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup + Then 'Mnemonic writedown' page is displayed with 24 words + And 'Recovery setup' step is marked as active on progress timeline + And 'Next' button is enabled during onboarding process @LW-9344 - Scenario: Extended-view - Multi-wallet - Create - "Start by saving your recovery phrase" page - open/close "Keeping your wallet secure" modal - Given I opened "Create" flow via "Add new wallet" feature - And I click "Next" button during wallet setup - When I click on "Watch video" link on "Mnemonic writedown" page - Then I see "Watch video" modal - When I click "Got it" link in "Keeping your wallet secure" modal - Then "Mnemonic writedown" page is displayed with 24 words + Scenario: Extended-view - Multi-wallet - Create - 'Start by saving your recovery phrase' page - open/close 'Keeping your wallet secure' modal + Given I opened 'Create' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup + When I click on 'Watch video' link on 'Mnemonic writedown' page + Then I see 'Watch video' modal + When I click 'Got it' link in 'Keeping your wallet secure' modal + Then 'Mnemonic writedown' page is displayed with 24 words @LW-9347 - Scenario: Extended-view - Multi-wallet - Create - "Start by saving your recovery phrase" page - Back button click - Given I opened "Create" flow via "Add new wallet" feature - And I click "Next" button during wallet setup - When I click "Back" button during wallet setup - Then "Choose recovery method" page is displayed in modal for "Create" flow + Scenario: Extended-view - Multi-wallet - Create - 'Start by saving your recovery phrase' page - Back button click + Given I opened 'Create' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup + When I click 'Back' button during wallet setup + Then 'Choose recovery method' page is displayed in modal for 'Create' flow @LW-9348 - Scenario: Extended-view - Multi-wallet - Create - "Enter your recovery phrase" page - Back button click - Given I opened "Create" flow via "Add new wallet" feature - When I click "Next" button during wallet setup - And I click "Next" button during wallet setup - And I click "Back" button during wallet setup - Then I see "Are you sure you want to start again?" modal + Scenario: Extended-view - Multi-wallet - Create - 'Enter your recovery phrase' page - Back button click + Given I opened 'Create' flow via 'Add new wallet' feature + When I click 'Next' button during wallet setup + And I click 'Next' button during wallet setup + And I click 'Back' button during wallet setup + Then I see 'Are you sure you want to start again?' modal @LW-9349 - Scenario: Extended-view - Multi-wallet - Create - "Enter your recovery phrase" page - Back button click - "Are you sure you want to start again?" modal - cancel - Given I opened "Create" flow via "Add new wallet" feature - When I click "Next" button during wallet setup - And I click "Next" button during wallet setup - And I click "Back" button during wallet setup - Then I see "Are you sure you want to start again?" modal - When I click "Cancel" button on "Are you sure you want to start again?" modal - Then "Mnemonic verification" page is displayed from "Create wallet" flow with 24 words + Scenario: Extended-view - Multi-wallet - Create - 'Enter your recovery phrase' page - Back button click - 'Are you sure you want to start again?' modal - cancel + Given I opened 'Create' flow via 'Add new wallet' feature + When I click 'Next' button during wallet setup + And I click 'Next' button during wallet setup + And I click 'Back' button during wallet setup + Then I see 'Are you sure you want to start again?' modal + When I click 'Cancel' button on 'Are you sure you want to start again?' modal + Then 'Mnemonic verification' page is displayed from 'Create wallet' flow with 24 words @LW-9350 - Scenario: Extended-view - Multi-wallet - Create - "Enter your recovery phrase" page - Back button click - "Are you sure you want to start again?" modal - confirm - Given I opened "Create" flow via "Add new wallet" feature - When I click "Next" button during wallet setup - And I click "Next" button during wallet setup - And I click "Back" button during wallet setup - Then I see "Are you sure you want to start again?" modal - When I click "OK" button on "Are you sure you want to start again?" modal - Then "Mnemonic writedown" page is displayed with 24 words + Scenario: Extended-view - Multi-wallet - Create - 'Enter your recovery phrase' page - Back button click - 'Are you sure you want to start again?' modal - confirm + Given I opened 'Create' flow via 'Add new wallet' feature + When I click 'Next' button during wallet setup + And I click 'Next' button during wallet setup + And I click 'Back' button during wallet setup + Then I see 'Are you sure you want to start again?' modal + When I click 'OK' button on 'Are you sure you want to start again?' modal + Then 'Mnemonic writedown' page is displayed with 24 words @LW-9351 - Scenario: Extended-view - Multi-wallet - Create - "Start by saving your recovery phrase" page - "Keeping your wallet secure" modal - "Read more" link click - Given I opened "Create" flow via "Add new wallet" feature - And I click "Next" button during wallet setup - When I click on "Watch video" link on "Mnemonic writedown" page - Then I see "Watch video" modal - When I click "Read More" link in modal - Then I see a "FAQ" article with title "What is my recovery phrase?" + Scenario: Extended-view - Multi-wallet - Create - 'Start by saving your recovery phrase' page - 'Keeping your wallet secure' modal - 'Read more' link click + Given I opened 'Create' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup + When I click on 'Watch video' link on 'Mnemonic writedown' page + Then I see 'Watch video' modal + When I click 'Read More' link in modal + Then I see a 'FAQ' article with title 'What is my recovery phrase?' @LW-9352 - Scenario: Extended-view - Multi-wallet - Create - "Enter your recovery phrase" page - Given I opened "Create" flow via "Add new wallet" feature - When I click "Next" button during wallet setup - And I click "Next" button during wallet setup - Then "Mnemonic verification" page is displayed from "Create wallet" flow with 24 words - And "Recovery setup" step is marked as active on progress timeline - And "Next" button is disabled during onboarding process + Scenario: Extended-view - Multi-wallet - Create - 'Enter your recovery phrase' page + Given I opened 'Create' flow via 'Add new wallet' feature + When I click 'Next' button during wallet setup + And I click 'Next' button during wallet setup + Then 'Mnemonic verification' page is displayed from 'Create wallet' flow with 24 words + And 'Recovery setup' step is marked as active on progress timeline + And 'Next' button is disabled during onboarding process @LW-9353 - Scenario: Extended-view - Multi-wallet - Create - "Enter your recovery phrase" page - Mnemonic fill - paste from clipboard - Given I opened "Create" flow via "Add new wallet" feature - And I click "Next" button during wallet setup - When I click on "Copy to clipboard" button - And I click "Next" button during wallet setup - And I click on "Paste from clipboard" button + Scenario: Extended-view - Multi-wallet - Create - 'Enter your recovery phrase' page - Mnemonic fill - paste from clipboard + Given I opened 'Create' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup + When I click on 'Copy to clipboard' button + And I click 'Next' button during wallet setup + And I click on 'Paste from clipboard' button Then I do not see incorrect passphrase error displayed - And "Next" button is enabled during onboarding process + And 'Next' button is enabled during onboarding process @LW-9354 - Scenario: Extended-view - Multi-wallet - Create - "Enter your recovery phrase" page - Mnemonic fill - enter correct mnemonic - Given I opened "Create" flow via "Add new wallet" feature - When I go to "Mnemonic verification" page from "Create" wallet flow and fill values - Then "Next" button is enabled during onboarding process + Scenario: Extended-view - Multi-wallet - Create - 'Enter your recovery phrase' page - Mnemonic fill - enter correct mnemonic + Given I opened 'Create' flow via 'Add new wallet' feature + When I go to 'Mnemonic verification' page from 'Create' wallet flow and fill values + Then 'Next' button is enabled during onboarding process diff --git a/packages/e2e-tests/src/features/AddNewWalletCreate.part2.feature b/packages/e2e-tests/src/features/AddNewWalletCreate.part2.feature index 1546385064..d26d8a5411 100644 --- a/packages/e2e-tests/src/features/AddNewWalletCreate.part2.feature +++ b/packages/e2e-tests/src/features/AddNewWalletCreate.part2.feature @@ -5,63 +5,63 @@ Feature: Add new wallet - Create wallet Given Lace is ready for test @LW-9355 - Scenario: Extended-view - Multi-wallet - Create - "Enter your recovery phrase" page - Mnemonic fill - invalid all words - Given I opened "Create" flow via "Add new wallet" feature - And I click "Next" button during wallet setup + Scenario: Extended-view - Multi-wallet - Create - 'Enter your recovery phrase' page - Mnemonic fill - invalid all words + Given I opened 'Create' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup When I save mnemonic words - And I click "Next" button during wallet setup + And I click 'Next' button during wallet setup And I fill passphrase fields using saved 24 words mnemonic in incorrect order Then I see incorrect passphrase error displayed - And "Next" button is disabled during onboarding process + And 'Next' button is disabled during onboarding process When I enter saved mnemonic words - Then "Next" button is enabled during onboarding process + Then 'Next' button is enabled during onboarding process @LW-9356 - Scenario: Extended-view - Multi-wallet - Create - "Enter your recovery phrase" page - Mnemonic fill - invalid word - Given I opened "Create" flow via "Add new wallet" feature - And I click "Next" button during wallet setup + Scenario: Extended-view - Multi-wallet - Create - 'Enter your recovery phrase' page - Mnemonic fill - invalid word + Given I opened 'Create' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup When I save mnemonic words - And I click "Next" button during wallet setup + And I click 'Next' button during wallet setup And I enter saved mnemonic words And I change one random field Then I see incorrect passphrase error displayed - And "Next" button is disabled during onboarding process + And 'Next' button is disabled during onboarding process When I enter saved mnemonic words - Then "Next" button is enabled during onboarding process + Then 'Next' button is enabled during onboarding process @LW-9337 - Scenario: Extended-view - Multi-wallet - Create - "Let's set up your new wallet" page - Back button click - Given I opened "Create" flow via "Add new wallet" feature - When I go to "Mnemonic verification" page from "Create" wallet flow and fill values - And I click "Next" button during wallet setup - Then "Let's set up your new wallet" page is displayed in modal for "Create" flow - And "Wallet setup" step is marked as active on progress timeline - When I click "Back" button during wallet setup - Then "Mnemonic verification" page is displayed from "Create wallet" flow with 24 words + Scenario: Extended-view - Multi-wallet - Create - 'Let's set up your new wallet' page - Back button click + Given I opened 'Create' flow via 'Add new wallet' feature + When I go to 'Mnemonic verification' page from 'Create' wallet flow and fill values + And I click 'Next' button during wallet setup + Then 'Let's set up your new wallet' page is displayed in modal for 'Create' flow + And 'Wallet setup' step is marked as active on progress timeline + When I click 'Back' button during wallet setup + Then 'Mnemonic verification' page is displayed from 'Create wallet' flow with 24 words @LW-9338 - Scenario: Extended-view - Multi-wallet - Create - "Let's set up your new wallet" page - Password confirmation input appearing - Given I opened "Create" flow via "Add new wallet" feature - When I go to "Mnemonic verification" page from "Create" wallet flow and fill values - And I click "Next" button during wallet setup + Scenario: Extended-view - Multi-wallet - Create - 'Let's set up your new wallet' page - Password confirmation input appearing + Given I opened 'Create' flow via 'Add new wallet' feature + When I go to 'Mnemonic verification' page from 'Create' wallet flow and fill values + And I click 'Next' button during wallet setup Then empty password confirmation input is not displayed - When I enter wallet password "N_8J@bne87A" + When I enter wallet password 'N_8J@bne87A' Then empty password confirmation input is displayed @LW-9339 - Scenario: Extended-view - Multi-wallet - Create - "Let's set up your new wallet" page - Too long name - Given I opened "Create" flow via "Add new wallet" feature - When I go to "Wallet setup" page from "Create" wallet flow and fill values + Scenario: Extended-view - Multi-wallet - Create - 'Let's set up your new wallet' page - Too long name + Given I opened 'Create' flow via 'Add new wallet' feature + When I go to 'Wallet setup' page from 'Create' wallet flow and fill values And I enter wallet name with size of: 21 characters - Then wallet name error "core.walletSetupRegisterStep.nameMaxLength" is displayed - And "Next" button is disabled during onboarding process + Then wallet name error 'core.walletSetupRegisterStep.nameMaxLength' is displayed + And 'Next' button is disabled during onboarding process @LW-9340 @LW-9341 - Scenario Outline: Extended-view - Multi-wallet - Create - "Let's set up your new wallet" page - Recommendation for password: , password: , password confirmation: - Given I opened "Create" flow via "Add new wallet" feature - When I go to "Wallet setup" page from "Create" wallet flow - And I enter wallet name: "wallet", password: "" and password confirmation: "" - Then Password recommendation: "", complexity bar level: "" and password confirmation error: "" are displayed + Scenario Outline: Extended-view - Multi-wallet - Create - 'Let's set up your new wallet' page - Recommendation for password: , password: , password confirmation: + Given I opened 'Create' flow via 'Add new wallet' feature + When I go to 'Wallet setup' page from 'Create' wallet flow + And I enter wallet name: 'wallet', password: '' and password confirmation: '' + Then Password recommendation: '', complexity bar level: '' and password confirmation error: '' are displayed Examples: | password | password_conf | passw_err | complex_bar_lvl | passw_conf_err | | a | | core.walletNameAndPasswordSetupStep.firstLevelPasswordStrengthFeedback | 1 | empty | @@ -71,29 +71,29 @@ Feature: Add new wallet - Create wallet | N_8J@bne87A | N_8J@bne87 | empty | 4 | core.walletSetupRegisterStep.noMatchPassword | @LW-9342 - Scenario: Extended-view - Multi-wallet - Create - "Let's set up your new wallet" page - Password show/hide button - Given I opened "Create" flow via "Add new wallet" feature - When I go to "Wallet setup" page from "Create" wallet flow and fill values - Then password value is hidden for "Password" input field - And password value is hidden for "Confirm password" input field - And I click on "Show password" for "Password" input field - And I click on "Show password" for "Confirm password" input field - Then password value is visible for "Password" input field - Then password value is visible for "Confirm password" input field - When I click on "Hide password" for "Password" input field - And I click on "Hide password" for "Confirm password" input field - Then password value is hidden for "Password" input field - And password value is hidden for "Confirm password" input field + Scenario: Extended-view - Multi-wallet - Create - 'Let's set up your new wallet' page - Password show/hide button + Given I opened 'Create' flow via 'Add new wallet' feature + When I go to 'Wallet setup' page from 'Create' wallet flow and fill values + Then password value is hidden for 'Password' input field + And password value is hidden for 'Confirm password' input field + And I click on 'Show password' for 'Password' input field + And I click on 'Show password' for 'Confirm password' input field + Then password value is visible for 'Password' input field + Then password value is visible for 'Confirm password' input field + When I click on 'Hide password' for 'Password' input field + And I click on 'Hide password' for 'Confirm password' input field + Then password value is hidden for 'Password' input field + And password value is hidden for 'Confirm password' input field @LW-9357 @memory-snapshot Scenario: Extended-view - Multi-wallet - Create - Add new wallet - happy path - Given I opened "Create" flow via "Add new wallet" feature - When I go to "Wallet setup" page from "Create" wallet flow - And I enter wallet name: "Wallet 2", password: "N_8J@bne87A" and password confirmation: "N_8J@bne87A" - And I click "Enter wallet" button + Given I opened 'Create' flow via 'Add new wallet' feature + When I go to 'Wallet setup' page from 'Create' wallet flow + And I enter wallet name: 'Wallet 2', password: 'N_8J@bne87A' and password confirmation: 'N_8J@bne87A' + And I click 'Enter wallet' button And I wait for main loader to disappear Then I see LW homepage - And "N_8J@bne87A" password is not in snapshot - And "Wallet 2" is displayed as a wallet name on the menu button + And 'N_8J@bne87A' password is not in snapshot + And 'Wallet 2' is displayed as a wallet name on the menu button When I click the menu button - Then Wallet number 2 with "Wallet 2" name is displayed on the user menu + Then Wallet number 2 with 'Wallet 2' name is displayed on the user menu diff --git a/packages/e2e-tests/src/features/AddNewWalletCreatePaperWallet.feature b/packages/e2e-tests/src/features/AddNewWalletCreatePaperWallet.feature index ed1d329cd9..3a8f7ded48 100644 --- a/packages/e2e-tests/src/features/AddNewWalletCreatePaperWallet.feature +++ b/packages/e2e-tests/src/features/AddNewWalletCreatePaperWallet.feature @@ -5,48 +5,48 @@ Feature: Add new wallet - Create paper wallet Given Lace is ready for test @LW-11327 - Scenario: Add new wallet - Create - "Choose recovery method" page is displayed - When I opened "Create" flow via "Add new wallet" feature - Then "Choose recovery method" page is displayed in modal for "Create" flow + Scenario: Add new wallet - Create - 'Choose recovery method' page is displayed + When I opened 'Create' flow via 'Add new wallet' feature + Then 'Choose recovery method' page is displayed in modal for 'Create' flow @LW-11328 - Scenario: Add new wallet - Create - Choose recovery method - Paper Wallet - click "Next" button - When I opened "Create" flow via "Add new wallet" feature - And I select "Paper wallet" as a recovery method - And I click "Next" button during wallet setup - Then "Secure your paper wallet" page is displayed in modal + Scenario: Add new wallet - Create - Choose recovery method - Paper Wallet - click 'Next' button + When I opened 'Create' flow via 'Add new wallet' feature + And I select 'Paper wallet' as a recovery method + And I click 'Next' button during wallet setup + Then 'Secure your paper wallet' page is displayed in modal @LW-11329 - Scenario: Add new wallet - Create - Choose recovery method - Paper Wallet - click "Back" button - When I opened "Create" flow via "Add new wallet" feature - And I click "Back" button during wallet setup + Scenario: Add new wallet - Create - Choose recovery method - Paper Wallet - click 'Back' button + When I opened 'Create' flow via 'Add new wallet' feature + And I click 'Back' button during wallet setup Then I see onboarding main screen within modal over the active Lace page in expanded view @LW-11332 - Scenario: Add new wallet - Create - Secure your paper wallet - click "Back" button - When I opened "Create" flow via "Add new wallet" feature - And I select "Paper wallet" as a recovery method - And I click "Next" button during wallet setup - And I click "Back" button during wallet setup - Then "Choose recovery method" page is displayed in modal for "Create" flow + Scenario: Add new wallet - Create - Secure your paper wallet - click 'Back' button + When I opened 'Create' flow via 'Add new wallet' feature + And I select 'Paper wallet' as a recovery method + And I click 'Next' button during wallet setup + And I click 'Back' button during wallet setup + Then 'Choose recovery method' page is displayed in modal for 'Create' flow @LW-11333 Scenario: Add new wallet - Create - Paper Wallet - Secure your paper wallet - enter valid public PGP key - When I opened "Create" flow via "Add new wallet" feature - And I select "Paper wallet" as a recovery method - And I click "Next" button during wallet setup - And I enter valid key into "Your PUBLIC PGP key block" input - Then public PGP key fingerprint is displayed: "F960 B291 7BFB A908 C031 A5AA 23E4 0848 BAB6 E1CB" - And "Next" button is enabled during onboarding process + When I opened 'Create' flow via 'Add new wallet' feature + And I select 'Paper wallet' as a recovery method + And I click 'Next' button during wallet setup + And I enter valid key into 'Your PUBLIC PGP key block' input + Then public PGP key fingerprint is displayed: 'F960 B291 7BFB A908 C031 A5AA 23E4 0848 BAB6 E1CB' + And 'Next' button is enabled during onboarding process @LW-11334 Scenario Outline: Add new wallet - Create - Paper Wallet - Secure your paper wallet - enter invalid public PGP key - - When I opened "Create" flow via "Add new wallet" feature - And I select "Paper wallet" as a recovery method - And I click "Next" button during wallet setup - And I enter into "Your PUBLIC PGP key block" input + When I opened 'Create' flow via 'Add new wallet' feature + And I select 'Paper wallet' as a recovery method + And I click 'Next' button during wallet setup + And I enter into 'Your PUBLIC PGP key block' input Then error message is displayed for public PGP key input with - And "Next" button is disabled during onboarding process + And 'Next' button is disabled during onboarding process Examples: | error_case | | malformed key | @@ -54,63 +54,63 @@ Feature: Add new wallet - Create paper wallet | too weak key | @LW-11336 - Scenario: Add new wallet - Create - Secure your paper wallet - click "Next" button - When I opened "Create" flow via "Add new wallet" feature - And I select "Paper wallet" as a recovery method - And I click "Next" button during wallet setup - And I enter "Paper Wallet Test 1" into "PGP key name" input - And I enter valid key into "Your PUBLIC PGP key block" input - And I click "Next" button during wallet setup - Then "Let's set up your new wallet" page is displayed in modal for "Create paper wallet" flow + Scenario: Add new wallet - Create - Secure your paper wallet - click 'Next' button + When I opened 'Create' flow via 'Add new wallet' feature + And I select 'Paper wallet' as a recovery method + And I click 'Next' button during wallet setup + And I enter 'Paper Wallet Test 1' into 'PGP key name' input + And I enter valid key into 'Your PUBLIC PGP key block' input + And I click 'Next' button during wallet setup + Then 'Let's set up your new wallet' page is displayed in modal for 'Create paper wallet' flow @LW-11337 @memory-snapshot - Scenario: Add new wallet - Create - Paper Wallet - Let's set up your new wallet - click "Generate paper wallet" button - When I opened "Create" flow via "Add new wallet" feature - And I select "Paper wallet" as a recovery method - And I click "Next" button during wallet setup - And I enter "Paper Wallet Test 1" into "PGP key name" input - And I enter valid key into "Your PUBLIC PGP key block" input - And I click "Next" button during wallet setup - And I enter wallet name: "Wallet 1", password: "N_8J@bne87A" and password confirmation: "N_8J@bne87A" - Then "Generate paper wallet" button is enabled - When I click "Generate paper wallet" button - Then "Save your paper wallet" page is displayed in modal with "Wallet_1_PaperWallet.pdf" file name - And "N_8J@bne87A" password is not in snapshot + Scenario: Add new wallet - Create - Paper Wallet - Let's set up your new wallet - click 'Generate paper wallet' button + When I opened 'Create' flow via 'Add new wallet' feature + And I select 'Paper wallet' as a recovery method + And I click 'Next' button during wallet setup + And I enter 'Paper Wallet Test 1' into 'PGP key name' input + And I enter valid key into 'Your PUBLIC PGP key block' input + And I click 'Next' button during wallet setup + And I enter wallet name: 'Wallet 1', password: 'N_8J@bne87A' and password confirmation: 'N_8J@bne87A' + Then 'Generate paper wallet' button is enabled + When I click 'Generate paper wallet' button + Then 'Save your paper wallet' page is displayed in modal with 'Wallet_1_PaperWallet.pdf' file name + And 'N_8J@bne87A' password is not in snapshot @LW-11338 - Scenario: Add new wallet - Create - Paper Wallet - Let's set up your wallet - click "Back" button - When I opened "Create" flow via "Add new wallet" feature - And I select "Paper wallet" as a recovery method - And I click "Next" button during wallet setup - And I enter "Paper Wallet Test 1" into "PGP key name" input - And I enter valid key into "Your PUBLIC PGP key block" input - And I click "Next" button during wallet setup - And I click "Back" button during wallet setup - Then "Secure your paper wallet" page is displayed in modal + Scenario: Add new wallet - Create - Paper Wallet - Let's set up your wallet - click 'Back' button + When I opened 'Create' flow via 'Add new wallet' feature + And I select 'Paper wallet' as a recovery method + And I click 'Next' button during wallet setup + And I enter 'Paper Wallet Test 1' into 'PGP key name' input + And I enter valid key into 'Your PUBLIC PGP key block' input + And I click 'Next' button during wallet setup + And I click 'Back' button during wallet setup + Then 'Secure your paper wallet' page is displayed in modal @LW-11341 - Scenario: Add new wallet - Create - Paper wallet - Save your paper wallet - click "Open wallet" button - When I opened "Create" flow via "Add new wallet" feature - And I select "Paper wallet" as a recovery method - And I click "Next" button during wallet setup - And I enter "Paper Wallet Test 1" into "PGP key name" input - And I enter valid key into "Your PUBLIC PGP key block" input - And I click "Next" button during wallet setup - And I enter wallet name: "Paper Wallet 1", password: "N_8J@bne87A" and password confirmation: "N_8J@bne87A" - And I click "Generate paper wallet" button - Then "Open wallet" button is disabled on "Save your paper wallet" page - When I click on "Download" button on "Save your paper wallet" page - And I click on "Open wallet" button on "Save your paper wallet" page + Scenario: Add new wallet - Create - Paper wallet - Save your paper wallet - click 'Open wallet' button + When I opened 'Create' flow via 'Add new wallet' feature + And I select 'Paper wallet' as a recovery method + And I click 'Next' button during wallet setup + And I enter 'Paper Wallet Test 1' into 'PGP key name' input + And I enter valid key into 'Your PUBLIC PGP key block' input + And I click 'Next' button during wallet setup + And I enter wallet name: 'Paper Wallet 1', password: 'N_8J@bne87A' and password confirmation: 'N_8J@bne87A' + And I click 'Generate paper wallet' button + Then 'Open wallet' button is disabled on 'Save your paper wallet' page + When I click on 'Download' button on 'Save your paper wallet' page + And I click on 'Open wallet' button on 'Save your paper wallet' page And I switch to window with Lace And I wait for main loader to disappear Then I see LW homepage - And "Paper Wall..." is displayed as a wallet name on the menu button + And 'Paper Wall...' is displayed as a wallet name on the menu button When I click the menu button - Then Wallet number 2 with "Paper Wallet..." name is displayed on the user menu + Then Wallet number 2 with 'Paper Wallet...' name is displayed on the user menu @LW-11342 - Scenario: Add new wallet - Create - Paper wallet - Choose recovery method - click "Learn more" link - When I opened "Create" flow via "Add new wallet" feature - And I select "Paper wallet" as a recovery method - And I click "Learn more" link on "Choose recovery method" page + Scenario: Add new wallet - Create - Paper wallet - Choose recovery method - click 'Learn more' link + When I opened 'Create' flow via 'Add new wallet' feature + And I select 'Paper wallet' as a recovery method + And I click 'Learn more' link on 'Choose recovery method' page Then FAQ page is displayed diff --git a/packages/e2e-tests/src/features/AddNewWalletRestore.feature b/packages/e2e-tests/src/features/AddNewWalletRestore.feature index bdc3f422ca..e0677f841f 100644 --- a/packages/e2e-tests/src/features/AddNewWalletRestore.feature +++ b/packages/e2e-tests/src/features/AddNewWalletRestore.feature @@ -6,36 +6,36 @@ Feature: Add new wallet - Restore wallet @LW-9368 Scenario: Extended-view - Multi-wallet - Restore - Restore button click - When I opened "Restore" flow via "Add new wallet" feature - Then "Choose recovery method" page is displayed in modal for "Restore" flow - And "Recovery method" step is marked as active on progress timeline - And "Next" button is enabled during onboarding process + When I opened 'Restore' flow via 'Add new wallet' feature + Then 'Choose recovery method' page is displayed in modal for 'Restore' flow + And 'Recovery method' step is marked as active on progress timeline + And 'Next' button is enabled during onboarding process @LW-9381 - Scenario: Extended-view - Multi-wallet - Restore - "Enter your recovery phrase" page - Back button click - Given I opened "Restore" flow via "Add new wallet" feature - And I click "Next" button during wallet setup - When I click "Back" button during wallet setup - Then "Choose recovery method" page is displayed in modal for "Restore" flow + Scenario: Extended-view - Multi-wallet - Restore - 'Enter your recovery phrase' page - Back button click + Given I opened 'Restore' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup + When I click 'Back' button during wallet setup + Then 'Choose recovery method' page is displayed in modal for 'Restore' flow @LW-9383 - Scenario: Extended-view - Multi-wallet - Restore - "Enter your recovery phrase" page - Mnemonic fill - paste from clipboard - Given I saved test mnemonic for "AddNewWallet" to clipboard - And I opened "Restore" flow via "Add new wallet" feature - And I click "Next" button during wallet setup - When I click on "Paste from clipboard" button + Scenario: Extended-view - Multi-wallet - Restore - 'Enter your recovery phrase' page - Mnemonic fill - paste from clipboard + Given I saved test mnemonic for 'AddNewWallet' to clipboard + And I opened 'Restore' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup + When I click on 'Paste from clipboard' button Then I do not see incorrect passphrase error displayed - And "Next" button is enabled during onboarding process + And 'Next' button is enabled during onboarding process @LW-9384 - Scenario Outline: Extended-view - Multi-wallet - Restore - "Enter your recovery phrase" page - -word mnemonic - invalid word - Given I opened "Restore" flow via "Add new wallet" feature - And I click "Next" button during wallet setup + Scenario Outline: Extended-view - Multi-wallet - Restore - 'Enter your recovery phrase' page - -word mnemonic - invalid word + Given I opened 'Restore' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup When I select word passphrase length - And I enter correct mnemonic words on "Mnemonic verification" page + And I enter correct mnemonic words on 'Mnemonic verification' page And I change one random field Then I see incorrect passphrase error displayed - And "Next" button is disabled during onboarding process + And 'Next' button is disabled during onboarding process Examples: | mnemonicLength | | 12 | @@ -43,13 +43,13 @@ Feature: Add new wallet - Restore wallet | 24 | @LW-9385 - Scenario Outline: Extended-view - Multi-wallet - Restore - "Enter your recovery phrase" page - -word mnemonic - invalid all words - Given I opened "Restore" flow via "Add new wallet" feature - And I click "Next" button during wallet setup + Scenario Outline: Extended-view - Multi-wallet - Restore - 'Enter your recovery phrase' page - -word mnemonic - invalid all words + Given I opened 'Restore' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup When I select word passphrase length - And I enter incorrect mnemonic words on "Mnemonic verification" page + And I enter incorrect mnemonic words on 'Mnemonic verification' page Then I see incorrect passphrase error displayed - And "Next" button is disabled during onboarding process + And 'Next' button is disabled during onboarding process Examples: | mnemonicLength | | 12 | @@ -57,38 +57,38 @@ Feature: Add new wallet - Restore wallet | 24 | @LW-9369 - Scenario: Extended-view - Multi-wallet - Restore - "Let's set up your new wallet" page - Back button click - Given I opened "Restore" flow via "Add new wallet" feature - When I go to "Mnemonic verification" page from "Restore" wallet flow and fill values - And I click "Next" button during wallet setup - Then "Let's set up your new wallet" page is displayed in modal for "Create" flow - And "Wallet setup" step is marked as active on progress timeline - When I click "Back" button during wallet setup - Then "Mnemonic verification" page is displayed from "Restore wallet" flow with 24 words + Scenario: Extended-view - Multi-wallet - Restore - 'Let's set up your new wallet' page - Back button click + Given I opened 'Restore' flow via 'Add new wallet' feature + When I go to 'Mnemonic verification' page from 'Restore' wallet flow and fill values + And I click 'Next' button during wallet setup + Then 'Let's set up your new wallet' page is displayed in modal for 'Create' flow + And 'Wallet setup' step is marked as active on progress timeline + When I click 'Back' button during wallet setup + Then 'Mnemonic verification' page is displayed from 'Restore wallet' flow with 24 words @LW-9370 - Scenario: Extended-view - Multi-wallet - Restore - "Let's set up your new wallet" page - Password confirmation input appearing - Given I opened "Restore" flow via "Add new wallet" feature - When I go to "Mnemonic verification" page from "Restore" wallet flow and fill values - And I click "Next" button during wallet setup + Scenario: Extended-view - Multi-wallet - Restore - 'Let's set up your new wallet' page - Password confirmation input appearing + Given I opened 'Restore' flow via 'Add new wallet' feature + When I go to 'Mnemonic verification' page from 'Restore' wallet flow and fill values + And I click 'Next' button during wallet setup Then empty password confirmation input is not displayed - When I enter wallet password "N_8J@bne87A" + When I enter wallet password 'N_8J@bne87A' Then empty password confirmation input is displayed @LW-9371 - Scenario: Extended-view - Multi-wallet - Restore - "Let's set up your new wallet" page - Too long name - Given I opened "Restore" flow via "Add new wallet" feature - When I go to "Wallet setup" page from "Restore" wallet flow and fill values + Scenario: Extended-view - Multi-wallet - Restore - 'Let's set up your new wallet' page - Too long name + Given I opened 'Restore' flow via 'Add new wallet' feature + When I go to 'Wallet setup' page from 'Restore' wallet flow and fill values And I enter wallet name with size of: 21 characters - Then wallet name error "core.walletSetupRegisterStep.nameMaxLength" is displayed - And "Next" button is disabled during onboarding process + Then wallet name error 'core.walletSetupRegisterStep.nameMaxLength' is displayed + And 'Next' button is disabled during onboarding process @LW-9372 @LW-9373 - Scenario Outline: Extended-view - Multi-wallet - Restore - "Let's set up your new wallet" page - Recommendation for password: , password: , password confirmation: - Given I opened "Restore" flow via "Add new wallet" feature - When I go to "Wallet setup" page from "Restore" wallet flow - And I enter wallet name: "wallet", password: "" and password confirmation: "" - Then Password recommendation: "", complexity bar level: "" and password confirmation error: "" are displayed + Scenario Outline: Extended-view - Multi-wallet - Restore - 'Let's set up your new wallet' page - Recommendation for password: , password: , password confirmation: + Given I opened 'Restore' flow via 'Add new wallet' feature + When I go to 'Wallet setup' page from 'Restore' wallet flow + And I enter wallet name: 'wallet', password: '' and password confirmation: '' + Then Password recommendation: '', complexity bar level: '' and password confirmation error: '' are displayed Examples: | password | password_conf | passw_err | complex_bar_lvl | passw_conf_err | | a | | core.walletNameAndPasswordSetupStep.firstLevelPasswordStrengthFeedback | 1 | empty | @@ -98,37 +98,37 @@ Feature: Add new wallet - Restore wallet | N_8J@bne87A | N_8J@bne87 | empty | 4 | core.walletSetupRegisterStep.noMatchPassword | @LW-9374 - Scenario: Extended-view - Multi-wallet - Restore - "Let's set up your new wallet" page - Password show/hide button - Given I opened "Restore" flow via "Add new wallet" feature - When I go to "Wallet setup" page from "Restore" wallet flow and fill values - Then password value is hidden for "Password" input field - And password value is hidden for "Confirm password" input field - And I click on "Show password" for "Password" input field - And I click on "Show password" for "Confirm password" input field - Then password value is visible for "Password" input field - Then password value is visible for "Confirm password" input field - When I click on "Hide password" for "Password" input field - And I click on "Hide password" for "Confirm password" input field - Then password value is hidden for "Password" input field - And password value is hidden for "Confirm password" input field + Scenario: Extended-view - Multi-wallet - Restore - 'Let's set up your new wallet' page - Password show/hide button + Given I opened 'Restore' flow via 'Add new wallet' feature + When I go to 'Wallet setup' page from 'Restore' wallet flow and fill values + Then password value is hidden for 'Password' input field + And password value is hidden for 'Confirm password' input field + And I click on 'Show password' for 'Password' input field + And I click on 'Show password' for 'Confirm password' input field + Then password value is visible for 'Password' input field + Then password value is visible for 'Confirm password' input field + When I click on 'Hide password' for 'Password' input field + And I click on 'Hide password' for 'Confirm password' input field + Then password value is hidden for 'Password' input field + And password value is hidden for 'Confirm password' input field @LW-9386 @LW-9375 @memory-snapshot Scenario Outline: Extended-view - Multi-wallet - Restore - -word mnemonic - happy path - Given I opened "Restore" flow via "Add new wallet" feature - And I click "Next" button during wallet setup + Given I opened 'Restore' flow via 'Add new wallet' feature + And I click 'Next' button during wallet setup When I select word passphrase length - Then "Mnemonic verification" page is displayed from "Restore wallet" flow with words - When I enter correct mnemonic words on "Mnemonic verification" page - And I click "Next" button during wallet setup - When I enter wallet name: "ValidName", password: "N_8J@bne87A" and password confirmation: "N_8J@bne87A" - Then "Enter wallet" button is enabled - When I click "Enter wallet" button + Then 'Mnemonic verification' page is displayed from 'Restore wallet' flow with words + When I enter correct mnemonic words on 'Mnemonic verification' page + And I click 'Next' button during wallet setup + When I enter wallet name: 'ValidName', password: 'N_8J@bne87A' and password confirmation: 'N_8J@bne87A' + Then 'Enter wallet' button is enabled + When I click 'Enter wallet' button And I wait for main loader to disappear Then I see LW homepage - And "N_8J@bne87A" password is not in snapshot - And "ValidName" is displayed as a wallet name on the menu button + And 'N_8J@bne87A' password is not in snapshot + And 'ValidName' is displayed as a wallet name on the menu button When I click the menu button - Then Wallet number 2 with "ValidName" name is displayed on the user menu + Then Wallet number 2 with 'ValidName' name is displayed on the user menu Examples: | mnemonicLength | | 12 | @@ -136,51 +136,51 @@ Feature: Add new wallet - Restore wallet | 24 | @LW-9245 - Scenario Outline: Extended-view - Multi-wallet - Restore - "" page without any user input interaction - - Given I opened "Restore" flow via "Add new wallet" feature - When I go to "" page from "Restore" wallet flow and not fill values + Scenario Outline: Extended-view - Multi-wallet - Restore - '' page without any user input interaction - + Given I opened 'Restore' flow via 'Add new wallet' feature + When I go to '' page from 'Restore' wallet flow and not fill values And - Then "Are you sure you want to cancel adding a new wallet?" dialog is not displayed - And "Add new wallet" modal is not displayed + Then 'Are you sure you want to cancel adding a new wallet?' dialog is not displayed + And 'Add new wallet' modal is not displayed Examples: | page | action | - | Mnemonic verification | I click "X" button on "Add new wallet" modal | - | Mnemonic verification | I click outside "Add new wallet" modal | + | Mnemonic verification | I click 'X' button on 'Add new wallet' modal | + | Mnemonic verification | I click outside 'Add new wallet' modal | @LW-9246 - Scenario Outline: Extended-view - Multi-wallet - Restore - "" page with any user input interaction - - Given I opened "Restore" flow via "Add new wallet" feature - When I go to "" page from "Restore" wallet flow and fill values + Scenario Outline: Extended-view - Multi-wallet - Restore - '' page with any user input interaction - + Given I opened 'Restore' flow via 'Add new wallet' feature + When I go to '' page from 'Restore' wallet flow and fill values And - Then "Are you sure you want to cancel adding a new wallet?" dialog is displayed + Then 'Are you sure you want to cancel adding a new wallet?' dialog is displayed Examples: | page | action | - | Mnemonic verification | I click "X" button on "Add new wallet" modal | - | Mnemonic verification | I click outside "Add new wallet" modal | - | Wallet setup | I click "X" button on "Add new wallet" modal | - | Wallet setup | I click outside "Add new wallet" modal | + | Mnemonic verification | I click 'X' button on 'Add new wallet' modal | + | Mnemonic verification | I click outside 'Add new wallet' modal | + | Wallet setup | I click 'X' button on 'Add new wallet' modal | + | Wallet setup | I click outside 'Add new wallet' modal | @LW-9247 - Scenario Outline: Extended-view - Multi-wallet - Restore - "Add new wallet" - - "Are you sure you want to cancel adding a new wallet?" dialog - go back - Given I opened "Restore" flow via "Add new wallet" feature - When I go to "" page from "Restore" wallet flow and fill values - And I click "X" button on "Add new wallet" modal - And I click "Go back" button on "Are you sure you want to cancel adding a new wallet?" dialog - Then "Are you sure you want to cancel adding a new wallet?" dialog is not displayed + Scenario Outline: Extended-view - Multi-wallet - Restore - 'Add new wallet' - - 'Are you sure you want to cancel adding a new wallet?' dialog - go back + Given I opened 'Restore' flow via 'Add new wallet' feature + When I go to '' page from 'Restore' wallet flow and fill values + And I click 'X' button on 'Add new wallet' modal + And I click 'Go back' button on 'Are you sure you want to cancel adding a new wallet?' dialog + Then 'Are you sure you want to cancel adding a new wallet?' dialog is not displayed And Examples: | page | step | - | Mnemonic verification | "Mnemonic verification" page is displayed from "Restore wallet" flow with 24 words | - | Wallet setup | "Let's set up your new wallet" page is displayed in modal for "Create" flow | + | Mnemonic verification | 'Mnemonic verification' page is displayed from 'Restore wallet' flow with 24 words | + | Wallet setup | 'Let's set up your new wallet' page is displayed in modal for 'Create' flow | @LW-9248 - Scenario Outline: Extended-view - Multi-wallet - Restore - "Add new wallet" - - "Are you sure you want to cancel adding a new wallet?" dialog - proceed - Given I opened "Restore" flow via "Add new wallet" feature - When I go to "" page from "Restore" wallet flow and fill values - And I click "X" button on "Add new wallet" modal - And I click "Proceed" button on "Are you sure you want to cancel adding a new wallet?" dialog - Then "Are you sure you want to cancel adding a new wallet?" dialog is not displayed - And "Add new wallet" modal is not displayed + Scenario Outline: Extended-view - Multi-wallet - Restore - 'Add new wallet' - - 'Are you sure you want to cancel adding a new wallet?' dialog - proceed + Given I opened 'Restore' flow via 'Add new wallet' feature + When I go to '' page from 'Restore' wallet flow and fill values + And I click 'X' button on 'Add new wallet' modal + And I click 'Proceed' button on 'Are you sure you want to cancel adding a new wallet?' dialog + Then 'Are you sure you want to cancel adding a new wallet?' dialog is not displayed + And 'Add new wallet' modal is not displayed Examples: | page | | Mnemonic verification | diff --git a/packages/e2e-tests/src/features/AddressBookExtended.part1.feature b/packages/e2e-tests/src/features/AddressBookExtended.part1.feature index cf64d3c993..520db489e7 100644 --- a/packages/e2e-tests/src/features/AddressBookExtended.part1.feature +++ b/packages/e2e-tests/src/features/AddressBookExtended.part1.feature @@ -16,26 +16,26 @@ Feature: Address book - extended view Then address list is displayed and each row consists of avatar, name and address @LW-4464 @Smoke - Scenario: Extended-view - Address Book - Add new address "Shelley_manual" + Scenario: Extended-view - Address Book - Add new address 'Shelley_manual' Given I don't have any addresses added to my address book in extended mode - And I click "Add address" button on address book page - And I see "Add new address" drawer in extended mode - And "Save address" button is disabled on "Add new address" drawer - When I fill address form with "Shelley_manual" name and "addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja" address - And I click "Save address" button on "Add new address" drawer - Then I see a toast with text: "Address added" - And I see address row with name "Shelley_manual" and address "addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja" on the list in extended mode + And I click 'Add address' button on address book page + And I see 'Add new address' drawer in extended mode + And 'Save address' button is disabled on 'Add new address' drawer + When I fill address form with 'Shelley_manual' name and 'addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja' address + And I click 'Save address' button on 'Add new address' drawer + Then I see a toast with text: 'Address added' + And I see address row with name 'Shelley_manual' and address 'addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja' on the list in extended mode @LW-4464 Scenario Outline: Extended-view - Address Book - Add new address Given I don't have any addresses added to my address book in extended mode - And I click "Add address" button on address book page - And I see "Add new address" drawer in extended mode - And "Save address" button is disabled on "Add new address" drawer - When I fill address form with "" name and "
" address - And I click "Save address" button on "Add new address" drawer - Then I see a toast with text: "Address added" - And I see address row with name "" and address "
" on the list in extended mode + And I click 'Add address' button on address book page + And I see 'Add new address' drawer in extended mode + And 'Save address' button is disabled on 'Add new address' drawer + When I fill address form with '' name and '
' address + And I click 'Save address' button on 'Add new address' drawer + Then I see a toast with text: 'Address added' + And I see address row with name '' and address '
' on the list in extended mode Examples: | wallet_name | address | | Byron_manual | 37btjrVyb4KC6N6XtRHwEuLPQW2aa9JA89gbnm67PArSi8E7vGeqgA6W1pFBphc1hhrk1WKGPZpUbnvYRimVLRVnUH6M6d3dsVdxYoAC4m7oNj7Dzp | @@ -47,15 +47,15 @@ Feature: Address book - extended view @LW-4465 Scenario Outline: Extended-view - Address Book - Add new address and display error message for name: and address:
Given I don't have any addresses added to my address book in extended mode - And I click "Add address" button on address book page - And I see "Add new address" drawer in extended mode - When I fill address form with "" name and "
" address - Then Contact "" name error and "" address error are displayed - And "Save address" button is disabled on "Add new address" drawer + And I click 'Add address' button on address book page + And I see 'Add new address' drawer in extended mode + When I fill address form with '' name and '
' address + Then Contact '' name error and '' address error are displayed + And 'Save address' button is disabled on 'Add new address' drawer Examples: | wallet_name | address | name_error | address_error | | too_long_name_123456789 | addr_invalid | Max 20 Characters | Invalid Cardano address | | name_ok | addr_invalid | empty | Invalid Cardano address | | too_long_name_123456789 | 2cWKMJemoBainaQxNUjUnKDr6mGgSERDRrvKAJzWejubdymYZv1uKedpSYkkehHnSwMCf | Max 20 Characters | empty | - | "name followed by space " | "2cWKMJemoBainaQxNUjUnKDr6mGgSERDRrvKAJzWejubdymYZv1uKedpSYkkehHnSwMCf " | Name has unnecessary white space | Address has unnecessary white space | - | " name preceded by space" | " 2cWKMJemoBainaQxNUjUnKDr6mGgSERDRrvKAJzWejubdymYZv1uKedpSYkkehHnSwMCf" | Name has unnecessary white space | Address has unnecessary white space | + | 'name followed by space ' | '2cWKMJemoBainaQxNUjUnKDr6mGgSERDRrvKAJzWejubdymYZv1uKedpSYkkehHnSwMCf ' | Name has unnecessary white space | Address has unnecessary white space | + | ' name preceded by space' | ' 2cWKMJemoBainaQxNUjUnKDr6mGgSERDRrvKAJzWejubdymYZv1uKedpSYkkehHnSwMCf' | Name has unnecessary white space | Address has unnecessary white space | diff --git a/packages/e2e-tests/src/features/AddressBookExtended.part2.feature b/packages/e2e-tests/src/features/AddressBookExtended.part2.feature index ff702fdcd4..005cd59d1e 100644 --- a/packages/e2e-tests/src/features/AddressBookExtended.part2.feature +++ b/packages/e2e-tests/src/features/AddressBookExtended.part2.feature @@ -7,12 +7,12 @@ Feature: Address book - extended view @LW-4554 Scenario Outline: Extended-view - Address Book - Add empty name/address and display error message - Name: - Address: Given I don't have any addresses added to my address book in extended mode - And I click "Add address" button on address book page - And I see "Add new address" drawer in extended mode - When I fill address form with "" name and "
" address - And I fill address form with "" name and "" address - Then Contact "" name error and "" address error are displayed - And "Save address" button is disabled on "Add new address" drawer + And I click 'Add address' button on address book page + And I see 'Add new address' drawer in extended mode + When I fill address form with '' name and '
' address + And I fill address form with '' name and '' address + Then Contact '' name error and '' address error are displayed + And 'Save address' button is disabled on 'Add new address' drawer Examples: | wallet_name | wallet_name2 | address | address2 | name_error | address_error | @@ -23,29 +23,29 @@ Feature: Address book - extended view @LW-4466 Scenario: Extended-view - Address Book - Remove address Given I have 3 addresses in my address book in extended mode - When I click address on the list with name "Byron" - And I see address detail page in extended mode with details of "Byron" address - And I click "Delete" button on address details page + When I click address on the list with name 'Byron' + And I see address detail page in extended mode with details of 'Byron' address + And I click 'Delete' button on address details page Then I see delete address modal - When I click "Delete address" button on delete address modal - Then I don't see address row with name "Byron" and address "37btjrVyb4KC6N6XtRHwEuLPQW2aa9JA89gbnm67PArSi8E7vGeqgA6W1pFBphc1hhrk1WKGPZpUbnvYRimVLRVnUH6M6d3dsVdxYoAC4m7oNj7Dzp" on the list in extended mode + When I click 'Delete address' button on delete address modal + Then I don't see address row with name 'Byron' and address '37btjrVyb4KC6N6XtRHwEuLPQW2aa9JA89gbnm67PArSi8E7vGeqgA6W1pFBphc1hhrk1WKGPZpUbnvYRimVLRVnUH6M6d3dsVdxYoAC4m7oNj7Dzp' on the list in extended mode @LW-4467 Scenario: Extended-view - Address Book - Remove address and cancel Given I have 3 addresses in my address book in extended mode - When I click address on the list with name "Byron" - And I see address detail page in extended mode with details of "Byron" address - And I click "Delete" button on address details page - And I click "Cancel" button on delete address modal - Then I see address detail page in extended mode with details of "Byron" address + When I click address on the list with name 'Byron' + And I see address detail page in extended mode with details of 'Byron' address + And I click 'Delete' button on address details page + And I click 'Cancel' button on delete address modal + Then I see address detail page in extended mode with details of 'Byron' address @LW-4468 @Smoke Scenario Outline: Extended-view - Address Book - Uniqueness validation and toast display with text Given I have 3 addresses in my address book in extended mode - And I click "Add address" button on address book page - When I fill address form with "" name and address from "" address - And I click "Save address" button on "Add new address" drawer - Then I see a toast with text: "" + And I click 'Add address' button on address book page + When I fill address form with '' name and address from '' address + And I click 'Save address' button on 'Add new address' drawer + Then I see a toast with text: '' Examples: | wallet_name | wallet_address | toast_message | @@ -56,20 +56,20 @@ Feature: Address book - extended view Scenario: Extended-view - Address Book - Copy address button Given I close wallet synced toast And I have 3 addresses in my address book in extended mode - When I click address on the list with name "Byron" - And I click "Copy" button on address details page - Then I see a toast with text: "Copied to clipboard" + When I click address on the list with name 'Byron' + And I click 'Copy' button on address details page + Then I see a toast with text: 'Copied to clipboard' And address is saved to clipboard @LW-4470 Scenario Outline: Extended-view - Address Book - Edit address: Given I have 3 addresses in my address book in extended mode - When I click address on the list with name "" - And I click "Edit" button on address details page - And I fill address form with "" name and "
" address - And I click "Done" button on "Edit address" drawer - Then I see a toast with text: "Edited successfully" - And I see address row with name "" and address "
" on the list in extended mode + When I click address on the list with name '' + And I click 'Edit' button on address details page + And I fill address form with '' name and '
' address + And I click 'Done' button on 'Edit address' drawer + Then I see a toast with text: 'Edited successfully' + And I see address row with name '' and address '
' on the list in extended mode Examples: | edited_address | wallet_name | address | @@ -79,19 +79,19 @@ Feature: Address book - extended view @LW-4471 Scenario: Extended-view - Address Book - Edit address and cancel Given I have 3 addresses in my address book in extended mode - And I click address on the list with name "Shelley" - And I click "Edit" button on address details page - When I click "Cancel" button on "Edit address" drawer - Then I see address detail page in extended mode with details of "Shelley" address + And I click address on the list with name 'Shelley' + And I click 'Edit' button on address details page + When I click 'Cancel' button on 'Edit address' drawer + Then I see address detail page in extended mode with details of 'Shelley' address @LW-4567 Scenario Outline: Extended-view - Address Book - Edit address book entry - Uniqueness validation and toast display with text Given I have 3 addresses in my address book in extended mode - And I click address on the list with name "Shelley" - And I click "Edit" button on address details page - And I fill address form with "" name and address from "" address - And I click "Done" button on "Edit address" drawer - Then I see a toast with text: "" + And I click address on the list with name 'Shelley' + And I click 'Edit' button on address details page + And I fill address form with '' name and address from '' address + And I click 'Done' button on 'Edit address' drawer + Then I see a toast with text: '' Examples: | wallet_name | wallet_address | toast_message | @@ -101,20 +101,20 @@ Feature: Address book - extended view @LW-4535 Scenario: Extended-view - Address Book - Edit address and click exit button Given I have 3 addresses in my address book in extended mode - And I click address on the list with name "Shelley" - And I click "Edit" button on address details page + And I click address on the list with name 'Shelley' + And I click 'Edit' button on address details page When I close the drawer by clicking close button Then address list is displayed and each row consists of avatar, name and address @LW-4536 Scenario: Extended-view - Address Book - Edit address and click back button Given I have 3 addresses in my address book in extended mode - And I click address on the list with name "Shelley" - And I click "Edit" button on address details page + And I click address on the list with name 'Shelley' + And I click 'Edit' button on address details page When I close the drawer by clicking back button - Then I see address detail page in extended mode with details of "Shelley" address + Then I see address detail page in extended mode with details of 'Shelley' address @LW-4484 - Scenario: Extended-view - Address Book - "About your wallet" widget + Scenario: Extended-view - Address Book - 'About your wallet' widget Given I don't have any addresses added to my address book in extended mode - Then I see Address Book "About your wallet" widget with all relevant items + Then I see Address Book 'About your wallet' widget with all relevant items diff --git a/packages/e2e-tests/src/features/AddressBookExtended.part3.feature b/packages/e2e-tests/src/features/AddressBookExtended.part3.feature index aa60f55528..8ae970ca0a 100644 --- a/packages/e2e-tests/src/features/AddressBookExtended.part3.feature +++ b/packages/e2e-tests/src/features/AddressBookExtended.part3.feature @@ -7,29 +7,29 @@ Feature: Address book - extended view @LW-4565 Scenario Outline: Extended-view - Address Book - Edit wallet name/address and display error message for name: and address:
Given I have 3 addresses in my address book in extended mode - And I click address on the list with name "Shelley" - And I click "Edit" button on address details page - And I fill address form with "" name and "
" address - Then Contact "" name error and "" address error are displayed - And "Done" button is disabled on "Edit address" drawer + And I click address on the list with name 'Shelley' + And I click 'Edit' button on address details page + And I fill address form with '' name and '
' address + Then Contact '' name error and '' address error are displayed + And 'Done' button is disabled on 'Edit address' drawer Examples: | wallet_name | address | name_error | address_error | | empty | addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja | Name field is required | empty | | too_long_name_123456789 | addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja | Max 20 Characters | empty | - | " name preceded by space" | addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja | Name has unnecessary white space | empty | + | ' name preceded by space' | addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja | Name has unnecessary white space | empty | | valid wallet name | invalid_address | empty | Invalid Cardano address | - | valid wallet name | " addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja" | empty | Address has unnecessary white space | - | valid wallet name | "addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja " | empty | Address has unnecessary white space | - | "name followed by space " | invalid_address | Name has unnecessary white space | Invalid Cardano address | + | valid wallet name | ' addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja' | empty | Address has unnecessary white space | + | valid wallet name | 'addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja ' | empty | Address has unnecessary white space | + | 'name followed by space ' | invalid_address | Name has unnecessary white space | Invalid Cardano address | # | valid wallet name | empty | empty | Address field is required | # TODO: Uncomment when LW-7419 is fixed # | empty | empty | Name field is required | Address field is required | # TODO: Uncomment when LW-7419 is fixed @LW-4485 - Scenario Outline: Extended-view - Address Book - "About your wallet" widget item click - + Scenario Outline: Extended-view - Address Book - 'About your wallet' widget item click - Given I don't have any addresses added to my address book in extended mode - When I click on a widget item with subtitle: "" - Then I see a "" article with title "" + When I click on a widget item with subtitle: '' + Then I see a '' article with title '' Examples: | type | subtitle | @@ -39,87 +39,87 @@ Feature: Address book - extended view @LW-4744 @Pending @issue=LW-7697 Scenario: Extended-view - Address Book - Enter and Escape buttons support when editing address Given I have 3 addresses in my address book in extended mode - When I click address on the list with name "Byron" - Then I see address detail page in extended mode with details of "Byron" address + When I click address on the list with name 'Byron' + Then I see address detail page in extended mode with details of 'Byron' address When I press keyboard Enter button - Then I see "Edit address" drawer in extended mode with details of "Byron" address + Then I see 'Edit address' drawer in extended mode with details of 'Byron' address When I press keyboard Escape button - And I see address detail page in extended mode with details of "Byron" address + And I see address detail page in extended mode with details of 'Byron' address When I press keyboard Enter button - And I fill address form with "Byron_edited" name and "37btjrVyb4KC6N6XtRHwEuLPQW2aa9JA89gbnm67PArSi8E7vGeqgA6W1pFBphc1hhrk1WKGPZpUbnvYRimVLRVnUH6M6d3dsVdxYoAC4m7oNj7Dzp" address + And I fill address form with 'Byron_edited' name and '37btjrVyb4KC6N6XtRHwEuLPQW2aa9JA89gbnm67PArSi8E7vGeqgA6W1pFBphc1hhrk1WKGPZpUbnvYRimVLRVnUH6M6d3dsVdxYoAC4m7oNj7Dzp' address When I press keyboard Enter button - Then I see a toast with text: "Edited successfully" + Then I see a toast with text: 'Edited successfully' @LW-4745 Scenario: Extended-view - Address Book - Escape button support when closing drawer Given I have 3 addresses in my address book in extended mode - When I click address on the list with name "Byron" - Then I see address detail page in extended mode with details of "Byron" address + When I click address on the list with name 'Byron' + Then I see address detail page in extended mode with details of 'Byron' address When I press keyboard Escape button - Then I do not see address detail page in extended mode with details of "Byron" address + Then I do not see address detail page in extended mode with details of 'Byron' address @LW-4779 @Pending @issue=LW-7419 Scenario: Extended-view - Address Book - Display error message after filling name and clicking outside with empty address Given I don't have any addresses added to my address book in extended mode - And I click "Add address" button on address book page - And I see "Add new address" drawer in extended mode - When I fill address form with "name_ok" name - And I fill address form with "empty" address + And I click 'Add address' button on address book page + And I see 'Add new address' drawer in extended mode + When I fill address form with 'name_ok' name + And I fill address form with 'empty' address And I click outside address form to lose focus - Then Contact "empty" name error and "Address field is required" address error are displayed + Then Contact 'empty' name error and 'Address field is required' address error are displayed @LW-4780 @Pending @issue=LW-7419 Scenario: Extended-view - Address Book - Display error message when adding valid address and clicking outside with empty name field Given I don't have any addresses added to my address book in extended mode - And I click "Add address" button on address book page - And I see "Add new address" drawer in extended mode - When I fill address form with "addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja" address - When I fill address form with "empty" name + And I click 'Add address' button on address book page + And I see 'Add new address' drawer in extended mode + When I fill address form with 'addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja' address + When I fill address form with 'empty' name And I click outside address form to lose focus - Then Contact "Name field is required" name error and "empty" address error are displayed + Then Contact 'Name field is required' name error and 'empty' address error are displayed @LW-4781 @Pending @issue=LW-7419 Scenario: Extended-view - Address Book - No error is displayed when leaving both fields empty Given I don't have any addresses added to my address book in extended mode - And I click "Add address" button on address book page - And I see "Add new address" drawer in extended mode - When I fill address form with "name_ok" name and "addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja" address + And I click 'Add address' button on address book page + And I see 'Add new address' drawer in extended mode + When I fill address form with 'name_ok' name and 'addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja' address And I clear name field value in address form And I clear address field value in address form And I click outside address form to lose focus - Then Contact "empty" name error and "empty" address error are displayed - And "Save address" button is disabled on "Add new address" drawer + Then Contact 'empty' name error and 'empty' address error are displayed + And 'Save address' button is disabled on 'Add new address' drawer @LW-7043 Scenario: Extended-view - Address Book - Add the same contact to the address book for two different networks Given I don't have any addresses added to my address book in extended mode - When I add new address: "addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr" with name: "example_name1" in extended mode - Then I verify that address: "addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr" with name: "example_name1" has been added in extended mode - And I switch network to: "Preview" in extended mode + When I add new address: 'addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr' with name: 'example_name1' in extended mode + Then I verify that address: 'addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr' with name: 'example_name1' has been added in extended mode + And I switch network to: 'Preview' in extended mode And I close wallet synced toast - When I add new address: "addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr" with name: "example_name1" in extended mode - Then I verify that address: "addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr" with name: "example_name1" has been added in extended mode - And I switch network to: "Mainnet" in extended mode + When I add new address: 'addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr' with name: 'example_name1' in extended mode + Then I verify that address: 'addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr' with name: 'example_name1' has been added in extended mode + And I switch network to: 'Mainnet' in extended mode And I close wallet synced toast - When I add new address: "addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr" with name: "example_name1" in extended mode - Then I verify that address: "addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr" with name: "example_name1" has been added in extended mode + When I add new address: 'addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr' with name: 'example_name1' in extended mode + Then I verify that address: 'addr_test1qzngq82mhkzqttqvdk8yl4twk4ea70ja2e7j92x9vqwatds4dm4z5j48w9mjpag2htut4g6pzfxm7x958m3wxjwc8t6q8k6txr' with name: 'example_name1' has been added in extended mode @LW-7042 Scenario: Extended-view - Address Book - Delete an address that is on more than one network Given I don't have any addresses added to my address book in extended mode - And I add new address: "addr_test1qzcx0kfmglh9hg5wa7kxzt3c3e8psnm0pus38qth0wgmmljcexj60ge60d8h7nyz9ez0mzgxznr5kr6rfsemdqp74p0q9rw57j" with name: "example_name2" in extended mode - And I switch network to: "Preview" in extended mode - And I add new address: "addr_test1qzcx0kfmglh9hg5wa7kxzt3c3e8psnm0pus38qth0wgmmljcexj60ge60d8h7nyz9ez0mzgxznr5kr6rfsemdqp74p0q9rw57j" with name: "example_name2" in extended mode - And I switch network to: "Mainnet" in extended mode - And I add new address: "addr_test1qzcx0kfmglh9hg5wa7kxzt3c3e8psnm0pus38qth0wgmmljcexj60ge60d8h7nyz9ez0mzgxznr5kr6rfsemdqp74p0q9rw57j" with name: "example_name2" in extended mode - And I switch network to: "Preprod" in extended mode - And I delete address with name: "example_name2" in extended mode + And I add new address: 'addr_test1qzcx0kfmglh9hg5wa7kxzt3c3e8psnm0pus38qth0wgmmljcexj60ge60d8h7nyz9ez0mzgxznr5kr6rfsemdqp74p0q9rw57j' with name: 'example_name2' in extended mode + And I switch network to: 'Preview' in extended mode + And I add new address: 'addr_test1qzcx0kfmglh9hg5wa7kxzt3c3e8psnm0pus38qth0wgmmljcexj60ge60d8h7nyz9ez0mzgxznr5kr6rfsemdqp74p0q9rw57j' with name: 'example_name2' in extended mode + And I switch network to: 'Mainnet' in extended mode + And I add new address: 'addr_test1qzcx0kfmglh9hg5wa7kxzt3c3e8psnm0pus38qth0wgmmljcexj60ge60d8h7nyz9ez0mzgxznr5kr6rfsemdqp74p0q9rw57j' with name: 'example_name2' in extended mode + And I switch network to: 'Preprod' in extended mode + And I delete address with name: 'example_name2' in extended mode Then I see empty address book - And I switch network to: "Preview" in extended mode + And I switch network to: 'Preview' in extended mode And I open address book in extended mode - Then I see address row with name "example_name2" and address "addr_test1qzcx0kfmglh9hg5wa7kxzt3c3e8psnm0pus38qth0wgmmljcexj60ge60d8h7nyz9ez0mzgxznr5kr6rfsemdqp74p0q9rw57j" on the list in extended mode - And I delete address with name: "example_name2" in extended mode + Then I see address row with name 'example_name2' and address 'addr_test1qzcx0kfmglh9hg5wa7kxzt3c3e8psnm0pus38qth0wgmmljcexj60ge60d8h7nyz9ez0mzgxznr5kr6rfsemdqp74p0q9rw57j' on the list in extended mode + And I delete address with name: 'example_name2' in extended mode And I see empty address book - And I switch network to: "Mainnet" in extended mode + And I switch network to: 'Mainnet' in extended mode And I open address book in extended mode - Then I see address row with name "example_name2" and address "addr_test1qzcx0kfmglh9hg5wa7kxzt3c3e8psnm0pus38qth0wgmmljcexj60ge60d8h7nyz9ez0mzgxznr5kr6rfsemdqp74p0q9rw57j" on the list in extended mode + Then I see address row with name 'example_name2' and address 'addr_test1qzcx0kfmglh9hg5wa7kxzt3c3e8psnm0pus38qth0wgmmljcexj60ge60d8h7nyz9ez0mzgxznr5kr6rfsemdqp74p0q9rw57j' on the list in extended mode diff --git a/packages/e2e-tests/src/features/AddressBookPopup.part1.feature b/packages/e2e-tests/src/features/AddressBookPopup.part1.feature index 8ac7973c7a..9e537a28cb 100644 --- a/packages/e2e-tests/src/features/AddressBookPopup.part1.feature +++ b/packages/e2e-tests/src/features/AddressBookPopup.part1.feature @@ -13,20 +13,20 @@ Feature: Address book - popup view Scenario: Popup-view - Address Book - Copy address button Given I close wallet synced toast And I have 3 addresses in my address book in popup mode - When I click address on the list with name "Byron" - And I click "Copy" button on address details page - Then I see a toast with text: "Copied to clipboard" + When I click address on the list with name 'Byron' + And I click 'Copy' button on address details page + Then I see a toast with text: 'Copied to clipboard' And address is saved to clipboard @LW-4475 Scenario Outline: Popup-view - Address Book - Edit address: Given I have 3 addresses in my address book in popup mode - When I click address on the list with name "" - And I click "Edit" button on address details page - And I fill address form with "" name and "
" address - And I click "Done" button on "Edit address" drawer - Then I see a toast with text: "Edited successfully" - And I see address row with name "" and address "" on the list in popup mode + When I click address on the list with name '' + And I click 'Edit' button on address details page + And I fill address form with '' name and '
' address + And I click 'Done' button on 'Edit address' drawer + Then I see a toast with text: 'Edited successfully' + And I see address row with name '' and address '' on the list in popup mode Examples: | edited_address | wallet_name | address | address_label | | Shelley | Shelley_edit | addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja | addr_tes...6ja | @@ -35,40 +35,40 @@ Feature: Address book - popup view @LW-4476 Scenario: Popup-view - Address Book - Edit address and cancel Given I have 3 addresses in my address book in popup mode - And I click address on the list with name "Shelley" - And I click "Edit" button on address details page - When I click "Cancel" button on "Edit address" drawer - Then I see address detail page in popup mode with details of "Shelley" address + And I click address on the list with name 'Shelley' + And I click 'Edit' button on address details page + When I click 'Cancel' button on 'Edit address' drawer + Then I see address detail page in popup mode with details of 'Shelley' address @LW-4566 Scenario Outline: Popup-view - Address Book - Edit wallet name/address and display error message for name: and address:
Given I have 3 addresses in my address book in popup mode - And I click address on the list with name "Shelley" - And I click "Edit" button on address details page - And I fill address form with "" name and "
" address - Then Contact "" name error and "" address error are displayed - And "Done" button is disabled on "Edit address" drawer + And I click address on the list with name 'Shelley' + And I click 'Edit' button on address details page + And I fill address form with '' name and '
' address + Then Contact '' name error and '' address error are displayed + And 'Done' button is disabled on 'Edit address' drawer Examples: | wallet_name | address | name_error | address_error | | empty | addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja | Name field is required | empty | | too_long_name_123456789 | addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja | Max 20 Characters | empty | - | " name preceded by space" | addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja | Name has unnecessary white space | empty | + | ' name preceded by space' | addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja | Name has unnecessary white space | empty | | valid wallet name | invalid_address | empty | Invalid Cardano address | - | valid wallet name | " addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja" | empty | Address has unnecessary white space | - | valid wallet name | "addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja " | empty | Address has unnecessary white space | - | "name followed by space " | invalid_address | Name has unnecessary white space | Invalid Cardano address | + | valid wallet name | ' addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja' | empty | Address has unnecessary white space | + | valid wallet name | 'addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja ' | empty | Address has unnecessary white space | + | 'name followed by space ' | invalid_address | Name has unnecessary white space | Invalid Cardano address | # | valid wallet name | empty | empty | Address field is required | # TODO: Uncomment when LW-7419 is fixed # | empty | empty | Name field is required | Address field is required | # TODO: Uncomment when LW-7419 is fixed @LW-4568 Scenario Outline: Popup-view - Address Book - Edit address book entry - Uniqueness validation and toast display with text Given I have 3 addresses in my address book in popup mode - And I click address on the list with name "Shelley" - And I click "Edit" button on address details page - And I fill address form with "" name and address from "" address - And "Done" button is enabled on "Edit address" drawer - Then I click "Done" button on "Edit address" drawer - And I see a toast with text: "" + And I click address on the list with name 'Shelley' + And I click 'Edit' button on address details page + And I fill address form with '' name and address from '' address + And 'Done' button is enabled on 'Edit address' drawer + Then I click 'Done' button on 'Edit address' drawer + And I see a toast with text: '' Examples: | wallet_name | wallet_address | toast_message | | Byron | Byron | Given name already exists | @@ -77,26 +77,26 @@ Feature: Address book - popup view @LW-4534 Scenario: Popup-view - Address Book - Edit address and click back button Given I have 3 addresses in my address book in popup mode - And I click address on the list with name "Shelley" - And I click "Edit" button on address details page + And I click address on the list with name 'Shelley' + And I click 'Edit' button on address details page When I close the drawer by clicking back button - Then I see address detail page in popup mode with details of "Shelley" address + Then I see address detail page in popup mode with details of 'Shelley' address @LW-4477 Scenario: Popup-view - Address Book - Remove address Given I have 3 addresses in my address book in popup mode - When I click address on the list with name "Byron" - And I see address detail page in popup mode with details of "Byron" address - And I click "Delete" button on address details page + When I click address on the list with name 'Byron' + And I see address detail page in popup mode with details of 'Byron' address + And I click 'Delete' button on address details page Then I see delete address modal - When I click "Delete address" button on delete address modal - Then I don't see address row with name "Byron" and address "37btjrVyb4KC6N6XtRHwEuLPQW2aa9JA89gbnm67PArSi8E7vGeqgA6W1pFBphc1hhrk1WKGPZpUbnvYRimVLRVnUH6M6d3dsVdxYoAC4m7oNj7Dzp" on the list in popup mode + When I click 'Delete address' button on delete address modal + Then I don't see address row with name 'Byron' and address '37btjrVyb4KC6N6XtRHwEuLPQW2aa9JA89gbnm67PArSi8E7vGeqgA6W1pFBphc1hhrk1WKGPZpUbnvYRimVLRVnUH6M6d3dsVdxYoAC4m7oNj7Dzp' on the list in popup mode @LW-4478 Scenario: Popup-view - Address Book - Remove address and cancel Given I have 3 addresses in my address book in popup mode - When I click address on the list with name "Byron" - And I see address detail page in popup mode with details of "Byron" address - And I click "Delete" button on address details page - And I click "Cancel" button on delete address modal - Then I see address detail page in popup mode with details of "Byron" address + When I click address on the list with name 'Byron' + And I see address detail page in popup mode with details of 'Byron' address + And I click 'Delete' button on address details page + And I click 'Cancel' button on delete address modal + Then I see address detail page in popup mode with details of 'Byron' address diff --git a/packages/e2e-tests/src/features/AddressBookPopup.part2.feature b/packages/e2e-tests/src/features/AddressBookPopup.part2.feature index 8d7e9ac676..83735b5164 100644 --- a/packages/e2e-tests/src/features/AddressBookPopup.part2.feature +++ b/packages/e2e-tests/src/features/AddressBookPopup.part2.feature @@ -7,13 +7,13 @@ Feature: Address book - popup view @LW-4479 @skip(browserName='firefox') @issue=LW-12440 Scenario Outline: Popup-view - Address Book - Add new address Given I don't have any addresses added to my address book in popup mode - When I click "Add address" button on address book page - Then I see "Add new address" drawer in popup mode - And "Save address" button is disabled on "Add new address" drawer - When I fill address form with "" name and address from "" address - And I click "Save address" button on "Add new address" drawer - Then I see a toast with text: "Address added" - And I see address row with name "" and address "" on the list in popup mode + When I click 'Add address' button on address book page + Then I see 'Add new address' drawer in popup mode + And 'Save address' button is disabled on 'Add new address' drawer + When I fill address form with '' name and address from '' address + And I click 'Save address' button on 'Add new address' drawer + Then I see a toast with text: 'Address added' + And I see address row with name '' and address '' on the list in popup mode Examples: | wallet_name | wallet_address | @@ -27,27 +27,27 @@ Feature: Address book - popup view @LW-4480 Scenario Outline: Popup-view - Address Book - Add new address and display error message for name: and address:
Given I don't have any addresses added to my address book in popup mode - When I click "Add address" button on address book page - And I fill address form with "" name and "
" address - Then Contact "" name error and "" address error are displayed - And "Save address" button is disabled on "Add new address" drawer + When I click 'Add address' button on address book page + And I fill address form with '' name and '
' address + Then Contact '' name error and '' address error are displayed + And 'Save address' button is disabled on 'Add new address' drawer Examples: | wallet_name | address | name_error | address_error | | too_long_name_123456789 | addr_invalid | Max 20 Characters | Invalid Cardano address | | name_ok | addr_invalid | empty | Invalid Cardano address | | too_long_name_123456789 | 2cWKMJemoBainaQxNUjUnKDr6mGgSERDRrvKAJzWejubdymYZv1uKedpSYkkehHnSwMCf | Max 20 Characters | empty | - | "name followed by space " | "2cWKMJemoBainaQxNUjUnKDr6mGgSERDRrvKAJzWejubdymYZv1uKedpSYkkehHnSwMCf " | Name has unnecessary white space | Address has unnecessary white space | - | " name preceded by space" | " 2cWKMJemoBainaQxNUjUnKDr6mGgSERDRrvKAJzWejubdymYZv1uKedpSYkkehHnSwMCf" | Name has unnecessary white space | Address has unnecessary white space | + | 'name followed by space ' | '2cWKMJemoBainaQxNUjUnKDr6mGgSERDRrvKAJzWejubdymYZv1uKedpSYkkehHnSwMCf ' | Name has unnecessary white space | Address has unnecessary white space | + | ' name preceded by space' | ' 2cWKMJemoBainaQxNUjUnKDr6mGgSERDRrvKAJzWejubdymYZv1uKedpSYkkehHnSwMCf' | Name has unnecessary white space | Address has unnecessary white space | @LW-4555 Scenario Outline: Popup-view - Address Book - Add empty name/address and display error message - Name: - Address: Given I don't have any addresses added to my address book in popup mode - When I click "Add address" button on address book page - And I fill address form with "" name and "
" address - And I fill address form with "" name and "" address - Then Contact "" name error and "" address error are displayed - And "Save address" button is disabled on "Add new address" drawer + When I click 'Add address' button on address book page + And I fill address form with '' name and '
' address + And I fill address form with '' name and '' address + Then Contact '' name error and '' address error are displayed + And 'Save address' button is disabled on 'Add new address' drawer Examples: | wallet_name | wallet_name2 | address | address2 | name_error | address_error | @@ -58,10 +58,10 @@ Feature: Address book - popup view @LW-4481 Scenario Outline: Popup-view - Address Book - Uniqueness validation and toast display with text Given I have 3 addresses in my address book in popup mode - When I click "Add address" button on address book page - And I fill address form with "" name and address from "" address - And I click "Save address" button on "Add new address" drawer - Then I see a toast with text: "" + When I click 'Add address' button on address book page + And I fill address form with '' name and address from '' address + And I click 'Save address' button on 'Add new address' drawer + Then I see a toast with text: '' Examples: | wallet_name | wallet_address | toast_message | @@ -71,31 +71,31 @@ Feature: Address book - popup view @LW-4784 @Pending @issue=LW-7419 Scenario: Popup-view - Address Book - Display error message after filling name and clicking outside with empty address Given I don't have any addresses added to my address book in popup mode - When I click "Add address" button on address book page - Then I see "Add new address" drawer in popup mode - When I fill address form with "addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja" address - When I fill address form with "empty" name + When I click 'Add address' button on address book page + Then I see 'Add new address' drawer in popup mode + When I fill address form with 'addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja' address + When I fill address form with 'empty' name And I click outside address form to lose focus - Then Contact "Name field is required" name error and "empty" address error are displayed + Then Contact 'Name field is required' name error and 'empty' address error are displayed @LW-4783 @Pending @issue=LW-7419 Scenario: Popup-view - Address Book - No error is displayed when leaving both fields empty Given I don't have any addresses added to my address book in popup mode - When I click "Add address" button on address book page - Then I see "Add new address" drawer in popup mode - When I fill address form with "name_ok" name and "addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja" address + When I click 'Add address' button on address book page + Then I see 'Add new address' drawer in popup mode + When I fill address form with 'name_ok' name and 'addr_test1qq959a7g4spmkg4gz2yw02622c739p8crt6tzh04qzag992wcj4m99m95nmkgxhk8j0upqp2jzaxxdsj3jf9v4yhv3uqfwr6ja' address And I clear name field value in address form And I clear address field value in address form And I click outside address form to lose focus - Then Contact "empty" name error and "empty" address error are displayed - And "Save address" button is disabled on "Add new address" drawer + Then Contact 'empty' name error and 'empty' address error are displayed + And 'Save address' button is disabled on 'Add new address' drawer @LW-4785 @Pending @issue=LW-7419 Scenario: Popup-view - Address Book - Display error message after filling name and clicking outside with empty address Given I don't have any addresses added to my address book in popup mode - When I click "Add address" button on address book page - Then I see "Add new address" drawer in popup mode - When I fill address form with "name_ok" name - And I fill address form with "empty" address + When I click 'Add address' button on address book page + Then I see 'Add new address' drawer in popup mode + When I fill address form with 'name_ok' name + And I fill address form with 'empty' address And I click outside address form to lose focus - Then Contact "empty" name error and "Address field is required" address error are displayed + Then Contact 'empty' name error and 'Address field is required' address error are displayed diff --git a/packages/e2e-tests/src/features/CollateralExtended.feature b/packages/e2e-tests/src/features/CollateralExtended.feature index 58a623d511..8af47975c4 100644 --- a/packages/e2e-tests/src/features/CollateralExtended.feature +++ b/packages/e2e-tests/src/features/CollateralExtended.feature @@ -8,36 +8,36 @@ Feature: Collateral - extended view @LW-5520 @memory-snapshot Scenario: Extended View - Settings - Add/Reclaim Collateral And I am on Settings extended page - Then I see collateral as: "Inactive" in settings - When I click on "Collateral" setting + Then I see collateral as: 'Inactive' in settings + When I click on 'Collateral' setting Then all elements of Inactive collateral drawer are displayed When I fill correct password and confirm collateral - Then I see collateral as: "Active" in settings + Then I see collateral as: 'Active' in settings And valid password is not in snapshot When I navigate to Activity extended page - And I can see transaction 1 with type "Self Transaction" + And I can see transaction 1 with type 'Self Transaction' When I navigate to Settings extended page - When I click on "Collateral" setting + When I click on 'Collateral' setting Then all elements of Active collateral drawer are displayed - When I click "Reclaim collateral" button on collateral drawer - Then I see collateral as: "Inactive" in settings + When I click 'Reclaim collateral' button on collateral drawer + Then I see collateral as: 'Inactive' in settings @LW-5526 Scenario: Extended View - Settings - Collateral - state of collateral is separated and saved during network switching And I am on Settings extended page - When I click on "Collateral" setting + When I click on 'Collateral' setting And I fill correct password and confirm collateral - Then I see collateral as: "Active" in settings + Then I see collateral as: 'Active' in settings And I navigate to Activity extended page - And I can see transaction 1 with type "Self Transaction" - When I switch network to: "Preview" in extended mode + And I can see transaction 1 with type 'Self Transaction' + When I switch network to: 'Preview' in extended mode And Wallet is synced - Then I see collateral as: "Inactive" in settings - When I click on "Collateral" setting + Then I see collateral as: 'Inactive' in settings + When I click on 'Collateral' setting Then all elements of Inactive collateral drawer are displayed And I close the drawer by clicking close button - When I switch network to: "Preprod" in extended mode + When I switch network to: 'Preprod' in extended mode And Wallet is synced - Then I see collateral as: "Active" in settings - When I click on "Collateral" setting + Then I see collateral as: 'Active' in settings + When I click on 'Collateral' setting Then all elements of Active collateral drawer are displayed diff --git a/packages/e2e-tests/src/features/CollateralPopup.feature b/packages/e2e-tests/src/features/CollateralPopup.feature index 60d70785e1..7437712ba4 100644 --- a/packages/e2e-tests/src/features/CollateralPopup.feature +++ b/packages/e2e-tests/src/features/CollateralPopup.feature @@ -8,38 +8,38 @@ Feature: Collateral - popup view @LW-5523 Scenario: Popup View - Settings - Add/Reclaim Collateral And I am on Settings popup page - Then I see collateral as: "Inactive" in settings - When I click on "Collateral" setting + Then I see collateral as: 'Inactive' in settings + When I click on 'Collateral' setting Then all elements of Inactive collateral drawer are displayed When I fill correct password and confirm collateral - Then I see collateral as: "Active" in settings + Then I see collateral as: 'Active' in settings When I navigate to Activity popup page - And I can see transaction 1 with type "Self Transaction" + And I can see transaction 1 with type 'Self Transaction' When I navigate to Settings popup page - When I click on "Collateral" setting + When I click on 'Collateral' setting Then all elements of Active collateral drawer are displayed - When I click "Reclaim collateral" button on collateral drawer - Then I see collateral as: "Inactive" in settings + When I click 'Reclaim collateral' button on collateral drawer + Then I see collateral as: 'Inactive' in settings @LW-5528 Scenario: Popup View - Settings - Collateral - state of collateral is separated and saved during network switching And I am on Settings popup page - When I click on "Collateral" setting + When I click on 'Collateral' setting And I fill correct password and confirm collateral - Then I see collateral as: "Active" in settings - And I see a toast with text: "Collateral added" + Then I see collateral as: 'Active' in settings + And I see a toast with text: 'Collateral added' And I close a toast message And I navigate to Activity popup page - And I can see transaction 1 with type "Self Transaction" - When I switch network to: "Preview" in popup mode + And I can see transaction 1 with type 'Self Transaction' + When I switch network to: 'Preview' in popup mode And Wallet is synced When I am on Settings popup page - Then I see collateral as: "Inactive" in settings - When I click on "Collateral" setting + Then I see collateral as: 'Inactive' in settings + When I click on 'Collateral' setting Then all elements of Inactive collateral drawer are displayed And I close the drawer by clicking back button - When I switch network to: "Preprod" in popup mode + When I switch network to: 'Preprod' in popup mode And Wallet is synced - Then I see collateral as: "Active" in settings - When I click on "Collateral" setting + Then I see collateral as: 'Active' in settings + When I click on 'Collateral' setting Then all elements of Active collateral drawer are displayed diff --git a/packages/e2e-tests/src/features/DAppConnector.feature b/packages/e2e-tests/src/features/DAppConnector.feature index cc70c4f6aa..c543e1f63c 100644 --- a/packages/e2e-tests/src/features/DAppConnector.feature +++ b/packages/e2e-tests/src/features/DAppConnector.feature @@ -12,17 +12,17 @@ Feature: DAppConnector - Common Then I see Lace wallet info in DApp when not connected @LW-6660 @Mainnet - Scenario: DApp connection modal displayed after clicking "Authorize" + Scenario: DApp connection modal displayed after clicking 'Authorize' When I open test DApp Then I see DApp authorization window - When I click "Authorize" button in DApp authorization window + When I click 'Authorize' button in DApp authorization window Then I see DApp connection modal @LW-3756 @Mainnet Scenario: Canceling DApp connection When I open test DApp Then I see DApp authorization window - When I click "Cancel" button in DApp authorization window + When I click 'Cancel' button in DApp authorization window Then I don't see DApp window And I see Lace wallet info in DApp when not connected And I switch to window with Lace @@ -33,11 +33,11 @@ Feature: DAppConnector - Common @LW-4062 @LW-3753 @LW-9080 @Mainnet Scenario: Authorize app functions as expected when the user chooses 'Only once' Given I am on Tokens extended page - And I save token: "Cardano" balance + And I save token: 'Cardano' balance When I open test DApp And I see DApp authorization window - And I click "Authorize" button in DApp authorization window - And I click "Only once" button in DApp authorization window + And I click 'Authorize' button in DApp authorization window + And I click 'Only once' button in DApp authorization window Then I see Lace wallet info in DApp when connected And I am able to access all window.cardano.lace properties And I switch to window with Lace @@ -49,11 +49,11 @@ Feature: DAppConnector - Common Scenario: Authorize app functions as expected when the user chooses 'Always' When I open test DApp And I see DApp authorization window - And I click "Authorize" button in DApp authorization window - And I click "Always" button in DApp authorization window + And I click 'Authorize' button in DApp authorization window + And I click 'Always' button in DApp authorization window And I switch to window with Lace And I am on Tokens extended page - And I save token: "Cardano" balance + And I save token: 'Cardano' balance And I close all remaining tabs except current one And I open test DApp Then I see Lace wallet info in DApp when connected @@ -61,15 +61,15 @@ Feature: DAppConnector - Common @LW-3807 @Mainnet @Pending @issue=LW-11988 - Scenario: "No wallet" modal displayed after trying to connect Dapp when there is no wallet + Scenario: 'No wallet' modal displayed after trying to connect Dapp when there is no wallet Given I remove wallet - And I accept analytics banner on "Get started" page - And "Get started" page is displayed + And I accept analytics banner on 'Get started' page + And 'Get started' page is displayed When I open test DApp Then I see DApp no wallet page - When I click "Create or restore a wallet" button in DApp no wallet modal + When I click 'Create or restore a wallet' button in DApp no wallet modal And I switch to window with Lace - Then "Get started" page is displayed + Then 'Get started' page is displayed @LW-3758 @Mainnet @Pending Scenario: Unlock Dapp page is displayed when wallet is locked, wallet can be unlocked @@ -77,30 +77,30 @@ Feature: DAppConnector - Common When I open test DApp Then I see DApp unlock page When I fill password input with correct password - And I click "Unlock" button on unlock screen + And I click 'Unlock' button on unlock screen Then I see DApp authorization window @LW-7082 @Mainnet @Pending - Scenario: "Forgot password" click and cancel on DApp wallet unlock page + Scenario: 'Forgot password' click and cancel on DApp wallet unlock page Given I lock my wallet When I open test DApp Then I see DApp unlock page - When I click on "Forgot password?" button on unlock screen - Then I see "Forgot password?" modal - And I click on "Cancel" button on "Forgot password?" modal + When I click on 'Forgot password?' button on unlock screen + Then I see 'Forgot password?' modal + And I click on 'Cancel' button on 'Forgot password?' modal Then I see DApp unlock page @LW-7083 @Mainnet @Pending - Scenario: "Forgot password" click and proceed on DApp wallet unlock page + Scenario: 'Forgot password' click and proceed on DApp wallet unlock page Given I lock my wallet When I open test DApp Then I see DApp unlock page - When I click on "Forgot password?" button on unlock screen - Then I see "Forgot password?" modal - And I click on "Proceed" button on "Forgot password?" modal + When I click on 'Forgot password?' button on unlock screen + Then I see 'Forgot password?' modal + And I click on 'Proceed' button on 'Forgot password?' modal Then I see DApp no wallet page When I switch to tab with restore wallet process - Then "Wallet setup" page is displayed + Then 'Wallet setup' page is displayed @LW-4060 Scenario Outline: DApp connector window displayed in mode @@ -108,12 +108,12 @@ Feature: DAppConnector - Common And I set theme switcher to mode When I open test DApp Then I see DApp authorization window in mode - And I click "Authorize" button in DApp authorization window - And I click "Only once" button in DApp authorization window - When I click "Send ADA" "Run" button in test DApp - Then I see DApp connector "Confirm transaction" page in mode - When I click "Confirm" button on "Confirm transaction" page - Then I see DApp connector "Password" page in mode + And I click 'Authorize' button in DApp authorization window + And I click 'Only once' button in DApp authorization window + When I click 'Send ADA' 'Run' button in test DApp + Then I see DApp connector 'Confirm transaction' page in mode + When I click 'Confirm' button on 'Confirm transaction' page + Then I see DApp connector 'Password' page in mode Examples: | theme | | light | @@ -125,38 +125,38 @@ Feature: DAppConnector - Common And I set theme switcher to light mode When I open test DApp Then I see DApp authorization window in light mode - And I click "Authorize" button in DApp authorization window - And I click "Only once" button in DApp authorization window + And I click 'Authorize' button in DApp authorization window + And I click 'Only once' button in DApp authorization window And I switch to window with Lace And I close all remaining tabs except current one And I set theme switcher to dark mode - And I open and authorize test DApp with "Only once" setting - When I click "Send ADA" "Run" button in test DApp - Then I see DApp connector "Confirm transaction" page in dark mode - When I click "Confirm" button on "Confirm transaction" page - Then I see DApp connector "Password" page in dark mode + And I open and authorize test DApp with 'Only once' setting + When I click 'Send ADA' 'Run' button in test DApp + Then I see DApp connector 'Confirm transaction' page in dark mode + When I click 'Confirm' button on 'Confirm transaction' page + Then I see DApp connector 'Password' page in dark mode @LW-4071 - Scenario: DApp remains authorised after choosing "Always" and removing & restoring a wallet - Given I open and authorize test DApp with "Always" setting + Scenario: DApp remains authorised after choosing 'Always' and removing & restoring a wallet + Given I open and authorize test DApp with 'Always' setting And I switch to window with Lace And I close all remaining tabs except current one And I remove wallet - Then I accept analytics banner on "Get started" page + Then I accept analytics banner on 'Get started' page And I restore a wallet And I disable showing multi-address discovery modal And Wallet is synced - And I switch network to: "Preprod" in extended mode + And I switch network to: 'Preprod' in extended mode And Wallet is synced And I open settings from header menu - When I click on "Authorized DApps" setting + When I click on 'Authorized DApps' setting Then I see test DApp on the Authorized DApps list When I open test DApp Then I don't see DApp window @LW-4070 Scenario: Authorize Dapp with 'Only once' and leaving/closing DApp - Given I open and authorize test DApp with "Only once" setting + Given I open and authorize test DApp with 'Only once' setting And I switch to window with DApp And I close all remaining tabs except current one When I open test DApp @@ -173,32 +173,32 @@ Feature: DAppConnector - Common @LW-9481 @Mainnet Scenario: Signing data / no errors in console Given I am on Tokens extended page - And I save token: "Cardano" balance - And I open and authorize test DApp with "Only once" setting + And I save token: 'Cardano' balance + And I open and authorize test DApp with 'Only once' setting And I enable console logs collection - When I click "Sign data" button in test DApp - Then I see DApp connector Sign data "Confirm transaction" page - And I click "Confirm" button on "Confirm transaction" page - And I see DApp connector "Sign transaction" page + When I click 'Sign data' button in test DApp + Then I see DApp connector Sign data 'Confirm transaction' page + And I click 'Confirm' button on 'Confirm transaction' page + And I see DApp connector 'Sign transaction' page And I fill correct password - And I click "Confirm" button on "Sign transaction" page - And I see DApp connector "All done" page from "data sign" + And I click 'Confirm' button on 'Sign transaction' page + And I see DApp connector 'All done' page from 'data sign' # And I verify there are no errors in console logs # TODO: unblock when LW-12157 is resolved And I see Lace wallet info in DApp when connected @LW-11372 Scenario: Test for bug LW-7832 - Wrong url displayed in DApp transaction confirmation screen - When I open and authorize test DApp with "Only once" setting - And I click "Send ADA" "Run" button in test DApp + When I open and authorize test DApp with 'Only once' setting + And I click 'Send ADA' 'Run' button in test DApp And I switch to window with Lace - Then I see DApp connector "Confirm transaction" page with all UI elements and with following data in "Transaction Summary" section: + Then I see DApp connector 'Confirm transaction' page with all UI elements and with following data in 'Transaction Summary' section: | -3.00 tADA - FEE | @LW-12422 @Mainnet Scenario Outline: CIP-0142 getNetworkMagic returns when network is - Given I open and authorize test DApp with "Only once" setting + Given I open and authorize test DApp with 'Only once' setting And I switch to window with Lace - And I switch network to: "" in extended mode + And I switch network to: '' in extended mode And I switch to window with DApp Then I verify network magic is for Examples: diff --git a/packages/e2e-tests/src/features/DAppConnectorExtended.feature b/packages/e2e-tests/src/features/DAppConnectorExtended.feature index ca02f0442c..0f0fcb5d58 100644 --- a/packages/e2e-tests/src/features/DAppConnectorExtended.feature +++ b/packages/e2e-tests/src/features/DAppConnectorExtended.feature @@ -8,52 +8,52 @@ Feature: DAppConnector - Extended view @LW-6688 @Testnet @Mainnet Scenario: Extended view - Authorized DApps section - empty state Given I open settings from header menu - When I click on "Authorized DApps" setting - Then I see "Authorized DApps" section empty state in extended mode + When I click on 'Authorized DApps' setting + Then I see 'Authorized DApps' section empty state in extended mode @LW-6689 @Smoke @Testnet @Mainnet - Scenario: Extended view - Authorized DApp is displayed in Lace Authorized DApps section after clicking "Always" - Given I open and authorize test DApp with "Always" setting + Scenario: Extended view - Authorized DApp is displayed in Lace Authorized DApps section after clicking 'Always' + Given I open and authorize test DApp with 'Always' setting And I switch to window with Lace And I open settings from header menu - When I click on "Authorized DApps" setting + When I click on 'Authorized DApps' setting Then I see test DApp on the Authorized DApps list @LW-6690 @Testnet @Mainnet - Scenario: Extended View - Authorized DApp is not displayed in Lace Authorized DApps section after clicking "Once" - Given I open and authorize test DApp with "Only once" setting + Scenario: Extended View - Authorized DApp is not displayed in Lace Authorized DApps section after clicking 'Once' + Given I open and authorize test DApp with 'Only once' setting And I switch to window with Lace And I open settings from header menu - When I click on "Authorized DApps" setting - Then I see "Authorized DApps" section empty state in extended mode + When I click on 'Authorized DApps' setting + Then I see 'Authorized DApps' section empty state in extended mode @LW-6879 @Testnet @Mainnet Scenario: Extended view - Remove authorized DApp and cancel, DApp remains authorized - Given I open and authorize test DApp with "Always" setting + Given I open and authorize test DApp with 'Always' setting And I switch to window with Lace And I close all remaining tabs except current one And I open settings from header menu - And I click on "Authorized DApps" setting + And I click on 'Authorized DApps' setting And I see test DApp on the Authorized DApps list When I de-authorize test DApp in extended mode Then I see DApp removal confirmation window - When I click "Back" button in DApp removal confirmation modal + When I click 'Back' button in DApp removal confirmation modal Then I see test DApp on the Authorized DApps list When I open test DApp Then I don't see DApp window @LW-6880 @Testnet @Mainnet Scenario: Extended view - Remove authorized DApp, DApp requires authorization - Given I open and authorize test DApp with "Always" setting + Given I open and authorize test DApp with 'Always' setting And I switch to window with Lace And I close all remaining tabs except current one And I open settings from header menu - And I click on "Authorized DApps" setting + And I click on 'Authorized DApps' setting And I see test DApp on the Authorized DApps list When I de-authorize test DApp in extended mode Then I see DApp removal confirmation window - When I click "Disconnect DApp" button in DApp removal confirmation modal - Then I see "Authorized DApps" section empty state in extended mode + When I click 'Disconnect DApp' button in DApp removal confirmation modal + Then I see 'Authorized DApps' section empty state in extended mode When I open test DApp Then I see DApp authorization window And I see Lace wallet info in DApp when not connected diff --git a/packages/e2e-tests/src/features/DAppConnectorPopup.feature b/packages/e2e-tests/src/features/DAppConnectorPopup.feature index f933713f84..d851b9f74d 100644 --- a/packages/e2e-tests/src/features/DAppConnectorPopup.feature +++ b/packages/e2e-tests/src/features/DAppConnectorPopup.feature @@ -8,51 +8,51 @@ Feature: DAppConnector - Popup view @LW-6685 @Testnet @Mainnet Scenario: Popup view - Authorized DApps section - empty state Given I open settings from header menu - When I click on "Authorized DApps" setting - Then I see "Authorized DApps" section empty state in popup mode + When I click on 'Authorized DApps' setting + Then I see 'Authorized DApps' section empty state in popup mode @LW-6686 @Testnet @Mainnet @skip(browserName='firefox') @issue=LW-12440 - Scenario: Popup view - Authorized DApp is displayed in Lace Authorized DApps section after clicking "Always" - Given I open and authorize test DApp with "Always" setting + Scenario: Popup view - Authorized DApp is displayed in Lace Authorized DApps section after clicking 'Always' + Given I open and authorize test DApp with 'Always' setting And I switch to window with Lace And I open settings from header menu - When I click on "Authorized DApps" setting + When I click on 'Authorized DApps' setting Then I see test DApp on the Authorized DApps list @LW-6687 @Testnet @Mainnet @skip(browserName='firefox') @issue=LW-12440 - Scenario: Popup View - Authorized DApp is not displayed in Lace Authorized DApps section after clicking "Once" - Given I open and authorize test DApp with "Only once" setting + Scenario: Popup View - Authorized DApp is not displayed in Lace Authorized DApps section after clicking 'Once' + Given I open and authorize test DApp with 'Only once' setting And I switch to window with Lace And I open settings from header menu - When I click on "Authorized DApps" setting - Then I see "Authorized DApps" section empty state in popup mode + When I click on 'Authorized DApps' setting + Then I see 'Authorized DApps' section empty state in popup mode @LW-6881 @Testnet @Mainnet Scenario: Popup view - Remove authorized DApp and cancel, DApp remains authorized - Given I open and authorize test DApp with "Always" setting + Given I open and authorize test DApp with 'Always' setting And I switch to window with Lace And I close all remaining tabs except current one And I open settings from header menu - And I click on "Authorized DApps" setting + And I click on 'Authorized DApps' setting And I see test DApp on the Authorized DApps list When I de-authorize test DApp in popup mode Then I see DApp removal confirmation window - When I click "Back" button in DApp removal confirmation modal + When I click 'Back' button in DApp removal confirmation modal Then I see test DApp on the Authorized DApps list When I open test DApp Then I don't see DApp window @LW-6882 @Testnet @Mainnet Scenario: Popup view - Remove authorized DApp, DApp requires authorization - Given I open and authorize test DApp with "Always" setting + Given I open and authorize test DApp with 'Always' setting And I switch to window with Lace And I close all remaining tabs except current one And I open settings from header menu - And I click on "Authorized DApps" setting + And I click on 'Authorized DApps' setting And I see test DApp on the Authorized DApps list When I de-authorize test DApp in popup mode Then I see DApp removal confirmation window - When I click "Disconnect DApp" button in DApp removal confirmation modal - Then I see "Authorized DApps" section empty state in popup mode + When I click 'Disconnect DApp' button in DApp removal confirmation modal + Then I see 'Authorized DApps' section empty state in popup mode When I open test DApp Then I see DApp authorization window diff --git a/packages/e2e-tests/src/features/DAppExplorerExtended.feature b/packages/e2e-tests/src/features/DAppExplorerExtended.feature index 51f1be8738..e3b1229e8c 100644 --- a/packages/e2e-tests/src/features/DAppExplorerExtended.feature +++ b/packages/e2e-tests/src/features/DAppExplorerExtended.feature @@ -19,9 +19,9 @@ Feature: DApp Explorer - extended view @issue=LW-12569 Scenario Outline: Extended View - DApp Explorer - filter by category When I navigate to DApps extended page - And I click on "" DApp category - Then DApps page label matches selected "" category - Then only DApps matching "" are displayed + And I click on '' DApp category + Then DApps page label matches selected '' category + Then only DApps matching '' are displayed Examples: | category | | Games | @@ -37,16 +37,16 @@ Feature: DApp Explorer - extended view @issue=LW-12569 Scenario Outline: Extended View - DApp Explorer - open DApp details When I navigate to DApps extended page - And I click on "" DApp card - Then "" DApp details drawer is displayed + And I click on '' DApp card + Then '' DApp details drawer is displayed When I click on DApp URL button - Then New tab with url containing "" is opened + Then New tab with url containing '' is opened Examples: | dapp_name | dapp_url | | DexHunter | https://app.dexhunter.io/ | @LW-12320 - Scenario: Extended View - "No DApps available" when no connection with DApp Radar + Scenario: Extended View - 'No DApps available' when no connection with DApp Radar When I am in the offline network mode And I navigate to DApps extended page - Then "No DApps available" message is displayed + Then 'No DApps available' message is displayed diff --git a/packages/e2e-tests/src/features/DAppExplorerPopup.feature b/packages/e2e-tests/src/features/DAppExplorerPopup.feature index 1edc587d0e..1f17045a45 100644 --- a/packages/e2e-tests/src/features/DAppExplorerPopup.feature +++ b/packages/e2e-tests/src/features/DAppExplorerPopup.feature @@ -7,5 +7,5 @@ Feature: DApp Explorer - popup view @LW-12106 Scenario: Popup View - DApp Explorer - open and redirect to extended mode - When I click on "DApps" button + When I click on 'DApps' button Then the DApps page is displayed on a new tab in extended view diff --git a/packages/e2e-tests/src/features/EmptyStatesExtended.feature b/packages/e2e-tests/src/features/EmptyStatesExtended.feature index 3decfb3983..510b3802bd 100644 --- a/packages/e2e-tests/src/features/EmptyStatesExtended.feature +++ b/packages/e2e-tests/src/features/EmptyStatesExtended.feature @@ -9,53 +9,53 @@ Feature: Empty states And Tokens counter matches the number of wallet tokens Then I see empty state banner for Tokens page in extended mode And I do not see CoinGecko credits - When I click "Copy" button on empty state banner - Then I see a toast with text: "Copied to clipboard" + When I click 'Copy' button on empty state banner + Then I see a toast with text: 'Copied to clipboard' @LW-2516 @LW-7236 Scenario: Extended View - NFTs empty state When I navigate to NFTs extended page Then I see empty state banner for NFTs page in extended mode - And I do not see "Create folder" button on NFTs page in extended mode - When I click "Copy" button on empty state banner - Then I see a toast with text: "Copied to clipboard" + And I do not see 'Create folder' button on NFTs page in extended mode + When I click 'Copy' button on empty state banner + Then I see a toast with text: 'Copied to clipboard' @LW-4445 @Smoke Scenario: Extended View - Transactions empty state When I navigate to Activity extended page Then I see empty state banner for Transactions page in extended mode - When I click "Copy" button on empty state banner - Then I see a toast with text: "Copied to clipboard" + When I click 'Copy' button on empty state banner + Then I see a toast with text: 'Copied to clipboard' @LW-8447 Scenario: Extended View - Staking empty state And I navigate to Staking extended page Then I see empty state banner for Staking page in extended mode - When I click "Copy" button on empty state banner - Then I see a toast with text: "Copied to clipboard" + When I click 'Copy' button on empty state banner + Then I see a toast with text: 'Copied to clipboard' @LW-3746 Scenario: Extended-view - verify that MAX button is hidden when user has no tokens available in the wallet - When I click "Send" button on page header - Then the "MAX" button is not displayed + When I click 'Send' button on page header + Then the 'MAX' button is not displayed @LW-5139 Scenario: Extended-view - Empty wallet - Send - Empty state in token selector - Tokens tab - When I click "Send" button on page header - And click on the coin selector for "tADA" asset in bundle 1 - Then "You don't have any tokens" message is displayed inside asset selector + When I click 'Send' button on page header + And click on the coin selector for 'tADA' asset in bundle 1 + Then 'You don't have any tokens' message is displayed inside asset selector @LW-5140 Scenario: Extended-view - Empty wallet - Send - Empty state in token selector - NFTs tab - When I click "Send" button on page header - And click on the coin selector for "tADA" asset in bundle 1 + When I click 'Send' button on page header + And click on the coin selector for 'tADA' asset in bundle 1 And click on the NFTs button in the coin selector dropdown - Then "You don't have any NFTs to send" message is displayed inside asset selector + Then 'You don't have any NFTs to send' message is displayed inside asset selector @LW-5521 Scenario: Extended View - Settings - Not enough Ada for Collateral When I open settings from header menu - And I click on "Collateral" setting + And I click on 'Collateral' setting Then Collateral drawer with not enough ADA error is displayed @LW-6874 @@ -63,7 +63,7 @@ Feature: Empty states Then Eye icon is not displayed on Tokens page @LW-12031 - Scenario: Extended View - "Delegate your voting power" banner is not displayed if user has no funds + Scenario: Extended View - 'Delegate your voting power' banner is not displayed if user has no funds When I navigate to Staking extended page - Then "Delegate your voting power" banner is not displayed + Then 'Delegate your voting power' banner is not displayed diff --git a/packages/e2e-tests/src/features/EmptyStatesPopup.feature b/packages/e2e-tests/src/features/EmptyStatesPopup.feature index d06f852ee7..a284dbf173 100644 --- a/packages/e2e-tests/src/features/EmptyStatesPopup.feature +++ b/packages/e2e-tests/src/features/EmptyStatesPopup.feature @@ -8,35 +8,35 @@ Feature: Empty states Scenario: Popup View - Tokens empty state Then I see empty state banner for Tokens page in popup mode And I do not see CoinGecko credits - When I click "Copy" button on empty state banner - Then I see a toast with text: "Copied to clipboard" + When I click 'Copy' button on empty state banner + Then I see a toast with text: 'Copied to clipboard' @LW-2517 @LW-7239 Scenario: Popup View - NFTs empty state When I navigate to NFTs popup page Then I see empty state banner for NFTs page in popup mode - And I do not see "Create folder" button on NFTs page in popup mode - When I click "Copy" button on empty state banner - Then I see a toast with text: "Copied to clipboard" + And I do not see 'Create folder' button on NFTs page in popup mode + When I click 'Copy' button on empty state banner + Then I see a toast with text: 'Copied to clipboard' @LW-4448 Scenario: Popup View - Transactions empty state When I navigate to Activity popup page Then I see empty state banner for Transactions page in popup mode - When I click "Copy" button on empty state banner - Then I see a toast with text: "Copied to clipboard" + When I click 'Copy' button on empty state banner + Then I see a toast with text: 'Copied to clipboard' @LW-8470 Scenario: Popup View - Staking empty state And I navigate to Staking popup page Then I see empty state banner for Staking page in popup mode - When I click "Copy" button on empty state banner - Then I see a toast with text: "Copied to clipboard" + When I click 'Copy' button on empty state banner + Then I see a toast with text: 'Copied to clipboard' @LW-5522 Scenario: Popup View - Settings - Not enough Ada for Collateral When I open settings from header menu - And I click on "Collateral" setting + And I click on 'Collateral' setting Then Collateral drawer with not enough ADA error is displayed @LW-6875 @@ -44,6 +44,6 @@ Feature: Empty states Then Eye icon is not displayed on Tokens page @LW-12032 - Scenario: Popup View - "Delegate your voting power" banner is not displayed if user has no funds + Scenario: Popup View - 'Delegate your voting power' banner is not displayed if user has no funds When I navigate to Staking popup page - Then "Delegate your voting power" banner is not displayed + Then 'Delegate your voting power' banner is not displayed diff --git a/packages/e2e-tests/src/features/FiatOnRampOffRampBanxaExtended.feature b/packages/e2e-tests/src/features/FiatOnRampOffRampBanxaExtended.feature index f82cff064a..84037b245e 100644 --- a/packages/e2e-tests/src/features/FiatOnRampOffRampBanxaExtended.feature +++ b/packages/e2e-tests/src/features/FiatOnRampOffRampBanxaExtended.feature @@ -6,55 +6,55 @@ Feature: Fiat On Ramp & Off Ramp - Banxa @LW-10589 Scenario: Fiat On & Off Ramp - Banxa widget is only available on Mainnet - Given I switch network to: "Mainnet" in extended mode + Given I switch network to: 'Mainnet' in extended mode When I navigate to Tokens extended page Then Banxa's widget is displayed - When I switch network to: "Preview" in extended mode + When I switch network to: 'Preview' in extended mode And I navigate to Tokens extended page Then Banxa's widget is not displayed - When I switch network to: "Preprod" in extended mode + When I switch network to: 'Preprod' in extended mode And I navigate to Tokens extended page Then Banxa's widget is not displayed @LW-10590 - Scenario: Fiat On & Off Ramp - Banxa - "Buy ADA" button - click - Given I switch network to: "Mainnet" in extended mode + Scenario: Fiat On & Off Ramp - Banxa - 'Buy ADA' button - click + Given I switch network to: 'Mainnet' in extended mode When I navigate to Tokens extended page - And I click on "Buy ADA" button on Banxa's widget - Then "You're leaving Lace for Banxa" dialog is displayed + And I click on 'Buy ADA' button on Banxa's widget + Then 'You're leaving Lace for Banxa' dialog is displayed @LW-10591 - Scenario: Fiat On & Off Ramp - Banxa - "You’re leaving Lace for Banxa" dialog - Go Back - Given I switch network to: "Mainnet" in extended mode + Scenario: Fiat On & Off Ramp - Banxa - 'You’re leaving Lace for Banxa' dialog - Go Back + Given I switch network to: 'Mainnet' in extended mode When I navigate to Tokens extended page - And I click on "Buy ADA" button on Banxa's widget - And I click on "Go Back" button on "You're leaving Lace for Banxa" dialog - Then "You're leaving Lace for Banxa" dialog is not displayed + And I click on 'Buy ADA' button on Banxa's widget + And I click on 'Go Back' button on 'You're leaving Lace for Banxa' dialog + Then 'You're leaving Lace for Banxa' dialog is not displayed @LW-10592 - Scenario: Fiat On & Off Ramp - Banxa - "You’re leaving Lace for Banxa" dialog - Continue - Given I switch network to: "Mainnet" in extended mode + Scenario: Fiat On & Off Ramp - Banxa - 'You’re leaving Lace for Banxa' dialog - Continue + Given I switch network to: 'Mainnet' in extended mode When I navigate to Tokens extended page - And I click on "Buy ADA" button on Banxa's widget - And I click on "Continue" button on "You're leaving Lace for Banxa" dialog + And I click on 'Buy ADA' button on Banxa's widget + And I click on 'Continue' button on 'You're leaving Lace for Banxa' dialog Then Banxa's transaction page is opened in a new tab @LW-10598 Scenario: Fiat On & Off Ramp - Banxa - widget - screen width <= 1280px - Given I switch network to: "Mainnet" in extended mode + Given I switch network to: 'Mainnet' in extended mode When I navigate to Tokens extended page And I resize the window to a width of: 1281 and a height of: 1080 Then Banxa's widget is displayed When I resize the window to a width of: 1280 and a height of: 1080 Then Banxa's widget is not displayed And Banxa's small component is displayed over tokens - When I click on "Buy ADA" button on small Banxa's widget - Then "You're leaving Lace for Banxa" dialog is displayed + When I click on 'Buy ADA' button on small Banxa's widget + Then 'You're leaving Lace for Banxa' dialog is displayed @LW-10625 Scenario: Fiat On & Off Ramp - Banxa - Banxa's website link - click - Given I switch network to: "Mainnet" in extended mode + Given I switch network to: 'Mainnet' in extended mode When I navigate to Tokens extended page - And I click on "Buy ADA" button on Banxa's widget - And I click on "Banxa's website" link on Banxa's widget + And I click on 'Buy ADA' button on Banxa's widget + And I click on 'Banxa's website' link on Banxa's widget Then Banxa's website is displayed diff --git a/packages/e2e-tests/src/features/FiatOnRampOffRampBanxaPopup.feature b/packages/e2e-tests/src/features/FiatOnRampOffRampBanxaPopup.feature index beec452cad..6c53b2b5c9 100644 --- a/packages/e2e-tests/src/features/FiatOnRampOffRampBanxaPopup.feature +++ b/packages/e2e-tests/src/features/FiatOnRampOffRampBanxaPopup.feature @@ -6,6 +6,6 @@ Feature: Fiat On Ramp & Off Ramp - Banxa @LW-10597 Scenario: Fiat On & Off Ramp - Banxa - widget not visible in popup mode - Given I switch network to: "Mainnet" in popup mode + Given I switch network to: 'Mainnet' in popup mode When I navigate to Tokens popup page Then Banxa's widget is not displayed diff --git a/packages/e2e-tests/src/features/ForgotPassword.feature b/packages/e2e-tests/src/features/ForgotPassword.feature index 9aa33362a2..9a0a0e9b9f 100644 --- a/packages/e2e-tests/src/features/ForgotPassword.feature +++ b/packages/e2e-tests/src/features/ForgotPassword.feature @@ -5,47 +5,47 @@ Feature: Forgot password Given Lace is ready for test @LW-2758 - Scenario: Unlock page - "Forgot password?" button click + Scenario: Unlock page - 'Forgot password?' button click Given I am on lock screen And I navigate to home page on popup view And I see unlock wallet screen - When I click on "Forgot password?" button on unlock screen - Then I see "Forgot password?" modal + When I click on 'Forgot password?' button on unlock screen + Then I see 'Forgot password?' modal @LW-2762 - Scenario: "Forgot password?" modal - "Cancel" button click + Scenario: 'Forgot password?' modal - 'Cancel' button click Given I am on lock screen And I navigate to home page on popup view And I see unlock wallet screen - When I click on "Forgot password?" button on unlock screen - And I click on "Cancel" button on "Forgot password?" modal + When I click on 'Forgot password?' button on unlock screen + And I click on 'Cancel' button on 'Forgot password?' modal Then I see unlock wallet screen @LW-2458 - Scenario: "Forgot password?" modal - "Proceed" button click + Scenario: 'Forgot password?' modal - 'Proceed' button click Given I am on lock screen And I navigate to home page on popup view And I see unlock wallet screen - When I click on "Forgot password?" button on unlock screen - And I click on "Proceed" button on "Forgot password?" modal + When I click on 'Forgot password?' button on unlock screen + And I click on 'Proceed' button on 'Forgot password?' modal And I switch to tab with restore wallet process - Then "Wallet setup" page is displayed + Then 'Wallet setup' page is displayed And following keys are not present in Local Storage: | lock | | keyAgentData | | lastStaking | @LW-1592 - Scenario Outline: "Forgot password?" - password page - Recommendation for password: , password: , password confirmation: + Scenario Outline: 'Forgot password?' - password page - Recommendation for password: , password: , password confirmation: Given I am on lock screen And I navigate to home page on popup view And I see unlock wallet screen - When I click on "Forgot password?" button on unlock screen - And I click on "Proceed" button on "Forgot password?" modal + When I click on 'Forgot password?' button on unlock screen + And I click on 'Proceed' button on 'Forgot password?' modal And I switch to tab with restore wallet process - And I go to "Wallet setup" page from "Restore" wallet flow and not fill values - # When I enter password: "" and password confirmation: "" - Then Password recommendation: "", complexity bar level: "" and password confirmation error: "" are displayed + And I go to 'Wallet setup' page from 'Restore' wallet flow and not fill values + # When I enter password: '' and password confirmation: '' + Then Password recommendation: '', complexity bar level: '' and password confirmation error: '' are displayed Examples: | password | password_conf | passw_err | complex_bar_lvl | passw_conf_err | | a | | core.walletNameAndPasswordSetupStep.firstLevelPasswordStrengthFeedback | 1 | empty | @@ -55,48 +55,48 @@ Feature: Forgot password | N_8J@bne87A | N_8J@bne87 | empty | 4 | core.walletSetupRegisterStep.noMatchPassword | @LW-2354 - Scenario: "Forgot password?" - mnemonic verification - wrong mnemonic + Scenario: 'Forgot password?' - mnemonic verification - wrong mnemonic Given I am on lock screen And I navigate to home page on popup view And I see unlock wallet screen - When I click on "Forgot password?" button on unlock screen - And I click on "Proceed" button on "Forgot password?" modal + When I click on 'Forgot password?' button on unlock screen + And I click on 'Proceed' button on 'Forgot password?' modal And I switch to tab with restore wallet process - Then "Wallet setup" page is displayed - # When I enter password: "N_8J@bne87A" and password confirmation: "N_8J@bne87A" - And I click "Next" button during wallet setup - When I add characters "asd" in word 7 - Then "Next" button is disabled during onboarding process + Then 'Wallet setup' page is displayed + # When I enter password: 'N_8J@bne87A' and password confirmation: 'N_8J@bne87A' + And I click 'Next' button during wallet setup + When I add characters 'asd' in word 7 + Then 'Next' button is disabled during onboarding process @LW-2446 - Scenario: "Forgot password?" - mnemonic verification - back button click + Scenario: 'Forgot password?' - mnemonic verification - back button click Given I am on lock screen And I navigate to home page on popup view And I see unlock wallet screen - When I click on "Forgot password?" button on unlock screen - And I click on "Proceed" button on "Forgot password?" modal + When I click on 'Forgot password?' button on unlock screen + And I click on 'Proceed' button on 'Forgot password?' modal And I switch to tab with restore wallet process - Then "Wallet setup" page is displayed - # When I enter password: "N_8J@bne87A" and password confirmation: "N_8J@bne87A" - And I click "Next" button during wallet setup - Then "Mnemonic verification" page is displayed from "Forgot password" flow with 24 words - And I enter 24 correct mnemonic words on "Mnemonic verification" page - And I click "Back" button during wallet setup - Then "Wallet setup" page is displayed + Then 'Wallet setup' page is displayed + # When I enter password: 'N_8J@bne87A' and password confirmation: 'N_8J@bne87A' + And I click 'Next' button during wallet setup + Then 'Mnemonic verification' page is displayed from 'Forgot password' flow with 24 words + And I enter 24 correct mnemonic words on 'Mnemonic verification' page + And I click 'Back' button during wallet setup + Then 'Wallet setup' page is displayed @LW-2489 - Scenario Outline: "Forgot password?" - cancel restoration flow - page + Scenario Outline: 'Forgot password?' - cancel restoration flow - page Given I am on lock screen And I navigate to home page on popup view And I see unlock wallet screen - When I click on "Forgot password?" button on unlock screen - And I click on "Proceed" button on "Forgot password?" modal + When I click on 'Forgot password?' button on unlock screen + And I click on 'Proceed' button on 'Forgot password?' modal And all wallet related data is removed And I switch to tab with restore wallet process # And I am on page of restoration flow - And I leave "Forgot password" flow - And I accept analytics banner on "Get started" page - Then "Get started" page is displayed + And I leave 'Forgot password' flow + And I accept analytics banner on 'Get started' page + Then 'Get started' page is displayed Examples: | expected_page | | password | @@ -105,20 +105,20 @@ Feature: Forgot password # this test should be executed as the last one in this suite # opening onboarding page & closing other tabs breaks webdriver session @LW-2786 @LW-2440 @Smoke - Scenario: "Forgot password?" - happy path + Scenario: 'Forgot password?' - happy path Given I am on lock screen And I navigate to home page on popup view And I see unlock wallet screen - When I click on "Forgot password?" button on unlock screen - And I click on "Proceed" button on "Forgot password?" modal + When I click on 'Forgot password?' button on unlock screen + And I click on 'Proceed' button on 'Forgot password?' modal And I switch to tab with restore wallet process And I close all remaining tabs except current one - Then "Wallet setup" page is displayed - When I go to "Mnemonic verification" page from "Restore" wallet flow and fill values - And I click "Enter wallet" button + Then 'Wallet setup' page is displayed + When I go to 'Mnemonic verification' page from 'Restore' wallet flow and fill values + And I click 'Enter wallet' button Then I see LW homepage And I click the menu button - Then header menu displays "TestAutomationWallet" as a wallet name + Then header menu displays 'TestAutomationWallet' as a wallet name When I close header menu And I navigate to Settings extended page Then Analytics toggle is not enabled diff --git a/packages/e2e-tests/src/features/FullExperiencePopup.feature b/packages/e2e-tests/src/features/FullExperiencePopup.feature index e31c9c41c2..07f322526d 100644 --- a/packages/e2e-tests/src/features/FullExperiencePopup.feature +++ b/packages/e2e-tests/src/features/FullExperiencePopup.feature @@ -5,15 +5,15 @@ Feature: Full experience - popup view Given Lace is ready for test @LW-4893 - Scenario: Popup View - hover over "Expand" button - Then "Expand" button is displayed without tooltip - When I hover over "Expand" button - Then "Expand" button is displayed with tooltip + Scenario: Popup View - hover over 'Expand' button + Then 'Expand' button is displayed without tooltip + When I hover over 'Expand' button + Then 'Expand' button is displayed with tooltip @LW-3446 @Pending @issue=LW-12520 - Scenario Outline: Popup View - opened - "Expand" button click + Scenario Outline: Popup View - opened - 'Expand' button click And I am on popup page - When I click on "Expand" button + When I click on 'Expand' button Then the page is displayed on a new tab in extended view Examples: | page | diff --git a/packages/e2e-tests/src/features/HdWalletExtended.feature b/packages/e2e-tests/src/features/HdWalletExtended.feature index dbadd70def..e392977ab4 100644 --- a/packages/e2e-tests/src/features/HdWalletExtended.feature +++ b/packages/e2e-tests/src/features/HdWalletExtended.feature @@ -6,16 +6,16 @@ Feature: HD wallet - extended view @LW-7550 Scenario: Tokens - HD wallet assets discovered in Lace - Then I see total wallet balance in ADA is "10019.03" - And I see tMin token with the ADA balance of "21" + Then I see total wallet balance in ADA is '10019.03' + And I see tMin token with the ADA balance of '21' When I navigate to NFTs extended page - Then I see NFT with name: "DEV 3432" on the NFTs page - And I see NFT with name: "$rinodino" on the NFTs page + Then I see NFT with name: 'DEV 3432' on the NFTs page + And I see NFT with name: '$rinodino' on the NFTs page @LW-7552 Scenario Outline: Transactions - HD wallet transactions displayed correctly - transaction When I navigate to Activity extended page - Then I can see transaction has type "" and value "" + Then I can see transaction has type '' and value '' Examples: | txNumber | txType | txValue | Notes | | 1 | Sent | 17.19 | | diff --git a/packages/e2e-tests/src/features/LockWalletExtended.feature b/packages/e2e-tests/src/features/LockWalletExtended.feature index d3f1ad5b38..6716d2397a 100644 --- a/packages/e2e-tests/src/features/LockWalletExtended.feature +++ b/packages/e2e-tests/src/features/LockWalletExtended.feature @@ -16,23 +16,23 @@ Feature: Wallet locking / unlocking - Extended view Then I see unlock wallet screen @LW-3035 - Scenario: Extended view - "Help and support" button click + Scenario: Extended view - 'Help and support' button click Given I am on lock screen - When I click "Help and support" button on unlock screen - Then I see "Help and support" page URL + When I click 'Help and support' button on unlock screen + Then I see 'Help and support' page URL @LW-3036 @Smoke Scenario: Extended view - Unlocking wallet with correct password opens wallet Given I am on unlock screen - And "Unlock" button is disabled on unlock screen + And 'Unlock' button is disabled on unlock screen When I fill password input with correct password - And "Unlock" button is enabled on unlock screen - And I click "Unlock" button on unlock screen + And 'Unlock' button is enabled on unlock screen + And I click 'Unlock' button on unlock screen Then I see Lace extension main page in popup mode @LW-3037 Scenario: Extended view - Unlocking wallet with incorrect password shows error Given I am on unlock screen When I fill password input with incorrect password - And I click "Unlock" button on unlock screen - Then I see "general.errors.invalidPassword" password error + And I click 'Unlock' button on unlock screen + Then I see 'general.errors.invalidPassword' password error diff --git a/packages/e2e-tests/src/features/LockWalletPopup.feature b/packages/e2e-tests/src/features/LockWalletPopup.feature index 53ee08d869..0f44ac7905 100644 --- a/packages/e2e-tests/src/features/LockWalletPopup.feature +++ b/packages/e2e-tests/src/features/LockWalletPopup.feature @@ -18,15 +18,15 @@ Feature: Wallet locking / unlocking - Popup view @LW-3040 Scenario: Popup view - Unlocking wallet with correct password opens wallet And I am on unlock screen - And "Unlock" button is disabled on unlock screen + And 'Unlock' button is disabled on unlock screen When I fill password input with correct password - And "Unlock" button is enabled on unlock screen - And I click "Unlock" button on unlock screen + And 'Unlock' button is enabled on unlock screen + And I click 'Unlock' button on unlock screen Then I see Lace extension main page in popup mode @LW-3041 Scenario: Popup view - Unlocking wallet with incorrect password shows error And I am on unlock screen When I fill password input with incorrect password - And I click "Unlock" button on unlock screen - Then I see "general.errors.invalidPassword" password error + And I click 'Unlock' button on unlock screen + Then I see 'general.errors.invalidPassword' password error diff --git a/packages/e2e-tests/src/features/MultiDelegationPageExtended.part1.feature b/packages/e2e-tests/src/features/MultiDelegationPageExtended.part1.feature index ec0a3fce4c..e150777b48 100644 --- a/packages/e2e-tests/src/features/MultiDelegationPageExtended.part1.feature +++ b/packages/e2e-tests/src/features/MultiDelegationPageExtended.part1.feature @@ -6,35 +6,35 @@ Feature: Staking Page - Extended View @LW-8931 @Testnet Scenario: Extended View - Start Staking component - Given I save token: "Cardano" balance + Given I save token: 'Cardano' balance When I navigate to Staking extended page Then I see Start Staking page in extended mode @LW-8932 @Testnet Scenario Outline: Extended View - Start staking - step link click Given I am on Start Staking page in extended mode - When I click "Get Started" step link + When I click 'Get Started' step link Then Examples: | link_number | expected_step | | 1 | I see the stake pool search control with appropriate content | - | 2 | New tab with url containing "lace.io/faq?question=what-are-staking-and-delegation" is opened | + | 2 | New tab with url containing 'lace.io/faq?question=what-are-staking-and-delegation' is opened | @LW-8449 @Testnet @Mainnet Scenario: Extended View - Staking search control is displayed with appropriate content When I navigate to Staking extended page And I open Browse pools tab - And I switch to list view on "Browse pools" tab + And I switch to list view on 'Browse pools' tab Then I see the stake pool search control with appropriate content @LW-8448 @Testnet - Scenario Outline: Extended View - Stake pool search for "" returns the expected number of results with appropriate content + Scenario Outline: Extended View - Stake pool search for '' returns the expected number of results with appropriate content When I navigate to Staking extended page And I open Browse pools tab - And I switch to list view on "Browse pools" tab - And I input "" into stake pool search bar + And I switch to list view on 'Browse pools' tab + And I input '' into stake pool search bar Then there are stake pools returned for list view - And (if applicable) first stake pool search result has "" ticker + And (if applicable) first stake pool search result has '' ticker Examples: | stake_pool_search_term | number_of_results | stake_pool_ticker | | a Ocean | 3 | OCEAN | @@ -47,13 +47,13 @@ Feature: Staking Page - Extended View | Abcde | 0 | | @LW-8448 @Mainnet - Scenario Outline: Extended View - Stake pool search for "" returns the expected number of results with appropriate content + Scenario Outline: Extended View - Stake pool search for '' returns the expected number of results with appropriate content When I navigate to Staking extended page And I open Browse pools tab - And I switch to list view on "Browse pools" tab - And I input "" into stake pool search bar + And I switch to list view on 'Browse pools' tab + And I input '' into stake pool search bar Then there are stake pools returned for list view - And (if applicable) first stake pool search result has "" ticker + And (if applicable) first stake pool search result has '' ticker Examples: | stake_pool_search_term | number_of_results | stake_pool_ticker | | a Capital | 1 | ADACT | @@ -66,15 +66,15 @@ Feature: Staking Page - Extended View | Amso | 0 | | @LW-8466 @Testnet @Mainnet - Scenario: Extended View - "About staking" widget + Scenario: Extended View - 'About staking' widget Given I am on Staking extended page - Then I see "About staking" widget with all relevant items + Then I see 'About staking' widget with all relevant items @LW-8465 @Testnet @Mainnet - Scenario Outline: Extended View - "About staking" widget item click - + Scenario Outline: Extended View - 'About staking' widget item click - And I am on Staking extended page - When I click on a widget item with subtitle: "" - Then I see a "" article with title "" + When I click on a widget item with subtitle: '' + Then I see a '' article with title '' Examples: | type | subtitle | | FAQ | What are staking & delegation? | diff --git a/packages/e2e-tests/src/features/MultiDelegationPageExtended.part2.feature b/packages/e2e-tests/src/features/MultiDelegationPageExtended.part2.feature index 9ca74853cf..9ba59fbda5 100644 --- a/packages/e2e-tests/src/features/MultiDelegationPageExtended.part2.feature +++ b/packages/e2e-tests/src/features/MultiDelegationPageExtended.part2.feature @@ -8,77 +8,77 @@ Feature: Staking Page - Extended View Scenario: Extended View - Staking - Show tooltip for columns in browse pools section When I navigate to Staking extended page And I open Browse pools tab - And I switch to list view on "Browse pools" tab - When I hover over "Ticker" column name in stake pool list - Then tooltip for "Ticker" column is displayed - When I hover over "Saturation" column name in stake pool list - Then tooltip for "Saturation" column is displayed + And I switch to list view on 'Browse pools' tab + When I hover over 'Ticker' column name in stake pool list + Then tooltip for 'Ticker' column is displayed + When I hover over 'Saturation' column name in stake pool list + Then tooltip for 'Saturation' column is displayed #TODO: Uncomment when USE_ROS_STAKING_COLUMN=true - #When I hover over "ROS" column name in stake pool list - #Then tooltip for "ROS" column is displayed - When I hover over "Cost" column name in stake pool list - Then tooltip for "Cost" column is displayed - When I hover over "Margin" column name in stake pool list - Then tooltip for "Margin" column is displayed - When I hover over "Blocks" column name in stake pool list - Then tooltip for "Blocks" column is displayed - When I hover over "Pledge" column name in stake pool list - Then tooltip for "Pledge" column is displayed - When I hover over "Live Stake" column name in stake pool list - Then tooltip for "Live Stake" column is displayed + #When I hover over 'ROS' column name in stake pool list + #Then tooltip for 'ROS' column is displayed + When I hover over 'Cost' column name in stake pool list + Then tooltip for 'Cost' column is displayed + When I hover over 'Margin' column name in stake pool list + Then tooltip for 'Margin' column is displayed + When I hover over 'Blocks' column name in stake pool list + Then tooltip for 'Blocks' column is displayed + When I hover over 'Pledge' column name in stake pool list + Then tooltip for 'Pledge' column is displayed + When I hover over 'Live Stake' column name in stake pool list + Then tooltip for 'Live Stake' column is displayed @LW-10414 @Testnet @Mainnet - Scenario: Extended View - Staking - Show tooltips for sorting options in "More options" component + Scenario: Extended View - Staking - Show tooltips for sorting options in 'More options' component When I am on Staking extended page And I open Browse pools tab - And I switch to list view on "Browse pools" tab - When I hover over "Ticker" sorting option from "More options" component - Then tooltip for "Ticker" sorting option is displayed - When I hover over "Saturation" sorting option from "More options" component - Then tooltip for "Saturation" sorting option is displayed + And I switch to list view on 'Browse pools' tab + When I hover over 'Ticker' sorting option from 'More options' component + Then tooltip for 'Ticker' sorting option is displayed + When I hover over 'Saturation' sorting option from 'More options' component + Then tooltip for 'Saturation' sorting option is displayed #TODO: Uncomment when USE_ROS_STAKING_COLUMN=true - #When I hover over "ROS" sorting option from "More options" component - #Then tooltip for "ROS" sorting option is displayed - When I hover over "Cost" sorting option from "More options" component - Then tooltip for "Cost" sorting option is displayed - When I hover over "Margin" sorting option from "More options" component - Then tooltip for "Margin" sorting option is displayed - When I hover over "Produced blocks" sorting option from "More options" component - Then tooltip for "Produced blocks" sorting option is displayed - When I hover over "Pledge" sorting option from "More options" component - Then tooltip for "Pledge" sorting option is displayed - When I hover over "Live Stake" sorting option from "More options" component - Then tooltip for "Live Stake" sorting option is displayed + #When I hover over 'ROS' sorting option from 'More options' component + #Then tooltip for 'ROS' sorting option is displayed + When I hover over 'Cost' sorting option from 'More options' component + Then tooltip for 'Cost' sorting option is displayed + When I hover over 'Margin' sorting option from 'More options' component + Then tooltip for 'Margin' sorting option is displayed + When I hover over 'Produced blocks' sorting option from 'More options' component + Then tooltip for 'Produced blocks' sorting option is displayed + When I hover over 'Pledge' sorting option from 'More options' component + Then tooltip for 'Pledge' sorting option is displayed + When I hover over 'Live Stake' sorting option from 'More options' component + Then tooltip for 'Live Stake' sorting option is displayed @LW-8637 @Testnet @Mainnet Scenario: Extended View - Staking password screen details When I navigate to Staking extended page And I open Overview tab And I open Browse pools tab - And I switch to list view on "Browse pools" tab - And I input "ADA Ocean" into stake pool search bar - And I click on the stake pool with ticker "OCEAN" - And I click on "Stake all on this pool" button on stake pool details drawer - And I click on "Next" button on staking preferences drawer - And I click on "Next" button on staking confirmation drawer + And I switch to list view on 'Browse pools' tab + And I input 'ADA Ocean' into stake pool search bar + And I click on the stake pool with ticker 'OCEAN' + And I click on 'Stake all on this pool' button on stake pool details drawer + And I click on 'Next' button on staking preferences drawer + And I click on 'Next' button on staking confirmation drawer Then staking password drawer is displayed @LW-8445 @Testnet Scenario: Extended View - Selecting stakepool from list opens drawer with appropriate details And I am on Staking extended page And I open Browse pools tab - And I switch to list view on "Browse pools" tab - And I input "ADA Ocean" into stake pool search bar - And I click on the stake pool with ticker "OCEAN" - Then I see stake pool details drawer for "ADA Ocean" stake pool + And I switch to list view on 'Browse pools' tab + And I input 'ADA Ocean' into stake pool search bar + And I click on the stake pool with ticker 'OCEAN' + Then I see stake pool details drawer for 'ADA Ocean' stake pool @LW-8438 @Testnet Scenario: Extended View - Staking - Stakepool details drawer - Close drawer And I am on Staking extended page And I open Browse pools tab - And I switch to list view on "Browse pools" tab - And I input "ADA Ocean" into stake pool search bar - And I click on the stake pool with ticker "OCEAN" + And I switch to list view on 'Browse pools' tab + And I input 'ADA Ocean' into stake pool search bar + And I click on the stake pool with ticker 'OCEAN' And Stake pool details drawer is opened When I close the drawer by clicking close button Then Stake pool details drawer is not opened @@ -87,7 +87,7 @@ Feature: Staking Page - Extended View Scenario: Extended View - Stake pool list item And I am on Staking extended page And I open Browse pools tab - And I switch to list view on "Browse pools" tab + And I switch to list view on 'Browse pools' tab And I wait for stake pool list to be populated Then each stake pool list item contains: checkbox, ticker, saturation, ROS, cost, margin, blocks, pledge and live stake @@ -95,7 +95,7 @@ Feature: Staking Page - Extended View Scenario: Extended View - Stake pool list - display skeleton while loading list elements And I am on Staking extended page And I open Browse pools tab - And I switch to list view on "Browse pools" tab + And I switch to list view on 'Browse pools' tab And I wait for stake pool list to be populated When I scroll down 500 pixels Then stake pool list row skeleton is displayed @@ -106,7 +106,7 @@ Feature: Staking Page - Extended View Scenario: Extended View - Stake pool grid - display skeleton while loading grid cards And I am on Staking extended page And I open Browse pools tab - And I switch to grid view on "Browse pools" tab + And I switch to grid view on 'Browse pools' tab When I scroll down 500 pixels And I scroll down 500 pixels Then stake pool grid card skeleton is displayed @@ -117,7 +117,7 @@ Feature: Staking Page - Extended View Scenario Outline: Extended View - Browse pools - preserve selected pools and view type - - When I am on Staking extended page And I open Browse pools tab - And I switch to view on "Browse pools" tab + And I switch to view on 'Browse pools' tab Then stake pool view is displayed When I select 5 stake pools from view And I save tickers of selected pools in view @@ -136,7 +136,7 @@ Feature: Staking Page - Extended View Scenario: Extended View - Grid - display stake pool cards based on browser width When I am on Staking extended page And I open Browse pools tab - And I switch to grid view on "Browse pools" tab + And I switch to grid view on 'Browse pools' tab Then stake pool grid view is displayed Then I see 4 stake pool cards in a row When I resize the window to a width of: 1660 and a height of: 1080 @@ -152,17 +152,17 @@ Feature: Staking Page - Extended View Scenario Outline: Extended View - Staking - List View - sorting by column - When I am on Staking extended page And I open Browse pools tab - And I switch to list view on "Browse pools" tab + And I switch to list view on 'Browse pools' tab Then stake pool list view is displayed - When I click on stake pools table "" column header - Then sorting indicator is displayed for "" column - And stake pool list rows are sorted by "" in order - When I click on stake pools table "" column header - Then sorting indicator is displayed for "" column - And stake pool list rows are sorted by "" in order - When I click on stake pools table "" column header - Then sorting indicator is displayed for "" column - And stake pool list rows are sorted by "" in order + When I click on stake pools table '' column header + Then sorting indicator is displayed for '' column + And stake pool list rows are sorted by '' in order + When I click on stake pools table '' column header + Then sorting indicator is displayed for '' column + And stake pool list rows are sorted by '' in order + When I click on stake pools table '' column header + Then sorting indicator is displayed for '' column + And stake pool list rows are sorted by '' in order Examples: | column | default_order | modified_order | | Saturation | descending | ascending | diff --git a/packages/e2e-tests/src/features/MultiDelegationPageExtended.part3.feature b/packages/e2e-tests/src/features/MultiDelegationPageExtended.part3.feature index 79afc2e362..c1b3085a75 100644 --- a/packages/e2e-tests/src/features/MultiDelegationPageExtended.part3.feature +++ b/packages/e2e-tests/src/features/MultiDelegationPageExtended.part3.feature @@ -8,38 +8,38 @@ Feature: Staking Page - Extended View @LW-10143 @Testnet @Mainnet Scenario: Extended View - Staking - More options - Sorting options are displayed When I open Browse pools tab - Then "More options" component with stake pool sorting options is displayed + Then 'More options' component with stake pool sorting options is displayed @LW-10139 @LW-10141 @LW-10142 @Testnet @Mainnet Scenario: Extended View - Staking - List View - Stake pool list sorting by ticker (default) When I open Browse pools tab - And I switch to list view on "Browse pools" tab + And I switch to list view on 'Browse pools' tab Then stake pool list view is displayed - And ascending sorting indicator is displayed for "Ticker" column - And stake pool list rows are sorted by "Ticker" in ascending order - When I click on stake pools table "Ticker" column header - Then descending sorting indicator is displayed for "Ticker" column - And stake pool list rows are sorted by "Ticker" in descending order - When I click on stake pools table "Ticker" column header - Then ascending sorting indicator is displayed for "Ticker" column - And stake pool list rows are sorted by "Ticker" in ascending order + And ascending sorting indicator is displayed for 'Ticker' column + And stake pool list rows are sorted by 'Ticker' in ascending order + When I click on stake pools table 'Ticker' column header + Then descending sorting indicator is displayed for 'Ticker' column + And stake pool list rows are sorted by 'Ticker' in descending order + When I click on stake pools table 'Ticker' column header + Then ascending sorting indicator is displayed for 'Ticker' column + And stake pool list rows are sorted by 'Ticker' in ascending order @LW-10145 @LW-10239 @Testnet @Mainnet Scenario Outline: Extended View - Staking - List View - More options - Sorting - sort stake pools by