Skip to content
Merged
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
@@ -1,4 +1,4 @@
import { Locator, Page, test } from '@playwright/test';
import { Locator, Page, test, expect } from '@playwright/test';

export class WalletOperationPage {
connectBtn: Locator;
Expand Down Expand Up @@ -86,7 +86,12 @@ export class WalletOperationPage {
await this.setHighGasFeeButton.click();
}
await this.confirmButton.waitFor({ state: 'visible', timeout: 30000 });
await this.confirmButton.click();
try {
await expect(this.confirmButton).toBeEnabled({ timeout: 10000 });
} catch {
// button is not enabled. Try to click to the button in the next step
}
await this.confirmButton.click({ force: true });
}

async getReceiptAddress() {
Expand Down
Loading