Skip to content

Commit

Permalink
test(extension): update LW-5044
Browse files Browse the repository at this point in the history
  • Loading branch information
wklos-iohk committed Apr 25, 2024
1 parent 92eabfb commit 4e016de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export class TokenSearchResult {
}

get grayedOutTokenIcon(): ChainablePromiseElement<WebdriverIO.Element> {
return $(String(`(${this.CONTAINER}${this.TOKEN_ICON}//div[contains(@class, 'overlay')]`));
return $(String(`${this.CONTAINER}${this.TOKEN_ICON}//div[contains(@class, 'overlay')]`));
}

get checkmarkInSelectedToken(): ChainablePromiseElement<WebdriverIO.Element> {
return $(String(`(${this.CONTAINER}${this.TOKEN_ICON}//*[name()='svg']`));
return $(String(`${this.CONTAINER}${this.TOKEN_ICON}//*[name()='svg']`));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class TokenSelectionPage extends CommonDrawerElements {
};

deselectToken = async (assetType: string, index: number) => {
assetType === 'Tokens' ? await this.tokenItem(index).container.click() : await this.nftNames[index].click();
assetType === 'Tokens' ? await this.tokenItem(Number(index)).container.click() : await this.nftNames[index].click();
};

saveSelectedTokens = async (assetType: string, bundle: number) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Feature: Send - Multiple selection for Popup View
And click on the <assetsType> button in the coin selector dropdown
And I click "Select multiple" button on asset picker drawer
And I select amount: 30 of asset type: <assetsType>
Then the 3 selected <assetsType> are grayed out and display checkmark
Then the 30 selected <assetsType> are grayed out and display checkmark
And I see counter with number: 30 of selected tokens
When I deselect <assetsType> 30
Then the 2 selected <assetsType> are grayed out and display checkmark
Then the 29 selected <assetsType> are grayed out and display checkmark
And I see counter with number: 29 of selected tokens
When I save selected <assetsType> in bundle 1
And I click "Add to transaction" button on asset picker drawer
Expand Down

0 comments on commit 4e016de

Please sign in to comment.