Skip to content

Commit 2e2ef40

Browse files
authored
test(extension): maintenance 20 May 2025 (#1874)
* test(extension): update action-slack-notify version * test(extension): add LW-11814 and LW-12302 * test(extension): add missing types to certain POMs * test(extension): remove unused steps
1 parent 3174dc3 commit 2e2ef40

18 files changed

+90
-86
lines changed

.github/workflows/e2e-tests-linux-split.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ jobs:
233233
echo "https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASSWORD }}@${{ secrets.E2E_REPORTS_URL }}/all/linux/${{ env.BROWSER }}/${{ env.RUN }}/index.html | browser: ${{ env.BROWSER }} | network: ${{ env.NETWORK }} | platform: linux | tags: ${{ needs.setup.outputs.tags }} | smoke only: ${{ needs.setup.outputs.smoke_only }}" >> $GITHUB_STEP_SUMMARY
234234
235235
- name: Slack Notification
236-
uses: rtCamp/action-slack-notify@v2.3.2
236+
uses: rtCamp/action-slack-notify@v2.3.3
237237
env:
238238
SLACK_COLOR: "${{ contains(needs.*.result, 'failure') && 'failure' || 'good' }}"
239239
SLACK_ICON_EMOJI: ':lace:'

packages/e2e-tests/src/assert/stakingConfirmationScreenAssert.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ class StakePoolConfirmationScreenAssert {
4747
await StakingConfirmationDrawer.nextButton.waitForDisplayed();
4848
await StakingConfirmationDrawer.txFeeLabel.waitForDisplayed();
4949
}
50-
51-
async assertSeeNextButtonEnabled(isEnabled: boolean) {
52-
await StakingConfirmationDrawer.nextButton.waitForEnabled({ timeout: 15_000, reverse: !isEnabled });
53-
}
5450
}
5551

5652
export default new StakePoolConfirmationScreenAssert();

packages/e2e-tests/src/assert/stakingPageAssert.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ import { StakePool } from '../data/expectedStakePoolsData';
77
import { browser } from '@wdio/globals';
88

