Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
"@types/flat": "5.0.2",
"@typescript-eslint/eslint-plugin": "6.0.0",
"@typescript-eslint/parser": "6.0.0",
"@wdio/allure-reporter": "8.24.0",
"@wdio/cli": "8.24.0",
"@wdio/config": "8.24.0",
"@wdio/cucumber-framework": "8.24.0",
"@wdio/devtools-service": "8.24.0",
"@wdio/local-runner": "8.24.0",
"@wdio/spec-reporter": "8.24.0",
"@wdio/types": "8.24.0",
"@wdio/allure-reporter": "8.20.0",
"@wdio/cli": "8.20.0",
"@wdio/config": "8.20.0",
"@wdio/cucumber-framework": "8.20.0",
"@wdio/devtools-service": "8.20.0",
"@wdio/local-runner": "8.20.0",
"@wdio/spec-reporter": "8.20.0",
"@wdio/types": "8.20.0",
"allure-commandline": "2.24.1",
"clipboardy": "2.3.0",
"eslint": "8.38.0",
Expand All @@ -53,6 +53,6 @@
"ts-node": "10.9.1",
"typescript": "4.9.5",
"wdio-intercept-service": "4.4.0",
"webdriverio": "8.24.0"
"webdriverio": "8.20.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Feature: Analytics - Posthog - Sending - Extended View
| ADA | Cardano | tADA | 1.1234 |
When I click "Add bundle" button on "Send" page
And I enter "$test_handle_1" in the bundle 2 recipient's address
And Green tick icon is displayed next to ADA handle
And I enter a value of: 1 to the "tADA" asset in bundle 2
And I click "Review transaction" button on "Send" page
Then I validate latest analytics single event "send | transaction data | review transaction | click"
Expand All @@ -29,7 +30,7 @@ Feature: Analytics - Posthog - Sending - Extended View
And I click "View transaction" button on submitted transaction page
And Local storage unconfirmedTransaction contains tx with type: "internal"
And I validate latest analytics single event "send | all done | view transaction | click"
When the Sent transaction is displayed with value: "1.12 tADA" and tokens count 1
When the Sent transaction is displayed with value: "2.12 tADA" and tokens count 1
Then I validate latest analytics single event "send | transaction confirmed"
And I validate that the "send | transaction confirmed" event includes property "tx_creation_type" with value "internal" in posthog
And I validate that 7 analytics event(s) have been sent
Expand Down
9 changes: 6 additions & 3 deletions packages/e2e-tests/src/utils/networkManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ export class NetworkManager {
const approximateTimestamp = new Date().toString();
const combinedFailedRequestInfo = `URL:\n${request.response.url}\n\nRESPONSE CODE:\n${request.response.status}\n\nAPPROXIMATE TIME:\n${approximateTimestamp}\n\nRESPONSE BODY:\n${responseBody}\n\nREQUEST PAYLOAD:\n${requestPayload}`;
allure.addAttachment('Failed request', combinedFailedRequestInfo, 'text/plain');
console.error('Failed request', combinedFailedRequestInfo);
console.error(
'Failed request',
`URL: ${request.response.url} | RESPONSE CODE: ${request.response.status}`
);
}
});
});
Expand All @@ -124,8 +127,8 @@ export class NetworkManager {
let postData = '';
try {
postData = JSON.stringify(await client.send('Network.getRequestPostData', { requestId }));
} catch (error) {
Logger.warn(`${error}`);
} catch {
/* empty */
}
return postData;
};
Expand Down
1 change: 0 additions & 1 deletion packages/e2e-tests/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class ExtensionUtils {
break;
}
}
Logger.log(`Using network: ${network} with id: ${id}`);
return { name: network, id };
}

Expand Down
7 changes: 6 additions & 1 deletion packages/e2e-tests/wdio.conf.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ export const config: WebdriverIO.Config = {
connectionRetryCount: 3,
framework: 'cucumber',
reporters: [
'spec',
[
'spec',
{
realtimeReporting: true
}
],
[
'allure',
{
Expand Down
Loading