Skip to content

Commit 72a0784

Browse files
committed
Fixed quote-page
1 parent 7a17cb6 commit 72a0784

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

test/e2e/page-objects/pages/bridge/quote-page.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,10 @@ class BridgeQuotePage {
240240
timeout: 60000,
241241
});
242242
console.log('Transaction complete modal is displayed');
243-
await this.driver.clickElement(this.closeButton);
243+
const closeButton = await this.driver.waitForSelector(this.closeButton, {
244+
timeout: 60000,
245+
});
246+
await closeButton.click();
244247
console.log('Clicked View activity button');
245248
};
246249

@@ -250,7 +253,10 @@ class BridgeQuotePage {
250253
timeout: 60000,
251254
});
252255
console.log('Transaction failed modal is displayed');
253-
await this.driver.clickElement(this.closeButton);
256+
const closeButton = await this.driver.waitForSelector(this.closeButton, {
257+
timeout: 60000,
258+
});
259+
await closeButton.click();
254260
console.log('Clicked View activity button');
255261
};
256262

0 commit comments

Comments
 (0)