-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' of github.com:madfish-solutions/templewall…
…et-extension into TW-716-baner-subscrition
- Loading branch information
Showing
115 changed files
with
2,147 additions
and
787 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
DEFAULT_HD_ACCOUNT_SEED_PHRASE= | ||
DEFAULT_HD_ACCOUNT_FIRST_PRIVATE_KEY= | ||
DEFAULT_HD_ACCOUNT_FIRST_HASH_SHORT_FORM= | ||
DEFAULT_HD_ACCOUNT_SECOND_PRIVATE_KEY= | ||
|
||
DEFAULT_PASSWORD= | ||
|
||
IMPORTED_HD_ACCOUNT_SEED_PHRASE= | ||
IMPORTED_HD_ACCOUNT_FIRST_PRIVATE_KEY= | ||
IMPORTED_HD_ACCOUNT_FIRST_HASH_SHORT_FORM= | ||
|
||
WATCH_ONLY_PUBLIC_KEY_HASH= | ||
WATCH_ONLY_PUBLIC_KEY_HASH_SHORT_FORM= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
Feature: Remove an account | ||
@remove_account | ||
Scenario: As a user, I'd like to remove an imported account by mnemonic, private key and public key | ||
Given I have imported an existing account | ||
# Remove an imported account by mnemonic | ||
|
||
And I press Account Icon on the Header page | ||
And I am on the AccountsDropdown page | ||
|
||
And I press Import Account Button on the Account Drop-down page | ||
And I am on the ImportAccountTab page | ||
|
||
And I select Mnemonic tab | ||
And I am on the ImportAccountMnemonic page | ||
|
||
And I enter second mnemonic | ||
And I press Mnemonic Import Button on the Import Account(Mnemonic) page | ||
|
||
And I am on the Home page | ||
And I check if importedAccountShortHash is corresponded to the selected 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 Remove Account Button on the Settings page | ||
|
||
And I am on the RemoveAccount page | ||
And I enter defaultPassword into Password Input on the Remove Account page | ||
And I press Remove Button on the Remove Account page | ||
|
||
And I am on the Home page | ||
And I check if defaultAccountShortHash is corresponded to the selected account | ||
|
||
# Remove an imported account private key | ||
|
||
And I press Account Icon on the Header page | ||
And I am on the AccountsDropdown page | ||
|
||
And I press Import Account Button on the Account Drop-down page | ||
And I am on the ImportAccountTab page | ||
|
||
And I select Private Key tab | ||
And I am on the ImportAccountPrivateKey page | ||
|
||
And I enter importedFirstPrivateKey into Private Key Input on the Import Account(Private Key) page | ||
And I press Private Key Import Button on the Import Account(Private Key) page | ||
|
||
And I am on the Home page | ||
And I check if importedAccountShortHash is corresponded to the selected 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 Remove Account Button on the Settings page | ||
|
||
And I am on the RemoveAccount page | ||
And I enter defaultPassword into Password Input on the Remove Account page | ||
And I press Remove Button on the Remove Account page | ||
|
||
And I am on the Home page | ||
And I check if defaultAccountShortHash is corresponded to the selected account | ||
|
||
# Remove an imported account public key | ||
|
||
And I press Account Icon on the Header page | ||
And I am on the AccountsDropdown page | ||
|
||
And I press Import Account Button on the Account Drop-down page | ||
And I am on the ImportAccountTab page | ||
|
||
And I select Watch-only tab | ||
And I am on the ImportAccountWatchOnly page | ||
|
||
And I enter watchOnlyPublicKey into Watch Only Input on the Import Account(Watch-Only) page | ||
And I press Watch Only Import Button on the Import Account(Watch-Only) page | ||
|
||
And I check if watchOnlyAccountShortHash is corresponded to the selected 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 Remove Account Button on the Settings page | ||
|
||
And I am on the RemoveAccount page | ||
And I enter defaultPassword into Password Input on the Remove Account page | ||
And I press Remove Button on the Remove Account page | ||
|
||
And I am on the Home page | ||
|
||
Then I check if defaultAccountShortHash is corresponded to the selected account |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { RemoveAccountSelectors } from 'src/app/templates/RemoveAccount/RemoveAccount.selectors'; | ||
|
||
import { Page } from '../../classes/page.class'; | ||
import { createPageElement } from '../../utils/search.utils'; | ||
|
||
export class RemoveAccountPage extends Page { | ||
passwordInput = createPageElement(RemoveAccountSelectors.passwordInput); | ||
removeButton = createPageElement(RemoveAccountSelectors.removeButton); | ||
|
||
async isVisible() { | ||
await this.passwordInput.waitForDisplayed(); | ||
await this.removeButton.waitForDisplayed(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.