99
class StakingPageAssert {
10-
assertStakePoolSwitched = async (stakePoolName: string) => {
11-
await browser.waitUntil(async () => (await StakingInfoComponent.poolName.getText()) === stakePoolName, {
12-
timeout: 180_000,
13-
interval: 2000,
14-
timeoutMsg: 'failed while waiting for stake Pool Switch'
15-
});
16-
};
17-
1810
assertSeeCurrentlyStakingComponent = async (
1911
expectedStakePool: StakePool,
2012
mode: 'extended' | 'popup',

packages/e2e-tests/src/assert/topNavigationAssert.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ class TopNavigationAssert {
6363
expect(await wallet.subtitle.getText()).to.equal(expectedName);
6464
}
6565

66+
async assertSeeEditOptionForWallet(index: number, shouldBeDisplayed: boolean): Promise<void> {
67+
const wallet = new WalletOption(index);
68+
await wallet.editButton.waitForDisplayed({ reverse: !shouldBeDisplayed });
69+
}
70+
6671
async assertWalletIsActive(index: number): Promise<void> {
6772
await new WalletOption(index).status.waitForDisplayed();
6873
}
@@ -250,6 +255,10 @@ class TopNavigationAssert {
250255
async assertDoNotSeeNamiModeSwitch() {
251256
await MenuHeader.menuNamiModeSwitch.waitForDisplayed({ reverse: true });
252257
}
258+
259+
async assertSeeAddSharedWalletOption(shouldBeDisplayed: boolean) {
260+
await MenuHeader.menuAddSharedWalletButton.waitForDisplayed({ reverse: !shouldBeDisplayed });
261+
}
253262
}
254263

255264
export default new TopNavigationAssert();

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1+
/* global WebdriverIO */
2+
import type { ChainablePromiseElement } from 'webdriverio';
3+
14
class ForgotPasswordModal {
25
private readonly TITLE = '[data-testid="forgot-password-title"]';
36
private readonly DESCRIPTION = '[data-testid="forgot-password-description"]';
47
private readonly CONFIRM_BUTTON = '[data-testid="forgot-password-confirm-button"]';
58
private readonly CANCEL_BUTTON = '[data-testid="forgot-password-cancel-button"]';
69

7-
get title() {
10+
get title(): ChainablePromiseElement<WebdriverIO.Element> {
811
return $(this.TITLE);
912
}
1013

11-
get description() {
14+
get description(): ChainablePromiseElement<WebdriverIO.Element> {
1215
return $(this.DESCRIPTION);
1316
}
1417

15-
get confirmButton() {
18+
get confirmButton(): ChainablePromiseElement<WebdriverIO.Element> {
1619
return $(this.CONFIRM_BUTTON);
1720
}
1821

19-
get cancelButton() {
22+
get cancelButton(): ChainablePromiseElement<WebdriverIO.Element> {
2023
return $(this.CANCEL_BUTTON);
2124
}
2225
}

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1+
/* global WebdriverIO */
2+
import type { ChainablePromiseElement } from 'webdriverio';
3+
14
class Tooltip {
25
private TOOLTIP_COMPONENT = '[data-testid="tooltip"]';
36
private TOOLTIP_LABEL = '[data-testid="tooltip-label"]';
47
private TOOLTIP_VALUE = '[data-testid="tooltip-value"]';
58

6-
get component() {
9+
get component(): ChainablePromiseElement<WebdriverIO.Element> {
710
return $(this.TOOLTIP_COMPONENT);
811
}
912

10-
get label() {
13+
get label(): ChainablePromiseElement<WebdriverIO.Element> {
1114
return $(this.TOOLTIP_LABEL);
1215
}
1316

14-
get value() {
17+
get value(): ChainablePromiseElement<WebdriverIO.Element> {
1518
return $(this.TOOLTIP_VALUE);
1619
}
1720
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class WalletOption {
3636
}
3737

3838
get editButton(): ChainablePromiseElement<WebdriverIO.Element> {
39-
return $(`${this.EDIT_BUTTON}`);
39+
return $(`${this.CONTAINER_SELECTOR}${this.EDIT_BUTTON}`);
4040
}
4141

4242
get status(): ChainablePromiseElement<WebdriverIO.Element> {

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
/* global WebdriverIO */
2+
import type { ChainablePromiseElement } from 'webdriverio';
3+
14
class GlossaryPage {
25
private ACTIVE_ARTICLE = 'div[data-active="true"]';
36
private ACTIVE_ARTICLE_TITLE = `${this.ACTIVE_ARTICLE} button`;
47

5-
get activeArticle() {
8+
get activeArticle(): ChainablePromiseElement<WebdriverIO.Element> {
69
return $(this.ACTIVE_ARTICLE);
710
}
811

9-
get activeArticleTitle() {
12+
get activeArticleTitle(): ChainablePromiseElement<WebdriverIO.Element> {
1013
return $(this.ACTIVE_ARTICLE_TITLE);
1114
}
1215
}

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1+
/* global WebdriverIO */
2+
import type { ChainablePromiseElement } from 'webdriverio';
3+
14
class SearchInput {
25
private CONTAINER = '[data-testid="search-input-container"]';
36
private INPUT = '[data-testid="search-input"]';
47
private ICON = '[data-testid="search-icon"]';
58
private CLEAR_BUTTON = '[data-testid="search-clear-button"]';
69

7-
get container() {
10+
get container(): ChainablePromiseElement<WebdriverIO.Element> {
811
return $(this.CONTAINER);
912
}
1013

11-
get input() {
14+
get input(): ChainablePromiseElement<WebdriverIO.Element> {
1215
return $(this.INPUT);
1316
}
1417

15-
get icon() {
18+
get icon(): ChainablePromiseElement<WebdriverIO.Element> {
1619
return $(this.ICON);
1720
}
1821

19-
get clearButton() {
22+
get clearButton(): ChainablePromiseElement<WebdriverIO.Element> {
2023
return $(this.CLEAR_BUTTON);
2124
}
2225
}

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
/* global WebdriverIO */
2+
import type { ChainablePromiseElement } from 'webdriverio';
3+
14
class SectionTitle {
25
private SECTION_TITLE = '[data-testid="section-title"]';
36
private SECTION_COUNTER = '[data-testid="section-title-counter"]';
47

5-
get sectionTitle() {
8+
get sectionTitle(): ChainablePromiseElement<WebdriverIO.Element> {
69
return $(this.SECTION_TITLE);
710
}
811

9-
get sectionCounter() {
12+
get sectionCounter(): ChainablePromiseElement<WebdriverIO.Element> {
1013
return $(this.SECTION_COUNTER);
1114
}
1215

0 commit comments

Comments
 (0)