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

e2e optimization #1050

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions e2e/src/features/send.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Feature: Send

And I am on the Send page
# Send TEZ
And The Asset Drop-down Selected Item Name on the Send Form page has correct TEZ value
And I enter watchOnlyPublicKey into Recipient Input on the Send Form page
And I enter amount_0_0001 into Amount Input on the Send Form page
And I press Send Button on the Send Form page
Expand All @@ -25,6 +26,7 @@ Feature: Send
And I press Asset Drop-down on the Send Form page
And I enter uUSD into Asset Drop-down Search Input on the Send Form page
And I select uUSD token in the token drop-down list on the Send page
And The Asset Drop-down Selected Item Name on the Send Form page has correct uUSD value
And I enter watchOnlyPublicKey into Recipient Input on the Send Form page
And I enter amount_0_0001 into Amount Input on the Send Form page
And I press Send Button on the Send Form page
Expand All @@ -41,6 +43,7 @@ Feature: Send
And I clear Asset Drop-down Search Input value on the Send Form page
And I enter kUSD into Asset Drop-down Search Input on the Send Form page
And I select kUSD token in the token drop-down list on the Send page
And The Asset Drop-down Selected Item Name on the Send Form page has correct kUSD value
And I enter watchOnlyPublicKey into Recipient Input on the Send Form page
And I enter amount_0_0001 into Amount Input on the Send Form page
And I press Send Button on the Send Form page
Expand All @@ -57,6 +60,7 @@ Feature: Send
And I clear Asset Drop-down Search Input value on the Send Form page
And I enter OBJKTCOM into Asset Drop-down Search Input on the Send Form page
And I select OBJKTCOM token in the token drop-down list on the Send page
And The Asset Drop-down Selected Item Name on the Send Form page has correct OBJKTCOM value
And I enter watchOnlyPublicKey into Recipient Input on the Send Form page
And I enter amount_1 into Amount Input on the Send Form page
And I press Send Button on the Send Form page
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/features/swap.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Feature: Swap

@dev
@swap
Scenario: As a user, i'd like to swap assets
Given I have imported an existing account
Expand Down
3 changes: 2 additions & 1 deletion e2e/src/page-objects/pages/send.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createPageElement, findElement } from '../../utils/search.utils';

export class SendPage extends Page {
assetDropDown = createPageElement(SendFormSelectors.assetDropDown);
assetDropDownSearchInput = createPageElement(SendFormSelectors.assetDropDownSearchInput);
assetDropDownSelectedItem = createPageElement(SendFormSelectors.assetDropDownSelectedItem);
amountInput = createPageElement(SendFormSelectors.amountInput);
recipientInput = createPageElement(SendFormSelectors.recipientInput);
sendButton = createPageElement(SendFormSelectors.sendButton);
Expand All @@ -16,6 +16,7 @@ export class SendPage extends Page {
await this.assetDropDown.waitForDisplayed();
await this.recipientInput.waitForDisplayed();
await this.amountInput.waitForDisplayed();
await this.assetDropDownSelectedItem.waitForDisplayed();
}

async selectToken(slug: string) {
Expand Down
6 changes: 5 additions & 1 deletion src/app/templates/AssetSelect/AssetSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ const AssetFieldContent: FC<{ asset: IAsset } & TestIDProperty> = ({ asset, test
<div className="flex flex-col items-start leading-none">
<span className="text-xl text-gray-800 flex items-baseline">
<Money smallFractionFont={false}>{balance}</Money>{' '}
<span className="ml-2" style={{ fontSize: '0.75em' }}>
<span
className="ml-2"
style={{ fontSize: '0.75em' }}
{...setTestID(SendFormSelectors.assetDropDownSelectedItem)}
>
{getAssetSymbol(metadata)}
</span>
</span>
Expand Down
1 change: 1 addition & 0 deletions src/app/templates/SendForm/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export enum SendFormSelectors {
contactHashValue = 'Send Form/Contact Hash Value',
assetDropDown = 'Send Form/Asset Drop-down',
assetDropDownSelect = 'Send Form/Asset Drop-down Select',
assetDropDownSelectedItem = 'Send Form/Asset Drop-down Selected Item Name',
assetDropDownSearchInput = 'Send Form/Asset Drop-down Search Input',
assetDropDownItem = 'Send Form/Asset Drop-down Item',
amountInput = 'Send Form/Amount Input',
Expand Down
Loading