Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
seaona committed Mar 5, 2025
1 parent 8c17b13 commit 267c636
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ class Confirmation {
}

async clickFooterConfirmButton() {
await this.driver.clickElementAndWaitForWindowToClose(
this.footerConfirmButton,
);
await this.driver.clickElement(this.footerConfirmButton);
}

async clickHeaderAccountDetailsButton() {
Expand Down
11 changes: 11 additions & 0 deletions test/e2e/tests/confirmations/transactions/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export async function createContractDeploymentTransaction(driver: Driver) {
}

export async function confirmContractDeploymentTransaction(driver: Driver) {
await driver.waitUntilXWindowHandles(3);
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);

await driver.waitForSelector({
Expand All @@ -49,6 +50,9 @@ export async function confirmContractDeploymentTransaction(driver: Driver) {

await scrollAndConfirmAndAssertConfirm(driver);

await driver.delay(2000);
await driver.waitUntilXWindowHandles(2);

await driver.switchToWindowWithTitle(WINDOW_TITLES.ExtensionInFullScreenView);
await driver.clickElement({ text: 'Activity', tag: 'button' });
await driver.waitForSelector(
Expand All @@ -59,6 +63,7 @@ export async function confirmContractDeploymentTransaction(driver: Driver) {
export async function confirmRedesignedContractDeploymentTransaction(
driver: Driver,
) {
await driver.waitUntilXWindowHandles(3);
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);

await driver.waitForSelector({
Expand All @@ -73,6 +78,9 @@ export async function confirmRedesignedContractDeploymentTransaction(

await scrollAndConfirmAndAssertConfirm(driver);

await driver.delay(2000);
await driver.waitUntilXWindowHandles(2);

await driver.switchToWindowWithTitle(WINDOW_TITLES.ExtensionInFullScreenView);
await driver.clickElement({ text: 'Activity', tag: 'button' });
await driver.waitForSelector(
Expand All @@ -86,6 +94,8 @@ export async function createDepositTransaction(driver: Driver) {
}

export async function confirmDepositTransaction(driver: Driver) {
await driver.waitUntilXWindowHandles(3);

await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);

await driver.waitForSelector({
Expand All @@ -109,6 +119,7 @@ export async function confirmDepositTransactionWithCustomNonce(
driver: Driver,
customNonce: string,
) {
await driver.waitUntilXWindowHandles(3);
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);

await driver.waitForSelector({
Expand Down

0 comments on commit 267c636

Please sign in to comment.