Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.19.0 #1003

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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/manual-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
WATCH_ONLY_PUBLIC_KEY_HASH: ${{ secrets.WATCH_ONLY_PUBLIC_KEY_HASH }}
WATCH_ONLY_PUBLIC_KEY_HASH_SHORT_FORM: ${{ secrets.WATCH_ONLY_PUBLIC_KEY_HASH_SHORT_FORM }}
CUSTOM_NETWORK_RPC_URL: ${{ secrets.CUSTOM_NETWORK_RPC_URL }}
CUSTOM_NETWORK_SECOND_RPC_URL: ${{ secrets.CUSTOM_NETWORK_SECOND_RPC_URL }}

- name: Install dependencies and code quality
uses: ./.github/workflows/code-quality-check
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/secrets-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ inputs:
required: false
CUSTOM_NETWORK_RPC_URL:
required: false
CUSTOM_NETWORK_SECOND_RPC_URL:
required: false

runs:
using: 'composite'
Expand Down Expand Up @@ -94,4 +96,5 @@ runs:
WATCH_ONLY_PUBLIC_KEY_HASH=${{ inputs.WATCH_ONLY_PUBLIC_KEY_HASH }}
WATCH_ONLY_PUBLIC_KEY_HASH_SHORT_FORM=${{ inputs.WATCH_ONLY_PUBLIC_KEY_HASH_SHORT_FORM }}
CUSTOM_NETWORK_RPC_URL=${{ inputs.CUSTOM_NETWORK_RPC_URL }}
CUSTOM_NETWORK_SECOND_RPC_URL=${{ inputs.CUSTOM_NETWORK_SECOND_RPC_URL }}
EOF
1 change: 1 addition & 0 deletions e2e/.env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ WATCH_ONLY_PUBLIC_KEY_HASH=
WATCH_ONLY_PUBLIC_KEY_HASH_SHORT_FORM=

CUSTOM_NETWORK_RPC_URL=
CUSTOM_NETWORK_SECOND_RPC_URL=
1 change: 0 additions & 1 deletion e2e/src/features/address-book.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Feature: Address book


@address_book
@dev
Scenario: As a user, I'd like to remove contact [Positive]
Given I have imported an existing account

Expand Down
47 changes: 47 additions & 0 deletions e2e/src/features/create-new-wallet.feature
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,50 @@ Feature: Create a new wallet

Then I am on the Home page



Scenario: As a user, I'd like to create a wallet and pass on-boarding
Given I am on the Welcome page
And I press Create New Wallet button on the Welcome page

And I am on the NewSeedBackup page
And I press Protected Mask on the New Seed Back-up page
And I save my mnemonic
And I press I made Seed Phrase Backup Check Box on the New Seed Back-up page
And I press Next Button on the New Seed Back-up page

And I am on the VerifyMnemonic page
And I verify my mnemonic
And I press Next Button on the New Seed Verify page

And I am on the SetWallet page
And I enter defaultPassword into Password Field on the Register Form page
And I enter defaultPassword into Repeat Password Field on the Register Form page
And I press Analytics Check Box on the Register Form page
And I press Accept Terms Checkbox on the Register Form page
And I press Create Button on the Register Form page
# On-boarding passing
And I am on the OnboardingFirstStep page
And I press Next Button on the Onboarding (First Step) page

And I am on the OnboardingSecondStep page
And I press Next Button on the Onboarding (Second Step) page

And I am on the OnboardingThirdStep page
And I press Next Button on the Onboarding (Third Step) page

And I am on the OnboardingFourthStep page
And I press Done Button on the Onboarding (Fourth Step) page

And I am on the OnboardingCongrats page
And I press Start Button on the Onboarding (Congrats) page

And I am on the OnRumpModal page
And I press Close Button on the On-ramp Modal page

And I am on the NewsletterModal page
And I press Close Button on the Newsletter Modal page

Then I am on the Home page


90 changes: 90 additions & 0 deletions e2e/src/features/custom-network.feature
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,96 @@ Feature: Add Custom Node
Then I check that Custom Test Net node is selected correctly


@custom_node
Scenario: As a user, i'd like to remove added custom network
Given I have imported an existing account
And I press Account Icon on the Header page
And I am on the AccountsDropdown page
And I press Settings Button on the Account Drop-down page

And I am on the Settings page
And I press Networks Button on the Settings page

And I am on the Networks page
# scroll down + adding first custom network
And I scroll 500 pixels on the Networks page
And I enter customTestName into Name Input on the Networks Settings page
And I enter customNetworkRPC into RPC base URL Input on the Networks Settings page
And I press Add Network Button on the Networks Settings page

And I scroll -500 pixels on the Networks page
And I check if added custom network = 'customNetworkRPC' is displayed on 'Current networks' list

# scroll down + adding second custom network
And I scroll 500 pixels on the Networks page

And I enter shortRandomContent into Name Input on the Networks Settings page
And I enter secondCustomNetworkRPC into RPC base URL Input on the Networks Settings page
And I press Add Network Button on the Networks Settings page

And I scroll -500 pixels on the Networks page
And I check if added custom network = 'secondCustomNetworkRPC' is displayed on 'Current networks' list

And I find an added custom network = 'customNetworkRPC' and click to delete it

And I am on the ConfirmationModal page
And I press Ok Button on the Confirmation Modal page
And I check if added custom network = 'customNetworkRPC' is deleted from the 'Current networks' list

# It runs for understanding that other custom networks are not deleted
Then I check if added custom network = 'secondCustomNetworkRPC' is displayed on 'Current networks' list


@custom_node
@dev
Scenario: Validation check on Add Asset page + other checks [Negative]
Given I have imported an existing account

And I press Account Icon on the Header page
And I am on the AccountsDropdown page
And I press Settings Button on the Account Drop-down page

And I am on the Settings page
And I press Networks Button on the Settings page

And I am on the Networks page
And I scroll 500 pixels on the Networks page
# both inputs validation
And I press Add Network Button on the Networks Settings page
And I got the validation-error 'Required' in the Name Input Section on the Networks Settings page
And I got the validation-error 'Required' in the RPC base URL Input Section on the Networks Settings page

And I enter shortRandomContent into Name Input on the Networks Settings page
And I enter shortRandomContent into RPC base URL Input on the Networks Settings page
And I got the validation-error 'Must be a valid URL' in the RPC base URL Input Section on the Networks Settings page

And I clear RPC base URL Input value on the Networks Settings page
And I enter customNetworkRPC into RPC base URL Input on the Networks Settings page
And I press Add Network Button on the Networks Settings page

And I scroll -500 pixels on the Networks page
And I check if added custom network = 'customNetworkRPC' is displayed on 'Current networks' list
And I scroll 500 pixels on the Networks page
# duplicate validation error
And I enter shortRandomContent into Name Input on the Networks Settings page
And I enter customNetworkRPC into RPC base URL Input on the Networks Settings page

And I got the validation-error 'Must be unique' in the RPC base URL Input Section on the Networks Settings page

# adding custom network after validation errors
And I clear Name Input value on the Networks Settings page
And I clear RPC base URL Input value on the Networks Settings page
And I enter customTestName into Name Input on the Networks Settings page
And I enter secondCustomNetworkRPC into RPC base URL Input on the Networks Settings page

And I press Add Network Button on the Networks Settings page
# scroll up
And I scroll -500 pixels on the Networks page

And I check if added custom network = 'customNetworkRPC' is displayed on 'Current networks' list
And I press Selected Network Button on the Header page

And I select Custom Test Net node in the networks drop-down list on the Header page
And I press Temple Logo Icon on the Header page

Then I check that Custom Test Net node is selected correctly
78 changes: 78 additions & 0 deletions e2e/src/features/import-existing-wallet.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,81 @@ Feature: Import existing wallet

Then I am on the Home page



Scenario: As a user, I'd like to import wallet and pass on-boarding [Positive]
Given I am on the Welcome page
And I press Import Existing Wallet button on the Welcome page

And I am on the ImportExistingWallet page
And I enter default mnemonic
And I press Next button on the Import Existing Seed Phrase page

And I am on the SetWallet page
And I enter defaultPassword into Password Field on the Register Form page
And I enter defaultPassword into Repeat Password Field on the Register Form page
And I press Analytics Check Box on the Register Form page
And I press Accept Terms Checkbox on the Register Form page
And I press Import Button on the Register Form page

