Skip to content

Commit d959047

Browse files
authored
test(extension): add error log in dapp retry (#726)
* test(extension): add error log in dapp retry * test(extension): increase timeout
1 parent 64ff7cd commit d959047

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/e2e-tests/src/assert/dAppConnectorAssert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class DAppConnectorAssert {
203203

204204
async waitUntilBalanceNotEmpty() {
205205
await browser.waitUntil(async () => (await ExampleDAppPage.walletUsedAddress.getText()) !== '', {
206-
timeout: 3000,
206+
timeout: 6000,
207207
timeoutMsg: 'failed while waiting for DApp connection data'
208208
});
209209
}

packages/e2e-tests/src/pageobject/dAppConnectorPageObject.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ class DAppConnectorPageObject {
115115
) {
116116
try {
117117
await this.switchToDappConnectorPopupAndAuthorize(testDAppDetails, mode);
118-
} catch {
119-
Logger.log('Failed to authorize Dapp. Retry will be executed');
118+
} catch (error) {
119+
Logger.log(`Failed to authorize Dapp. Retry will be executed. Error:\n${error}`);
120120
if ((await browser.getWindowHandles()).length === 3) {
121121
await this.closeDappConnectorWindowHandle();
122122
}

0 commit comments

Comments
 (0)