From 38c5ec1286a84c96657b3c4547e02669e2515ac9 Mon Sep 17 00:00:00 2001 From: Denis Nebytov Date: Fri, 26 May 2023 17:24:32 +0300 Subject: [PATCH 1/3] removed outdated files --- .../step_definitions/wallet-paper-steps.js | 62 ------------------- .../features/wallet-paper-creation.feature | 26 -------- 2 files changed, 88 deletions(-) delete mode 100644 packages/yoroi-extension/features/step_definitions/wallet-paper-steps.js delete mode 100644 packages/yoroi-extension/features/wallet-paper-creation.feature diff --git a/packages/yoroi-extension/features/step_definitions/wallet-paper-steps.js b/packages/yoroi-extension/features/step_definitions/wallet-paper-steps.js deleted file mode 100644 index 3399f6bcb6..0000000000 --- a/packages/yoroi-extension/features/step_definitions/wallet-paper-steps.js +++ /dev/null @@ -1,62 +0,0 @@ -// @flow - -import { Given, Then } from 'cucumber'; -import { expect } from 'chai'; -import { truncateAddress } from '../../app/utils/formatters'; -import { enterRecoveryPhrase } from '../pages/restoreWalletPage'; -import { primaryButton } from '../pages/commonDialogPage'; -import { - addressElement, - getAddressesAmountButton, - paperWalletDialogSelect, -} from '../pages/newWalletPages'; -import { fakeAddresses, halfSecond } from '../support/helpers/common-constants'; - -// ========== Paper wallet ========== - -Then(/^I open Number of Addresses selection dropdown$/, async function () { - await this.click(paperWalletDialogSelect); -}); - -Then(/^I select 2 addresses$/, async function () { - await this.click(getAddressesAmountButton('2')); - await this.driver.sleep(halfSecond); -}); - -Then(/^I click the create paper wallet button$/, async function () { - await this.click(primaryButton); -}); - -Then(/^I enter the paper recovery phrase$/, async function () { - /** - * Mnemomic is printed on the paper wallet and not present in the UI - * So we instead fetch the paper wallet from app memory - */ - const recoveryPhrase = await this.driver.executeScript(() => ( - window.yoroi.stores.substores.ada.paperWallets.paper.scrambledWords - )); - - await enterRecoveryPhrase(this, recoveryPhrase.join(' ')); -}); - -Given(/^I swap the paper wallet addresses$/, async function () { - // make sure 2 addresses we generated as expected - const addresses = await this.driver.executeScript(() => ( - window.yoroi.stores.substores.ada.paperWallets.paper.addresses - )); - expect(addresses.length).to.be.equal(2); - - // we swap out the generated addresses with fake ones to get a consistent UI for screenshots - await this.driver.executeScript((fakes) => { - window.yoroi.stores.substores.ada.paperWallets.paper.addresses = fakes; - }, fakeAddresses); -}); - -Then(/^I should see two addresses displayed$/, async function () { - const addressesElem = await this.findElements(addressElement); - expect(addressesElem.length).to.be.equal(fakeAddresses.length); - for (let i = 0; i < fakeAddresses.length; i++) { - const address = await addressesElem[i].getText(); - expect(address).to.be.equal(truncateAddress(fakeAddresses[i])); - } -}); diff --git a/packages/yoroi-extension/features/wallet-paper-creation.feature b/packages/yoroi-extension/features/wallet-paper-creation.feature deleted file mode 100644 index 964f985806..0000000000 --- a/packages/yoroi-extension/features/wallet-paper-creation.feature +++ /dev/null @@ -1,26 +0,0 @@ -Feature: Wallet Paper creation - - Background: - Given I have opened the extension - And I have completed the basic setup - - @it-77 - Scenario: Paper wallet creation (IT-77) - When I click the create button - Then I select the currency cardano - Then I select Paper Wallet - Then I open Number of Addresses selection dropdown - And I select 2 addresses - Then I click the create paper wallet button - Then I enter the paper wallet password "cool password" - And I repeat the wallet password "cool password" - Then I click the next button - # wait for paper wallet generation then go to next - Then I click the next button - And I enter the paper recovery phrase - And I enter the paper wallet password "cool password" - # swap addresses for UI testing - Given I swap the paper wallet addresses - Then I click then button labeled "Verify wallet" - Then I should see two addresses displayed - Then I click the next button \ No newline at end of file From 8c65dacf22415bf38616fff6093b4d71c8483d94 Mon Sep 17 00:00:00 2001 From: Denis Nebytov Date: Fri, 26 May 2023 17:25:34 +0300 Subject: [PATCH 2/3] updated path to firefox binary --- packages/yoroi-extension/features/support/webdriver.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/yoroi-extension/features/support/webdriver.js b/packages/yoroi-extension/features/support/webdriver.js index b18e32cd80..59cb2f6139 100644 --- a/packages/yoroi-extension/features/support/webdriver.js +++ b/packages/yoroi-extension/features/support/webdriver.js @@ -19,6 +19,10 @@ import { const fs = require('fs'); +const firefoxBin = process.env.FIREFOX_BIN + ? process.env.FIREFOX_BIN + : '/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox-bin'; + function encode(file) { return fs.readFileSync(file, { encoding: 'base64' }); } @@ -85,7 +89,7 @@ function getFirefoxBuilder() { * For Firefox it is needed to use "Firefox for Developers" to load the unsigned extensions * Set the FIREFOX_DEV env variable to the "Firefix for Developers" executable */ - .setBinary(process.env.FIREFOX_DEV) + .setBinary(firefoxBin) .addExtensions(path.resolve(__dirname, '../../Yoroi.xpi')) /** * Firefox disallows unsigned extensions by default. We solve this through a config change From 22914b80988966a222198d646edca7577c13e18e Mon Sep 17 00:00:00 2001 From: Denis Nebytov Date: Fri, 26 May 2023 17:32:55 +0300 Subject: [PATCH 3/3] removed outdated information --- .../features/mock-chain/TestWallets.js | 60 ++++++++-- .../features/pages/newWalletPages.js | 34 +----- .../features/pages/restoreWalletPage.js | 1 - .../features/step_definitions/common-steps.js | 29 +---- .../step_definitions/wallet-creation-steps.js | 12 -- .../wallet-restoration-steps.js | 19 ---- .../features/transactions.feature | 107 ------------------ .../features/wallet-creation.feature | 23 +--- .../features/wallet-restoration.feature | 41 ------- 9 files changed, 56 insertions(+), 270 deletions(-) diff --git a/packages/yoroi-extension/features/mock-chain/TestWallets.js b/packages/yoroi-extension/features/mock-chain/TestWallets.js index 87aef41daf..8abbc5f345 100644 --- a/packages/yoroi-extension/features/mock-chain/TestWallets.js +++ b/packages/yoroi-extension/features/mock-chain/TestWallets.js @@ -7,8 +7,8 @@ export type RestorationInput = {| password: string, mnemonic: string, plate: string, - plateByron?: string, - deviceId?: ?string, + plateByron: string, + deviceId: string, |}; function getMnemonicFromEnv(walletName): string { @@ -19,16 +19,17 @@ function createWallet(payload: {| name: string, mnemonic: string, plate: string, - plateByron?: ?string, - deviceId?: ?string, + plateByron: string, + deviceId: string, |}) { - const { name, mnemonic, plate } = payload; + const { name, mnemonic, plate, plateByron, deviceId } = payload; return { [name]: { name, mnemonic, plate, + plateByron, password: commonWalletPassword, - deviceId: payload.deviceId, + deviceId, } }; } @@ -67,33 +68,44 @@ export const testWallets: { [key: WalletNames]: RestorationInput, ... } = Object createWallet({ name: ('small-single-tx': WalletNames), mnemonic: 'eight country switch draw meat scout mystery blade tip drift useless good keep usage title', - plate: 'EAJD-7036', + plate: '', + plateByron: 'EAJD-7036', + deviceId: '', }), createWallet({ name: ('failed-single-tx': WalletNames), mnemonic: 'broken common spring toilet work safe decrease equal velvet cluster myth old toy hold rain', plate: 'JSLX-5059', + plateByron: '', + deviceId: '', }), createWallet({ name: ('many-tx-wallet': WalletNames), mnemonic: 'final autumn bacon fold horse scissors act pole country focus task blush basket move view', plate: 'ZKTZ-4614', + plateByron: '', + deviceId: '', }), createWallet({ name: ('empty-wallet': WalletNames), mnemonic: 'burst hood dance captain city crane over olive notice sugar what bubble butter wealth grace', plate: 'PZEB-5741', plateByron: 'ZPOX-6942', + deviceId: '', }), createWallet({ name: ('simple-pending-wallet': WalletNames), mnemonic: 'ritual horn upon plastic foster enemy expect hand control coil jeans wolf arch isolate farm', plate: 'DPAH-1099', + plateByron: '', + deviceId: '', }), createWallet({ name: ('tx-big-input-wallet': WalletNames), mnemonic: 'dragon mango general very inmate idea rabbit pencil element bleak term cart critic kite pill', plate: 'EDAO-9229', + plateByron: '', + deviceId: '', }), createWallet({ // a wallet to send stuff to when you need a tx output @@ -101,11 +113,15 @@ export const testWallets: { [key: WalletNames]: RestorationInput, ... } = Object name: ('dump-wallet': WalletNames), mnemonic: 'proud nuclear patch arm digital theory peasant winner person knock mirror across immune certain power', plate: 'XXXX-1111', + plateByron: '', + deviceId: '', }), createWallet({ name: ('jormungandr-test': WalletNames), mnemonic: '', plate: 'XXXX-1111', + plateByron: '', + deviceId: '', }), createWallet({ name: ('ledger-wallet': WalletNames), @@ -125,72 +141,98 @@ export const testWallets: { [key: WalletNames]: RestorationInput, ... } = Object name: ('shelley-simple-24': WalletNames), mnemonic: 'reunion walnut update express purse defense slice barrel estate olympic february flock give team alert coast luggage exhaust notable bag december split furnace sponsor', plate: 'DSKC-9213', + plateByron: '', + deviceId: '', }), createWallet({ name: ('shelley-collateral': WalletNames), mnemonic: 'deal calm cloth world refuse pledge grant tuna inner body fat afford absorb off barely', plate: 'HLBZ-9462', + plateByron: '', + deviceId: '', }), createWallet({ name: ('shelley-simple-15': WalletNames), mnemonic: 'eight country switch draw meat scout mystery blade tip drift useless good keep usage title', plate: 'ZDDC-9858', + plateByron: '', + deviceId: '', }), createWallet({ name: ('shelley-delegated': WalletNames), mnemonic: 'parrot offer switch thank film high drop salute task train squirrel coral consider coyote evolve', plate: 'PALP-0076', + plateByron: '', deviceId: '6495958994A4025BB5EE1DB1', }), createWallet({ name: ('shelley-ledger-delegated': WalletNames), mnemonic: 'parrot offer switch thank film high drop salute task train squirrel coral consider coyote evolve', plate: 'PALP-0076', + plateByron: '', deviceId: '707fa118bf6b84', }), createWallet({ name: ('shelley-only-registered': WalletNames), mnemonic: 'pig organ result afraid abstract arrest brass kangaroo hub cube crunch return vibrant core make', plate: 'TDDO-4310', + plateByron: '', + deviceId: '', }), createWallet({ name: ('shelley-enterprise': WalletNames), mnemonic: 'much million increase spot visa domain grow brother chief mechanic innocent envelope vacant bundle coyote', plate: 'HBDZ-9545', + plateByron: '', + deviceId: '', }), createWallet({ name: ('shelley-mangled': WalletNames), mnemonic: 'weekend december choose maid rack helmet canoe bridge strike section lift autumn route practice seat', plate: 'JCEH-5025', + plateByron: '', + deviceId: '', }), createWallet({ name: ('ergo-simple-wallet': WalletNames), mnemonic: 'eight country switch draw meat scout mystery blade tip drift useless good keep usage title', plate: 'CXTP-1821', + plateByron: '', + deviceId: '', }), createWallet({ name: ('ergo-token-wallet': WalletNames), mnemonic: 'rent sword help dynamic enhance collect biology drama agent raven grape bike march length leisure', plate: 'AZTH-1588', + plateByron: '', + deviceId: '', }), createWallet({ name: ('cardano-token-wallet': WalletNames), mnemonic: 'rent sword help dynamic enhance collect biology drama agent raven grape bike march length leisure', plate: 'HZPX-1482', + plateByron: '', + deviceId: '', }), createWallet({ name: ('First-Smoke-Test-Wallet': WalletNames), mnemonic: getMnemonicFromEnv('FIRST_SMOKE_TEST_WALLET'), - plate: 'XONT-4910' + plate: 'XONT-4910', + plateByron: '', + deviceId: '', }), createWallet({ name: ('Second-Smoke-Test-Wallet': WalletNames), mnemonic: getMnemonicFromEnv('SECOND_SMOKE_TEST_WALLET'), plate: 'XZHD-1651', + plateByron: '', + deviceId: '', }), createWallet({ name: ('Second-Smoke-Test-Wallet-FF': WalletNames), mnemonic: getMnemonicFromEnv('SECOND_SMOKE_TEST_WALLET_FF'), - plate: 'CJBE-8896' + plate: 'CJBE-8896', + plateByron: '', + deviceId: '', }), ); diff --git a/packages/yoroi-extension/features/pages/newWalletPages.js b/packages/yoroi-extension/features/pages/newWalletPages.js index e18b42ed76..88c65b1d1a 100644 --- a/packages/yoroi-extension/features/pages/newWalletPages.js +++ b/packages/yoroi-extension/features/pages/newWalletPages.js @@ -17,10 +17,6 @@ export const pickUpCurrencyDialog: LocatorObject = { locator: '.PickCurrencyOptionDialog', method: 'css', }; -export const pickUpCurrencyDialogErgo: LocatorObject = { - locator: '.PickCurrencyOptionDialog_ergo', - method: 'css', -}; export const pickUpCurrencyDialogCardano: LocatorObject = { locator: '.PickCurrencyOptionDialog_cardano', method: 'css', @@ -75,18 +71,6 @@ export const trezorWalletName: LocatorObject = { }; export const trezorConfirmButton: LocatorObject = { locator: '.MuiButton-primary', method: 'css' }; // Create wallet dialog -export const createOptionDialog: LocatorObject = { - locator: '.WalletCreateOptionDialog', - method: 'css', -}; -export const createNormalWalletButton: LocatorObject = { - locator: '.WalletCreateOptionDialog_createWallet', - method: 'css' -}; -export const createPaperWalletButton: LocatorObject = { - locator: '.WalletCreateOptionDialog_restorePaperWallet', - method: 'css', -}; export const createWalletPasswordInput: LocatorObject = { locator: '.WalletCreateDialog .walletPassword input', method: 'css', @@ -140,34 +124,20 @@ export const getRecoveryPhraseWord = (indexNumber: number): LocatorObject => { }; }; -// Paper Wallet dialog -export const paperWalletDialogSelect: LocatorObject = { - locator: '.WalletPaperDialog_component .MuiSelect-select', - method: 'css', -}; -export const restorePaperWalletButton: LocatorObject = { - locator: '.WalletRestoreOptionDialog_restorePaperWallet', - method: 'css', -}; export const restoreDialogButton: LocatorObject = { locator: '.WalletRestoreDialog .primary', method: 'css', }; -export const getAddressesAmountButton = (addressesAmount: string): LocatorObject => { - return { locator: `//li[contains(text(), "${addressesAmount}")]`, method: 'xpath' }; -}; + export const recoveryPhraseDeleteIcon = { locator: `(//span[contains(text(), '×')])[1]`, method: 'xpath', }; + export const recoveryPhraseError: LocatorObject = { locator: '//p[starts-with(@id, "recoveryPhrase--")]', method: 'xpath', }; -export const addressElement : LocatorObject = { - locator: '//span[contains(@class, "RawHash_hash")]', - method: 'xpath', -}; // Common elements export const walletNameInput: LocatorObject = { diff --git a/packages/yoroi-extension/features/pages/restoreWalletPage.js b/packages/yoroi-extension/features/pages/restoreWalletPage.js index 53f5e7c93c..ce33de8ad0 100644 --- a/packages/yoroi-extension/features/pages/restoreWalletPage.js +++ b/packages/yoroi-extension/features/pages/restoreWalletPage.js @@ -49,7 +49,6 @@ export const walletNameInput: LocatorObject = { locator: "input[name='walletName export const confirmRestoreWalletButton: LocatorObject = { locator: '.WalletRestoreDialog .primary', method: 'css' }; export const walletPasswordInput: LocatorObject = { locator: "input[name='walletPassword']", method: 'css' }; export const repeatPasswordInput: LocatorObject = { locator: "input[name='repeatPassword']", method: 'css' }; -export const paperPasswordInput: LocatorObject = { locator: "input[name='paperPassword']", method: 'css' }; export const confirmButton: LocatorObject = { locator: '.confirmButton', method: 'css' }; export const confirmConfirmationButton: LocatorObject = { locator: '.WalletRestoreDialog .primary', method: 'css' }; export const verifyRestoredInfoDialog: LocatorObject = { locator: '.WalletRestoreVerifyDialog_dialog', method: 'css' }; diff --git a/packages/yoroi-extension/features/step_definitions/common-steps.js b/packages/yoroi-extension/features/step_definitions/common-steps.js index 3607108ab7..3c915d6d07 100644 --- a/packages/yoroi-extension/features/step_definitions/common-steps.js +++ b/packages/yoroi-extension/features/step_definitions/common-steps.js @@ -50,16 +50,12 @@ import { trezorConfirmButton, walletNameInput, saveDialog, - pickUpCurrencyDialogErgo, walletRestoreOptionDialog, restoreNormalWallet, - walletRestoreDialog, restoreWalletButton, saveButton, byronEraButton, createWalletButton, - createOptionDialog, - createNormalWalletButton, } from '../pages/newWalletPages'; import { allowPubKeysAndSwitchToYoroi, switchToTrezorAndAllow } from './trezor-steps'; import { @@ -276,8 +272,9 @@ export async function getIndexedDBTablesInfo(customWorld: any, postfix: string = } }; -export async function getPlates(customWorld: any): Promise { +export async function getPlates(customWorld: any): Promise> { // check plate in confirmation dialog + await customWorld.waitForElement(restoringDialogPlate); let plateElements = await customWorld.findElements(restoringDialogPlate); // this makes this function also work for wallets that already exist @@ -437,25 +434,6 @@ Then(/^I pause the test to debug$/, async function () { await this.waitForElement({ locator: '.element_that_does_not_exist', method: 'css' }); }); -Given(/^There is an Ergo wallet stored named ([^"]*)$/, async function (walletName) { - this.webDriverLogger.info(`Step: There is an Ergo wallet stored named ${walletName}`); - const restoreInfo = testWallets[walletName]; - expect(restoreInfo).to.not.equal(undefined); - - await this.click(restoreWalletButton); - - await this.waitForElement(pickUpCurrencyDialog); - await this.click(pickUpCurrencyDialogErgo); - - await this.waitForElement(walletRestoreOptionDialog); - - await this.click(restoreNormalWallet); - await this.waitForElement(walletRestoreDialog); - - await inputMnemonicForWallet(this, restoreInfo); - await checkWalletPlate(this, walletName, restoreInfo); -}); - Given(/^There is a Shelley wallet stored named ([^"]*)$/, async function (walletName: WalletNames) { this.webDriverLogger.info(`Step: There is a Shelley wallet stored named ${walletName}`); const browserName = await this.getBrowser(); @@ -477,9 +455,6 @@ Given(/^I create a new Shelley wallet with the name ([^"]*)$/, async function (w await this.waitForElement(pickUpCurrencyDialog); await this.click(getCurrencyButton('cardano')); - await this.waitForElement(createOptionDialog); - await this.click(createNormalWalletButton); - await this.waitForElement(walletInfoDialog); await this.input(walletNameInput, walletName); await this.input(walletPasswordInput, commonWalletPassword); diff --git a/packages/yoroi-extension/features/step_definitions/wallet-creation-steps.js b/packages/yoroi-extension/features/step_definitions/wallet-creation-steps.js index 61e2395723..6c18d0e264 100644 --- a/packages/yoroi-extension/features/step_definitions/wallet-creation-steps.js +++ b/packages/yoroi-extension/features/step_definitions/wallet-creation-steps.js @@ -7,9 +7,6 @@ import { expect } from 'chai'; import { checkErrorByTranslationId } from './common-steps'; import { clearButton, - createNormalWalletButton, - createOptionDialog, - createPaperWalletButton, createPersonalWalletButton, createWalletButton, createWalletNameError, @@ -39,15 +36,6 @@ When(/^I select the currency ([^"]*)$/, async function (currency) { await this.click(getCurrencyButton(currency)); }); -When(/^I select Create Wallet$/, async function () { - await this.waitForElement(createOptionDialog); - await this.click(createNormalWalletButton); -}); -When(/^I select Paper Wallet$/, async function () { - await this.waitForElement(createOptionDialog); - await this.click(createPaperWalletButton); -}); - When(/^I enter the created wallet password:$/, async function (table) { const fields = table.hashes()[0]; await this.input(createWalletPasswordInput, fields.password); diff --git a/packages/yoroi-extension/features/step_definitions/wallet-restoration-steps.js b/packages/yoroi-extension/features/step_definitions/wallet-restoration-steps.js index c353fb19db..1f77259812 100644 --- a/packages/yoroi-extension/features/step_definitions/wallet-restoration-steps.js +++ b/packages/yoroi-extension/features/step_definitions/wallet-restoration-steps.js @@ -11,7 +11,6 @@ import { confirmButton, errorInvalidRecoveryPhrase, getWords, - paperPasswordInput, recoveryPhraseField, repeatPasswordInput, walletPasswordInput, @@ -20,14 +19,12 @@ import { masterKeyInput } from '../pages/walletClaimTransferPage'; import { byronEraButton, pickUpCurrencyDialog, - pickUpCurrencyDialogCardano, recoveryPhraseDeleteIcon, recoveryPhraseError, restoreWalletButton, restore24WordWallet, restoreDialogButton, restoreNormalWallet, - restorePaperWalletButton, shelleyEraButton, walletAlreadyExistsComponent, walletRestoreDialog, @@ -64,18 +61,6 @@ Then(/^I select bip44 15-word wallet$/, async function () { await this.waitForElement(walletRestoreDialog); }); -When(/^I click the restore paper wallet button$/, async function () { - await this.click(restoreWalletButton); - - await this.waitForElement(pickUpCurrencyDialog); - await this.click(pickUpCurrencyDialogCardano); - - await this.waitForElement(walletRestoreOptionDialog); - - await this.click(restorePaperWalletButton); - await this.waitForElement(walletRestoreDialog); -}); - When(/^I enter the recovery phrase:$/, async function (table) { const fields = table.hashes()[0]; await enterRecoveryPhrase(this, fields.recoveryPhrase); @@ -129,10 +114,6 @@ Then(/^I repeat the wallet password "([^"]*)"$/, async function (password) { await this.input(repeatPasswordInput, password); }); -When(/^I enter the paper wallet password "([^"]*)"$/, async function (password) { - await this.input(paperPasswordInput, password); -}); - When(/^I clear the restored wallet password ([^"]*)$/, async function (password) { await this.clearInputUpdatingForm(walletPasswordInput, password.length); }); diff --git a/packages/yoroi-extension/features/transactions.feature b/packages/yoroi-extension/features/transactions.feature index c2b6b3d667..0c31266cb9 100644 --- a/packages/yoroi-extension/features/transactions.feature +++ b/packages/yoroi-extension/features/transactions.feature @@ -277,63 +277,6 @@ Feature: Send transaction Then I submit the wallet send form Then I should see an delegation incorrect wallet password error message - @it-162 - Scenario Outline: Send from an ergo wallet (IT-162) - Given There is an Ergo wallet stored named ergo-simple-wallet - And I have an ERGO wallet with funds - When I go to the send transaction screen - And I fill the form: - | address | amount | - |
| | - And The transaction fees are "" - And I click on the next button in the wallet send form - And I see send money confirmation dialog - And I see CONFIRM TRANSACTION Pop up: - | address | amount |fee | isErgo | - |
| | | 1 | - And I enter the wallet password: - | password | - | asdfasdfasdf | - And I submit the wallet send form - Then I should see the successfully sent page - And I click the transaction page button - Then I should see the summary screen - - Examples: - | address | amount |fee | - | 9guxMsa2S1Z4xzr5JHUHZesznThjZ4BMM9Ra5Lfx2E9duAnxEmv | 5.000000000 |0.001100000 | - - @it-163 - Scenario: Send all from an ergo wallet (IT-163) - When I click the restore button for ergo - Then I select bip44 15-word wallet - And I enter the name "Restored Wallet" - And I enter the recovery phrase: - | recoveryPhrase | - | eight country switch draw meat scout mystery blade tip drift useless good keep usage title | - And I enter the restored wallet password: - | password | repeatedPassword | - | asdfasdfasdf | asdfasdfasdf | - And I click the "Restore Wallet" button - Then I should see a plate CXTP-1821 - Then I click the next button - Then I should see the opened wallet with name "Restored Wallet" - When I go to the send transaction screen - And I fill the address of the form: - | address | - | 9guxMsa2S1Z4xzr5JHUHZesznThjZ4BMM9Ra5Lfx2E9duAnxEmv | - And I open the amount dropdown and select send all - And The transaction fees are "0.001100000" - And I click on the next button in the wallet send form - And I see send money confirmation dialog - And I enter the wallet password: - | password | - | asdfasdfasdf | - And I submit the wallet send form - Then I should see the successfully sent page - And I click the transaction page button - Then I should see the summary screen - @it-164 Scenario Outline: Can receive & send funds from enterprise address (IT-164) Given There is a Shelley wallet stored named shelley-enterprise @@ -386,56 +329,6 @@ Feature: Send transaction Then I should see the summary screen And I should see 1 pending transactions - @it-170 - Scenario Outline: Can send some of a custom token (IT-170) - Given There is an Ergo wallet stored named ergo-token-wallet - And I have an ERGO wallet with funds - When I go to the send transaction screen - And I open the token selection dropdown - And I select token "USD" - And I fill the form: - | address | amount | - |
| | - And The transaction fees are "" - And I click on the next button in the wallet send form - And I see send money confirmation dialog - And I see CONFIRM TRANSACTION Pop up: - | address | amount |fee | isErgo | - |
| 0.010000000 | | 1 | - And I enter the wallet password: - | password | - | asdfasdfasdf | - And I submit the wallet send form - Then I should see the successfully sent page - And I click the transaction page button - Then I should see the summary screen - - Examples: - | address | amount | fee | - | 9guxMsa2S1Z4xzr5JHUHZesznThjZ4BMM9Ra5Lfx2E9duAnxEmv | 123 |0.001100000 | - - @it-171 - Scenario: Can send all of a custom token (IT-171) - Given There is an Ergo wallet stored named ergo-token-wallet - And I have an ERGO wallet with funds - When I go to the send transaction screen - And I open the token selection dropdown - And I select token "USD" - And I fill the address of the form: - | address | - | 9guxMsa2S1Z4xzr5JHUHZesznThjZ4BMM9Ra5Lfx2E9duAnxEmv | - And I open the amount dropdown and select send all - And The transaction fees are "0.001100000" - And I click on the next button in the wallet send form - And I see send money confirmation dialog - And I enter the wallet password: - | password | - | asdfasdfasdf | - And I submit the wallet send form - Then I should see the successfully sent page - And I click the transaction page button - Then I should see the summary screen - @it-178 Scenario Outline: Can send some of a custom Cardano token (IT-178) Given There is a Shelley wallet stored named cardano-token-wallet diff --git a/packages/yoroi-extension/features/wallet-creation.feature b/packages/yoroi-extension/features/wallet-creation.feature index dff1d6b4e8..0972a8f349 100644 --- a/packages/yoroi-extension/features/wallet-creation.feature +++ b/packages/yoroi-extension/features/wallet-creation.feature @@ -9,7 +9,6 @@ Feature: Wallet creation Scenario: Wallet creation (IT-5) When I click the create button Then I select the currency cardano - Then I select Create Wallet And I enter the name "Created Wallet" And I enter the created wallet password: | password | repeatedPassword | @@ -23,7 +22,6 @@ Feature: Wallet creation Scenario Outline: Wallet can't be created if its password doesn't meet complexity requirements (IT-7) When I click the create button Then I select the currency cardano - Then I select Create Wallet And I enter the name "Created Wallet" And I enter the created wallet password: | password | repeatedPassword | @@ -41,7 +39,6 @@ Feature: Wallet creation Scenario: Wallet access after browser restart (IT-9) When I click the create button Then I select the currency cardano - Then I select Create Wallet And I enter the name "Created Wallet" And I enter the created wallet password: | password | repeatedPassword | @@ -57,7 +54,6 @@ Feature: Wallet creation Scenario Outline: Wallet can't be created if wallet name doesn't meet requirements (IT-16) When I click the create button Then I select the currency cardano - Then I select Create Wallet And I enter the name "Created Wallet" And I enter the created wallet password: | password | repeatedPassword | @@ -79,7 +75,6 @@ Feature: Wallet creation Scenario: Mnemonic words can be cleared by clicking "Clear button" on wallet creation screen (IT-18) When I click the create button Then I select the currency cardano - Then I select Create Wallet And I enter the name "Created Wallet" And I enter the created wallet password: | password | repeatedPassword | @@ -94,7 +89,6 @@ Feature: Wallet creation Scenario: Wallet can't be created without entering password (IT-24) When I click the create button Then I select the currency cardano - Then I select Create Wallet And I enter the name "Created Wallet" And I enter the created wallet password: | password | repeatedPassword | @@ -109,7 +103,6 @@ Feature: Wallet creation Scenario: Users will be presented with a security warning prior to seed creation (IT-27) When I click the create button Then I select the currency cardano - Then I select Create Wallet And I enter the name "Created Wallet" And I enter the created wallet password: | password | repeatedPassword | @@ -117,18 +110,4 @@ Feature: Wallet creation And I click the "Create personal wallet" button Then I see the security warning prior: | message | - | wallet.backup.privacy.warning.dialog.checkbox.label.nobodyWatching | - - @it-131 - Scenario: Wallet creation. Ergo (IT-131) - When I click the create button - Then I select the currency ergo - Then I select Create Wallet - And I enter the name "Created Wallet" - And I enter the created wallet password: - | password | repeatedPassword | - | asdfasdfasdf | asdfasdfasdf | - And I click the "Create personal wallet" button - And I accept the creation terms - And I copy and enter the displayed mnemonic phrase - Then I should see the opened wallet with name "Created Wallet" + | wallet.backup.privacy.warning.dialog.checkbox.label.nobodyWatching | \ No newline at end of file diff --git a/packages/yoroi-extension/features/wallet-restoration.feature b/packages/yoroi-extension/features/wallet-restoration.feature index 4cdf961fb7..2fac78e138 100644 --- a/packages/yoroi-extension/features/wallet-restoration.feature +++ b/packages/yoroi-extension/features/wallet-restoration.feature @@ -104,27 +104,6 @@ Feature: Restore Wallet | recoveryPhrase | | | remind style lunch result accuse upgrade atom eight limit glance frequent eternal fashion borrow monster galaxy | 16-words phrase | - @it-72 - Scenario: Restoring a paper wallet (IT-72) - When I click the restore paper wallet button - And I enter the name "Restored Wallet" - And I enter the recovery phrase: - | recoveryPhrase | - | mushroom expose slogan wagon uphold train absurd fix snake unable rescue curious escape member resource garbage enemy champion airport matrix year | - And I enter the paper wallet password "cool password" - And I enter the restored wallet password: - | password | repeatedPassword | - | asdfasdfasdf | asdfasdfasdf | - And I click the "Restore Wallet" button - Then I should see a plate KOTZ-1730 - Then I click the next button - Then I should see the opened wallet with name "Restored Wallet" - And I go to the receive screen - And I should see the addresses exactly list them - | address | - | Ae2tdPwUPEZF4q7tzeXnofsXLF3yCW7mwbFVxucwoXBrfUCGXJ9yHWzwVm8 | - | Ae2tdPwUPEZ7TQpzbJZCbA5BjW4zWYFn47jKo43ouvfe4EABoCfvEjwYvJr | - @it-73 Scenario Outline: Wallet restoration Recovery Phrase with less than 15 words (IT-73) And I click the restore button for cardano @@ -234,26 +213,6 @@ Feature: Restore Wallet Then I switch to "many-tx-wallet" from the dropdown Then I should see the opened wallet with name "many-tx-wallet" - @it-130 - Scenario: Restoring an ergo wallet (IT-130) - When I click the restore button for ergo - Then I select bip44 15-word wallet - And I enter the name "Restored Wallet" - And I enter the recovery phrase: - | recoveryPhrase | - | eight country switch draw meat scout mystery blade tip drift useless good keep usage title | - And I enter the restored wallet password: - | password | repeatedPassword | - | asdfasdfasdf | asdfasdfasdf | - And I click the "Restore Wallet" button - Then I should see a plate CXTP-1821 - Then I click the next button - Then I should see the opened wallet with name "Restored Wallet" - And I go to the receive screen - And I should see the addresses exactly list them - | address | - | 9erND2FjDWVTgT2TWRZ9dCLueKAWjoskx6KqRmZbtvtRXEgCrja | - @it-132 Scenario: Restoring a shelley 15-word wallet (IT-132) When I click the restore button for cardano