Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chloeYue committed Dec 18, 2024
1 parent 322db4e commit 8053e22
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions test/e2e/page-objects/pages/test-dapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,20 @@ class TestDapp {
}) {
console.log('Connect account to test dapp');
await this.driver.clickElement(this.connectAccountButton);
await this.confirmConnectAccountModal();
await this.check_connectedAccounts(publicAddress);
await this.driver.waitForSelector(this.localhostNetworkMessage);
if (connectAccountButtonEnabled) {
await this.confirmConnectAccountModal();
} else {
await this.driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog);
await this.driver.waitForSelector(this.connectMetaMaskMessage);
const confirmConnectDialogButton = await this.driver.findElement(
this.confirmDialogButton,
);
assert.equal(await confirmConnectDialogButton.isEnabled(), false);
}
if (publicAddress) {
await this.check_connectedAccounts(publicAddress);
await this.driver.waitForSelector(this.localhostNetworkMessage);
}
}

async createDepositTransaction() {
Expand Down

0 comments on commit 8053e22

Please sign in to comment.