Skip to content

Commit

Permalink
fix: webwallet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Dec 11, 2024
1 parent 62ed04e commit feea8f8
Showing 1 changed file with 33 additions and 30 deletions.
63 changes: 33 additions & 30 deletions e2e/src/webwallet/page-objects/Dapps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class Dapps extends Navigation {
if (useStarknetKitModal) {
await Promise.all([
dApp.getByRole("button", { name: "Starknetkit Modal" }).click(),
this.handlePopup(credentials, newAccount)
this.handlePopup(credentials, newAccount),
])
} else {
const pagePromise = dApp.context().waitForEvent("page")
Expand All @@ -49,35 +49,43 @@ export default class Dapps extends Navigation {
}

private async fillCredentials(
page: Page,
popup: Page,
credentials: ICredentials,
newAccount: boolean,
) {
await page.locator("[name=email]").fill(credentials.email)
await page.locator('button[type="submit"]').click()
await popup.locator("[name=email]").fill(credentials.email)
await popup.locator('button[type="submit"]').click()
const pin = await mailClient.getPin()
await page.locator('[id^="pin-input"]').first().click()
await page.locator('[id^="pin-input"]').first().fill(pin!)
await popup.locator('[id^="pin-input"]').first().click()
await popup.locator('[id^="pin-input"]').first().fill(pin!)
if (newAccount) {
await page.locator("[name=password]").fill(credentials.password)
await page.locator("[name=repeatPassword]").fill(credentials.password)
await popup.locator("[name=password]").fill(credentials.password)
await popup.locator("[name=repeatPassword]").fill(credentials.password)
} else {
await page.locator("[name=password]").fill(credentials.password)
await popup.locator("[name=password]").fill(credentials.password)
}

await page.locator('button[type="submit"]').click()
// password submit
await popup.locator('button[type="submit"]').click()

await page.waitForLoadState()
await page.locator('button[type="submit"]').click()
await Promise.all([
popup.waitForURL("**/connect?**"),
popup.waitForLoadState("networkidle"),
popup.waitForTimeout(2000), // additional safety delay if needed
])

return page
}
const allButtons = popup.locator("button")
const count = await allButtons.count()

private async handlePopup(
// check if connect page is showed by checking buttons
if (count > 0) {
await popup.locator('button[type="submit"]').click()
}

credentials: ICredentials,
newAccount: boolean,
) {
return popup
}

private async handlePopup(credentials: ICredentials, newAccount: boolean) {
const popupPromise = this.dApp.waitForEvent("popup")
await expect(this.dApp.locator("p:text-is('Email')")).toBeVisible()
await this.dApp.locator("p:text-is('Email')").click()
Expand All @@ -87,45 +95,40 @@ export default class Dapps extends Navigation {
return this.fillCredentials(popup, credentials, newAccount)
}

async sendERC20transaction({
type,
}: {
type: "ERC20" | "Multicall"
}) {
async sendERC20transaction({ type }: { type: "ERC20" | "Multicall" }) {
const popupPromise = this.dApp.waitForEvent("popup")

Check failure on line 99 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp

2) [WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp TimeoutError: page.waitForEvent: Timeout 120000ms exceeded while waiting for event "popup" =========================== logs =========================== waiting for event "popup" ============================================================ at src/webwallet/page-objects/Dapps.ts:99 97 | 98 | async sendERC20transaction({ type }: { type: "ERC20" | "Multicall" }) { > 99 | const popupPromise = this.dApp.waitForEvent("popup") | ^ 100 | const dialogPromise = this.dApp.waitForEvent("dialog") 101 | console.log("Sending ERC20 transaction") 102 | await this.dApp.locator('button :text-is("Transactions")').click() at Dapps.sendERC20transaction (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:99:36) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/transactions.spec.ts:13:27

Check failure on line 99 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp

2) [WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForEvent: Timeout 120000ms exceeded while waiting for event "popup" =========================== logs =========================== waiting for event "popup" ============================================================ at src/webwallet/page-objects/Dapps.ts:99 97 | 98 | async sendERC20transaction({ type }: { type: "ERC20" | "Multicall" }) { > 99 | const popupPromise = this.dApp.waitForEvent("popup") | ^ 100 | const dialogPromise = this.dApp.waitForEvent("dialog") 101 | console.log("Sending ERC20 transaction") 102 | await this.dApp.locator('button :text-is("Transactions")').click() at Dapps.sendERC20transaction (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:99:36) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/transactions.spec.ts:13:27

Check failure on line 99 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/transactions.spec.ts:18:7 › Transactions › send an Multicall from testDapp

3) [WebWallet] › src/webwallet/specs/transactions.spec.ts:18:7 › Transactions › send an Multicall from testDapp TimeoutError: page.waitForEvent: Timeout 120000ms exceeded while waiting for event "popup" =========================== logs =========================== waiting for event "popup" ============================================================ at src/webwallet/page-objects/Dapps.ts:99 97 | 98 | async sendERC20transaction({ type }: { type: "ERC20" | "Multicall" }) { > 99 | const popupPromise = this.dApp.waitForEvent("popup") | ^ 100 | const dialogPromise = this.dApp.waitForEvent("dialog") 101 | console.log("Sending ERC20 transaction") 102 | await this.dApp.locator('button :text-is("Transactions")').click() at Dapps.sendERC20transaction (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:99:36) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/transactions.spec.ts:26:27
const dialogPromise = this.dApp.waitForEvent("dialog")
console.log("Sending ERC20 transaction")
await this.dApp.locator('button :text-is("Transactions")').click()

Check failure on line 102 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp

2) [WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp TimeoutError: locator.click: Timeout 120000ms exceeded. Call log: - waiting for locator('button :text-is("Transactions")') - locator resolved to <div class="flex items-center gap-2">Transactions</div> - attempting click action - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #4 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #5 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #6 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #7 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #8 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #9 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #10 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #11 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #12 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #13 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #14 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #15 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #16 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #17 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #18 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #19 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #20 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #21 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #22 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #23 - waiting

Check failure on line 102 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp

2) [WebWallet] › src/webwallet/specs/transactions.spec.ts:5:7 › Transactions › send an ERC20 from testDapp Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 120000ms exceeded. Call log: - waiting for locator('button :text-is("Transactions")') - locator resolved to <div class="flex items-center gap-2">Transactions</div> - attempting click action - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #4 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #5 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #6 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #7 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #8 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #9 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #10 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #11 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #12 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #13 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #14 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #15 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #16 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #17 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #18 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #19 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #20 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #21 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #22 - waiting 500ms - waiting for element to be visible, enabled an

Check failure on line 102 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/transactions.spec.ts:18:7 › Transactions › send an Multicall from testDapp

3) [WebWallet] › src/webwallet/specs/transactions.spec.ts:18:7 › Transactions › send an Multicall from testDapp TimeoutError: locator.click: Timeout 120000ms exceeded. Call log: - waiting for locator('button :text-is("Transactions")') - locator resolved to <div class="flex items-center gap-2">Transactions</div> - attempting click action - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #4 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #5 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #6 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #7 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #8 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #9 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #10 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #11 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #12 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #13 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #14 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #15 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #16 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #17 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #18 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #19 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #20 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #21 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #22 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #23 - wa
const [_, popup] = await Promise.all([
const [, popup] = await Promise.all([
this.dApp.locator(`button :text-is("Send ${type}")`).click(),
popupPromise
popupPromise,
])
console.log("Sending ERC20 transaction: send clicked")

await expect(popup.getByText("Review transaction")).toBeVisible()
console.log("Sending ERC20 transaction: review transaction visible")
await expect(popup.getByText("Confirm")).toBeVisible()
console.log("Sending ERC20 transaction: confirm visible")
const [__, dialog] = await Promise.all([
const [, dialog] = await Promise.all([
popup.getByText("Confirm").click(),
dialogPromise
dialogPromise,
])
console.log("Sending ERC20 transaction: confirm clicked")

console.log("Signing message: wait for dialog")
expect(dialog.message()).toContain("Transaction sent")
await dialog.accept()

}

async signMessage() {
console.log("Signing message")
const popupPromise = this.dApp.waitForEvent("popup")

Check failure on line 126 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp

1) [WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp TimeoutError: page.waitForEvent: Timeout 120000ms exceeded while waiting for event "popup" =========================== logs =========================== waiting for event "popup" ============================================================ at src/webwallet/page-objects/Dapps.ts:126 124 | async signMessage() { 125 | console.log("Signing message") > 126 | const popupPromise = this.dApp.waitForEvent("popup") | ^ 127 | await this.dApp.locator('button :text-is("Signing")').click() 128 | await this.dApp.locator("[name=short-text]").fill("some message to sign") 129 | const [, popup] = await Promise.all([ at Dapps.signMessage (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:126:36) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/signMessage.spec.ts:13:27

Check failure on line 126 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp

1) [WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForEvent: Timeout 120000ms exceeded while waiting for event "popup" =========================== logs =========================== waiting for event "popup" ============================================================ at src/webwallet/page-objects/Dapps.ts:126 124 | async signMessage() { 125 | console.log("Signing message") > 126 | const popupPromise = this.dApp.waitForEvent("popup") | ^ 127 | await this.dApp.locator('button :text-is("Signing")').click() 128 | await this.dApp.locator("[name=short-text]").fill("some message to sign") 129 | const [, popup] = await Promise.all([ at Dapps.signMessage (/__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/page-objects/Dapps.ts:126:36) at /__w/demo-dapp-starknet/demo-dapp-starknet/e2e/src/webwallet/specs/signMessage.spec.ts:13:27
await this.dApp.locator('button :text-is("Signing")').click()

Check failure on line 127 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp

1) [WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp TimeoutError: locator.click: Timeout 120000ms exceeded. Call log: - waiting for locator('button :text-is("Signing")') - locator resolved to <div class="flex items-center gap-2">Signing</div> - attempting click action - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #4 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #5 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #6 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #7 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #8 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #9 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #10 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #11 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #12 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #13 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #14 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #15 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #16 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #17 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #18 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #19 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #20 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #21 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #22 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #23 - waiting 500ms

Check failure on line 127 in e2e/src/webwallet/page-objects/Dapps.ts

View workflow job for this annotation

GitHub Actions / test-webwallet

[WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp

1) [WebWallet] › src/webwallet/specs/signMessage.spec.ts:5:7 › Sign message › sign a message from testDapp Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: locator.click: Timeout 120000ms exceeded. Call log: - waiting for locator('button :text-is("Signing")') - locator resolved to <div class="flex items-center gap-2">Signing</div> - attempting click action - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #4 - waiting 100ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #5 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #6 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #7 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #8 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #9 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #10 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #11 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #12 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #13 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #14 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #15 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #16 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #17 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #18 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #19 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #20 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #21 - waiting 500ms - waiting for element to be visible, enabled and stable - element is not enabled - retrying click action, attempt #22 - waiting 500ms - waiting for element to be visible, enabled and stable
await this.dApp.locator("[name=short-text]").fill("some message to sign")
const [_, popup] = await Promise.all([
const [, popup] = await Promise.all([
this.dApp.locator('button[type="submit"]').click(),
popupPromise
popupPromise,
])

await expect(popup.getByText("Sign Message")).toBeVisible()
Expand Down

0 comments on commit feea8f8

Please sign in to comment.