Skip to content

dorny/test-reporter fails with error Error: TypeError: stackTrace.split is not a function when there is test failure. #241

@Anudeep33

Description

@Anudeep33

dorny/test-reporter fails with error when there is test failure.

Error: TypeError: stackTrace.split is not a function
below is junit.xml file



64 | await this.page.locator(this.offlineSummarySelector).waitFor(); | ^ 65 | await this.page.locator(this.onlineSummarySelector).waitFor(); 66 | await expect(this.onlineSummary).toHaveText("Online"); 67 | await expect(this.offlineSummary).toHaveText("Offline"); at OverviewPage.verifyOverviewPageElements (/qa-automation/test/frontend/login/login.test.ts:41:34 attachment #1: screenshot (image/png) ---------------------------------------------------------- test-results/frontend-login-login--login-RTA-83-Verify-user-is-able-to-log-in-with-an-admin-account-sanity-mobile-Chrome/test-failed-1.png ------------------------------------------------------------------------------------------------ Retry #1 --------------------------------------------------------------------------------------- locator.waitFor: Timeout 30000ms exceeded. =========================== logs =========================== waiting for selector "[data-testid="summary-Offline"]" to be visible ============================================================ at ../page/OverviewPage.ts:64 62 | 63 | async verifyOverviewPageElements() { > 64 | await this.page.locator(this.offlineSummarySelector).waitFor(); | ^ 65 | await this.page.locator(this.onlineSummarySelector).waitFor(); 66 | await expect(this.onlineSummary).toHaveText("Online"); 67 | await expect(this.offlineSummary).toHaveText("Offline"); at OverviewPage.verifyOverviewPageElements (/qa-automation/test/frontend/login/login.test.ts:41:34 attachment #1: trace (application/zip) --------------------------------------------------------- test-results/frontend-login-login--login-RTA-83-Verify-user-is-able-to-log-in-with-an-admin-account-sanity-mobile-Chrome-retry1/trace.zip Usage: npx playwright show-trace test-results/frontend-login-login--login-RTA-83-Verify-user-is-able-to-log-in-with-an-admin-account-sanity-mobile-Chrome-retry1/trace.zip ------------------------------------------------------------------------------------------------ attachment #2: screenshot (image/png) ---------------------------------------------------------- test-results/frontend-login-login--login-RTA-83-Verify-user-is-able-to-log-in-with-an-admin-account-sanity-mobile-Chrome-retry1/test-failed-1.png ------------------------------------------------------------------------------------------------ ]]> [[ATTACHMENT|../test-results/frontend-login-login--login-RTA-83-Verify-user-is-able-to-log-in-with-an-admin-account-sanity-mobile-Chrome-retry1/trace.zip]]

[[ATTACHMENT|../test-results/frontend-login-login--login-RTA-83-Verify-user-is-able-to-log-in-with-an-admin-account-sanity-mobile-Chrome-retry1/test-failed-1.png]]
]]>



Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions