Skip to content

test: remove unnecessary step #1943

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

Merged
merged 1 commit into from
Jul 8, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ export class CoinConfigure {
if (loseFocus) await this.clickToLoseFocus();
};

fillTokenValueUsingKeys = async (valueToEnter: number): Promise<void> => {
await this.input.waitForClickable();
await this.input.click();
await browser.keys(String(valueToEnter));
};

fillTokenValueWithoutClearingField = async (valueToEnter: number): Promise<void> => {
await this.input.waitForClickable();
await this.input.click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ Feature: Send - Extended Browser View (Advanced Tx)
And I click "Send" button on page header
And I enter a valid "shelley" address in the bundle 1 recipient's address
And I enter a 51% of total "tADA" asset in bundle 1
And I open cancel modal to trigger button validation
Then I do not see insufficient balance error in bundle 1 for "tADA" asset
And "Review transaction" button is enabled on "Send" page
When I click "Add bundle" button on "Send" page
And I enter a valid "shelley" address in the bundle 2 recipient's address
And I enter a 51% of total "tADA" asset in bundle 2
And I open cancel modal to trigger button validation
Then I see insufficient balance error in bundle 2 for "tADA" asset
And I do not see insufficient balance error in bundle 1 for "tADA" asset
And "Review transaction" button is disabled on "Send" page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,11 @@ Feature: Send - Extended Browser View (Advanced Tx)
And I click "Send" button on page header
And I enter a valid "shelley" address in the bundle 1 recipient's address
And I enter a 51% of total "ADA" asset in bundle 1
And I open cancel modal to trigger button validation
Then I do not see insufficient balance error in bundle 1 for "ADA" asset
And "Review transaction" button is enabled on "Send" page
When I click "Add bundle" button on "Send" page
And I enter a valid "shelley" address in the bundle 2 recipient's address
And I enter a 51% of total "ADA" asset in bundle 2
And I open cancel modal to trigger button validation
Then I see insufficient balance error in bundle 2 for "ADA" asset
And I see insufficient balance error in bundle 1 for "ADA" asset
And "Review transaction" button is disabled on "Send" page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,9 @@ Feature: LW-484: Send & Receive - Extended Browser View (Simple Tx)
Scenario: Extended-view - Error displayed when token value out of range
And I click "Send" button on page header
And I enter a valid "shelley" address in the bundle 1 recipient's address
When I enter a value of: 99999999 to the "tADA" asset
And I open cancel modal to trigger button validation
When I enter a value of: 99999999 to the "tADA" asset in bundle 1
Then "Insufficient balance" error is displayed on "Send" page
And "Review transaction" button is disabled on "Send" page
When I enter a value of: 2 to the "tADA" asset
And I open cancel modal to trigger button validation
When I enter a value of: 2 to the "tADA" asset in bundle 1
Then "Insufficient balance" error is not displayed on "Send" page
And "Review transaction" button is enabled on "Send" page
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Feature: LW-484: Send & Receive - Extended Browser View (Simple Tx)
When I click "Send" button on page header
When I enter a valid "shelley" address in the bundle 1 recipient's address
Then I enter a value of: <value> to the "tADA" asset in bundle 1
And I open cancel modal to trigger button validation
Then "Insufficient balance" error <should_see> displayed on "Send" page
Then "Review transaction" button is <status> on "Send" page
Examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Feature: LW-484: Send & Receive - Extended Browser View (Simple Tx)
And <assetSelectionAction> "<assetName>"
And I enter an exact value of: <value_to_enter> to the "<assetName>" asset in bundle 1
Then I see <displayed_value> as displayed value
When I click to loose focus from value field
When I click to lose focus from value field
Then I see <conv_value> as displayed value
And I <shouldSeeError> insufficient balance error in bundle 1 for "<assetName>" asset
When I hover over the value for "<assetName>" asset in bundle 1
Expand Down Expand Up @@ -56,7 +56,7 @@ Feature: LW-484: Send & Receive - Extended Browser View (Simple Tx)
And <assetSelectionAction> "<assetName>"
And I enter an exact value of: <value_to_enter> to the "<assetName>" asset in bundle 1
Then I see <displayed_value> as displayed value
When I click to loose focus from value field
When I click to lose focus from value field
Then I see <conv_value> as displayed value
And I <shouldSeeError> insufficient balance error in bundle 1 for "<assetName>" asset
When I hover over the value for "<assetName>" asset in bundle 1
Expand Down Expand Up @@ -106,7 +106,7 @@ Feature: LW-484: Send & Receive - Extended Browser View (Simple Tx)
When I click "Send" button on page header
And click on the coin selector for "tADA" asset in bundle 1
And click on an token with name: "Ibilecoin"
And I click to loose focus from value field
And I click to lose focus from value field
Then I see 0.00 as displayed value
And I do not see insufficient balance error in bundle 1 for "Ibilecoin" asset
When I hover over the value for "Ibilecoin" asset in bundle 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,9 @@ Feature: LW-484: Send & Receive - Popup View (Simple Tx)
And I click "Send" button on Tokens page in popup mode
And I enter a valid "shelley" address in the bundle 1 recipient's address
When I enter a value of: 99999999 to the "tADA" asset in bundle 1
And I open cancel modal to trigger button validation
Then "Insufficient balance" error is displayed on "Send" page
And "Review transaction" button is disabled on "Send" page
When I enter a value of: 2 to the "tADA" asset in bundle 1
And I open cancel modal to trigger button validation
Then "Insufficient balance" error is not displayed on "Send" page
Then "Review transaction" button is enabled on "Send" page

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ Feature: LW-484: Send & Receive - Popup View (Simple Tx)
When I click "Send" button on Tokens page in popup mode
When I enter a valid "shelley" address in the bundle 1 recipient's address
Then I enter a value of: <value> to the "tADA" asset in bundle 1
And I open cancel modal to trigger button validation
Then "Insufficient balance" error <should_see> displayed on "Send" page
And "Review transaction" button is <status> on "Send" page
Examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Feature: LW-484: Send & Receive - Popup View (Simple Tx)
And <assetSelectionAction> "<assetName>"
And I enter an exact value of: <value_to_enter> to the "<assetName>" asset in bundle 1
Then I see <displayed_value> as displayed value
When I click to loose focus from value field
When I click to lose focus from value field
Then I see <conv_value> as displayed value
And I <shouldSeeError> insufficient balance error in bundle 1 for "<assetName>" asset
When I hover over the value for "<assetName>" asset in bundle 1
Expand Down Expand Up @@ -73,7 +73,7 @@ Feature: LW-484: Send & Receive - Popup View (Simple Tx)
And <assetSelectionAction> "<assetName>"
And I enter an exact value of: <value_to_enter> to the "<assetName>" asset in bundle 1
Then I see <displayed_value> as displayed value
When I click to loose focus from value field
When I click to lose focus from value field
Then I see <conv_value> as displayed value
And I <shouldSeeError> insufficient balance error in bundle 1 for "<assetName>" asset
When I hover over the value for "<assetName>" asset in bundle 1
Expand Down Expand Up @@ -123,7 +123,7 @@ Feature: LW-484: Send & Receive - Popup View (Simple Tx)
When I click "Send" button on Tokens page in popup mode
And click on the coin selector for "tADA" asset in bundle 1
And click on an token with name: "Ibilecoin"
And I click to loose focus from value field
And I click to lose focus from value field
Then I see 0.00 as displayed value
And I do not see insufficient balance error in bundle 1 for "Ibilecoin" asset
When I hover over the value for "Ibilecoin" asset in bundle 1
Expand Down
11 changes: 2 additions & 9 deletions packages/e2e-tests/src/steps/sendTransactionSimpleSteps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import { AddressInput } from '../elements/AddressInput';
import { AssetInput } from '../elements/newTransaction/assetInput';
import TokenSelectionPage from '../elements/newTransaction/tokenSelectionPage';
import TransactionPasswordPage from '../elements/newTransaction/transactionPasswordPage';
import { Key } from 'webdriverio';
import { parseWalletAddress } from '../utils/parseWalletAddress';
import { AddressType } from '../enums/AddressTypeEnum';
import clipboard from 'clipboardy';
Expand Down Expand Up @@ -269,7 +268,7 @@ When(
}
);

When(/^I click to loose focus from value field$/, async () => {
When(/^I click to lose focus from value field$/, async () => {
await TransactionNewPage.coinConfigure().clickToLoseFocus();
});

Expand All @@ -288,12 +287,6 @@ Then(
}
);

Then(/^I open cancel modal to trigger button validation$/, async () => {
// workaround for test automation only to fire all events after finished typing
await browser.keys(Key.Escape);
await Modal.cancelButton.click();
});

Then(/^I click on transaction drawer background to lose focus$/, async () => {
await TransactionNewPage.clickDrawerBackground();
});
Expand Down Expand Up @@ -332,7 +325,7 @@ Then(
const tokenBalance: string = testContext.load(`${assetName}tokenBalance`);
const value = Number.parseFloat(tokenBalance) * (Number.parseFloat(percentage) * (1 / 100));
const valueToEnter = Number.parseFloat(value.toPrecision(2));
await TransactionNewPage.coinConfigure(bundleIndex, assetName).fillTokenValueUsingKeys(valueToEnter);
await TransactionNewPage.coinConfigure(bundleIndex, assetName).fillTokenValue(valueToEnter);
}
);

Expand Down
Loading