# On-boarding passing
And I am on the OnboardingFirstStep page
And I press Next Button on the Onboarding (First Step) page

And I am on the OnboardingSecondStep page
And I press Next Button on the Onboarding (Second Step) page

And I am on the OnboardingThirdStep page
And I press Next Button on the Onboarding (Third Step) page

And I am on the OnboardingFourthStep page
And I press Done Button on the Onboarding (Fourth Step) page

And I am on the OnboardingCongrats page
And I press Start Button on the Onboarding (Congrats) page

And I am on the NewsletterModal page
And I press Close Button on the Newsletter Modal page

Then I am on the Home page


@dev
Scenario: As a user, I'd like to switch between onboarding pages and skip it [Negative]
Given I am on the Welcome page
And I press Import Existing Wallet button on the Welcome page

And I am on the ImportExistingWallet page
And I enter default mnemonic
And I press Next button on the Import Existing Seed Phrase page

And I am on the SetWallet page
And I enter defaultPassword into Password Field on the Register Form page
And I enter defaultPassword into Repeat Password Field on the Register Form page
And I press Analytics Check Box on the Register Form page
And I press Accept Terms Checkbox on the Register Form page
And I press Import Button on the Register Form page

# On-boarding passing
And I am on the OnboardingFirstStep page
And I press Next Button on the Onboarding (First Step) page

And I am on the OnboardingSecondStep page
And I press Next Button on the Onboarding (Second Step) page

And I am on the OnboardingThirdStep page
And I press Next Button on the Onboarding (Third Step) page

And I am on the OnboardingFourthStep page
# Returning to the previous page
And I press Back Button on the Page Layout page

And I am on the OnboardingThirdStep page
And I press Skip Button on the Page Layout page

And I am on the NewsletterModal page
And I press Close Button on the Newsletter Modal page

Then I am on the Home page


36 changes: 24 additions & 12 deletions e2e/src/features/manage-tokens-collectibles.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Feature: Manage tokens + collectibles

Scenario: As a user, I'd like to add tokens and collectibles to my wallet [Positive]
Given I have imported an existing account
And I press Manage Button on the Assets page
And I press Manage Dropdown Button on the Assets page
And I press Manage Button on the Assets (Manage Dropdown) page

And I am on the ManageAssetsTokens page
And I press Add Asset Button on the Manage Assets(Tokens) page
Expand All @@ -25,11 +26,13 @@ Feature: Manage tokens + collectibles


@manage_assets
@dev
Scenario: As a user, I'd like to hide and delete tokens [Positive]
Given I have imported an existing account
# hardcoded token

And I press Manage Button on the Assets page
And I press Manage Dropdown Button on the Assets page
And I press Manage Button on the Assets (Manage Dropdown) page

And I am on the ManageAssetsTokens page
And I check that kUSD is in the 'Manage Tokens' list
Expand All @@ -43,7 +46,8 @@ Feature: Manage tokens + collectibles

And I check the token with name Kolibri is NOT displayed on the Home page
And I scroll -600 pixels on the Home page
And I press Manage Button on the Assets page
And I press Manage Dropdown Button on the Assets page
And I press Manage Button on the Assets (Manage Dropdown) page

And I am on the ManageAssetsTokens page
And I check that kUSD is in the 'Manage Tokens' list
Expand All @@ -57,7 +61,8 @@ Feature: Manage tokens + collectibles
And I check the token with name Kolibri is displayed on the Home page

# delete token
And I press Manage Button on the Assets page
And I press Manage Dropdown Button on the Assets page
And I press Manage Button on the Assets (Manage Dropdown) page

And I am on the ManageAssetsTokens page
And I check that kUSD is in the 'Manage Tokens' list
Expand All @@ -80,7 +85,8 @@ Feature: Manage tokens + collectibles
Scenario: Validation check on Add Asset page + other checks [Negative]
Given I have imported an existing account

And I press Manage Button on the Assets page
And I press Manage Dropdown Button on the Assets page
And I press Manage Button on the Assets (Manage Dropdown) page
# empty state check
And I am on the ManageAssetsTokens page
And I enter shortRandomContent into Search Assets Input on the Manage Assets page
Expand All @@ -107,27 +113,33 @@ Feature: Manage tokens + collectibles
And I clear Asset ID Input value on the Add Asset page
And I wait until other inputs load after entering a token address

