Skip to content

Commit 9c1f768

Browse files
authored
test maintenance 29 Apr 2025 (#1847)
* test(extension): fix LW-11539 on Firefox * test(extension): fix LW-8746 on Firefox * test(extension): fix LW-8448 * test(extension): fix LW-9986 for Firefox
1 parent 45ecdf0 commit 9c1f768

File tree

5 files changed

+18
-7
lines changed

5 files changed

+18
-7
lines changed

packages/e2e-tests/src/elements/AddressInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class AddressInput {
6262

6363
clickAddAddressButton = async (): Promise<void> => {
6464
await browser.pause(500);
65-
await this.searchLoader.waitForClickable({ reverse: true, timeout: 5000 });
65+
await this.ctaButton.waitForClickable();
6666
await this.ctaButton.click();
6767
};
6868
}

packages/e2e-tests/src/elements/settings/MessageSigningAllDoneDrawer.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,23 @@ class MessageSigningAllDoneDrawer extends CommonDrawerElements {
5555
}
5656

5757
async clickOnCopyToClipboardButtonInSignatureSection(): Promise<void> {
58-
await this.signatureCopyToClipboardButton.waitForClickable();
59-
await this.signatureCopyToClipboardButton.click();
58+
if (browser.isFirefox) {
59+
await this.signatureCopyToClipboardButton.$('svg').waitForClickable();
60+
await this.signatureCopyToClipboardButton.$('svg').click();
61+
} else {
62+
await this.signatureCopyToClipboardButton.waitForClickable();
63+
await this.signatureCopyToClipboardButton.click();
64+
}
6065
}
6166

6267
async clickOnCopyToClipboardButtonInPublicKeySection(): Promise<void> {
63-
await this.keyCopyToClipboardButton.waitForClickable();
64-
await this.keyCopyToClipboardButton.click();
68+
if (browser.isFirefox) {
69+
await this.keyCopyToClipboardButton.$('svg').waitForClickable();
70+
await this.keyCopyToClipboardButton.$('svg').click();
71+
} else {
72+
await this.keyCopyToClipboardButton.waitForClickable();
73+
await this.keyCopyToClipboardButton.click();
74+
}
6575
}
6676

6777
async clickOnSignAnotherMessageButton(): Promise<void> {

packages/e2e-tests/src/features/MultiDelegationPageExtended.part1.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Feature: Staking Page - Extended View
4040
| a Ocean | 3 | OCEAN |
4141
| a ocean | 3 | OCEAN |
4242
| ABC# | 0 | |
43-
| HUA | 1 | HUADA |
43+
| HUA | 2 | HUADA |
4444
| 123456 | 0 | |
4545
| ZZZ | 3 | ZZZZX |
4646
| £££ | 0 | |

packages/e2e-tests/src/features/MultiDelegationPageExtended.part2.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ Feature: Staking Page - Extended View
108108
And I open Browse pools tab
109109
And I switch to grid view on "Browse pools" tab
110110
When I scroll down 500 pixels
111+
And I scroll down 500 pixels
111112
Then stake pool grid card skeleton is displayed
112113
When I wait 500 milliseconds
113114
Then stake pool grid card skeleton is not displayed

packages/e2e-tests/src/steps/sendTransactionSimpleSteps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Then(
214214
/^click "(Add|Remove) address" button inside address input (\d+)$/,
215215
async (_ignored: string, inputIndex: number) => {
216216
const addressInput = new AddressInput(inputIndex);
217-
await addressInput.searchLoader.waitForClickable({ reverse: true });
217+
await addressInput.searchLoader.waitForDisplayed({ reverse: true, timeout: 15_000 });
218218
await addressInput.clickAddAddressButton();
219219
}
220220
);

0 commit comments

Comments
 (0)