# Symbol input. TODO: Need to be updated after validation fix TW-1057
# Symbol input.
And I clear Symbol Input value on the Add Asset page
And I got the validation-error 'Required' in the Symbol Input Section on the Add Asset page
And I enter longRandomContent into Symbol Input on the Add Asset page
And I got the validation-error 'Only a-z, A-Z, 0-9 chars allowed, 2-5 length' in the Symbol Input Section on the Add Asset page
And I got the validation-error 'Only a-z, A-Z, 0-9 chars allowed, 2-10 length' in the Symbol Input Section on the Add Asset page
And I clear Symbol Input value on the Add Asset page
And I enter сyrillicContent into Symbol Input on the Add Asset page
And I got the validation-error 'Only a-z, A-Z, 0-9 chars allowed, 2-10 length' in the Symbol Input Section on the Add Asset page
And I clear Symbol Input value on the Add Asset page

And I enter customTokenSymbol into Symbol Input on the Add Asset page
And I scroll 100 pixels on the AddAsset page

# Name input. TODO: Need to be updated after validation fix TW-1057
# Name input.
And I clear Name Input value on the Add Asset page
And I got the validation-error 'Required' in the Name Input Section on the Add Asset page
And I enter amount_1 into Name Input on the Add Asset page
And I got the validation-error 'No special characters, 3-50 length' in the Name Input Section on the Add Asset page
# to reach 50 symbols length
And I enter longRandomContent into Name Input on the Add Asset page
And I got the validation-error 'No special characters, 3-25 length' in the Name Input Section on the Add Asset page

And I enter longRandomContent into Name Input on the Add Asset page
And I got the validation-error 'No special characters, 3-50 length' in the Name Input Section on the Add Asset page
And I got the validation-error 'No special characters, 3-25 length' in the Name Input Section on the Add Asset page
And I clear Name Input value on the Add Asset page

And I enter specialSymbolsContent into Name Input on the Add Asset page
And I got the validation-error 'No special characters, 3-25 length' in the Name Input Section on the Add Asset page
And I clear Name Input value on the Add Asset page

And I enter customTokenName into Name Input on the Add Asset page

# Decimals input (check if the input has right decimals)
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/hooks/before.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Before({ timeout: MEDIUM_TIMEOUT }, async () => {
const page = await BrowserContext.browser.newPage();
await page.setViewport({
height: 800,
width: 800
width: 1300
});
try {
const response = await page.goto(url);
Expand Down
14 changes: 13 additions & 1 deletion e2e/src/page-objects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import { ManageAssetsTokensPage } from 'e2e/src/page-objects/pages/manage-assets
import { NetworksPage } from 'e2e/src/page-objects/pages/networks.page';
import { NewsletterModalPage } from 'e2e/src/page-objects/pages/newsletter-modal.page';
import { OnRumModalPage } from 'e2e/src/page-objects/pages/on-rum-modal.page';
import {
OnboardingCongratsPage,
OnboardingFirstStepPage,
OnboardingFourthStepPage,
OnboardingSecondStepPage,
OnboardingThirdStepPage
} from 'e2e/src/page-objects/pages/onboarding.page';
import { RemoveAccountPage } from 'e2e/src/page-objects/pages/remove-account.page';
import { SwapPage } from 'e2e/src/page-objects/pages/swap.page';
import { TokenPage } from 'e2e/src/page-objects/pages/token.page';
Expand Down Expand Up @@ -67,5 +74,10 @@ export const Pages = {
ManageAssetsCollectibles: new ManageAssetsCollectiblesPage(),
ManageAssetsTokens: new ManageAssetsTokensPage(),
AddAsset: new AddAssetPage(),
Token: new TokenPage()
Token: new TokenPage(),
OnboardingFirstStep: new OnboardingFirstStepPage(),
OnboardingSecondStep: new OnboardingSecondStepPage(),
OnboardingThirdStep: new OnboardingThirdStepPage(),
OnboardingFourthStep: new OnboardingFourthStepPage(),
OnboardingCongrats: new OnboardingCongratsPage()
};
Loading
Loading