Skip to content

fix: error handling try statements #1391

fix: error handling try statements

fix: error handling try statements #1391

You are viewing an older attempt in the history of this workflow run. View latest attempt.
Triggered via pull request December 13, 2024 15:15
Status Failure
Total duration 8m 38s
Artifacts

test-frontend.yaml

on: pull_request
Build | Front-end
1m 47s
Build | Front-end
Matrix: unit-test
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 4 notices
Automation | Registration
Process completed with exit code 1.
[Transaction tool] › tests/workflowTests.test.js:336:3 › Workflow tests › Verify user can unlink multiple files: automation/pages/BasePage.js#L614
1) [Transaction tool] › tests/workflowTests.test.js:336:3 › Workflow tests › Verify user can unlink multiple files Error: locator.count: Target crashed at pages/BasePage.js:614 612 | : `[data-testid^="${selectorPrefix}"]`; 613 | const elements = this.window.locator(selector); > 614 | const count = await elements.count(); | ^ 615 | console.log(`Found ${count} elements with prefix: ${selectorPrefix}`); 616 | return count; 617 | } at FilePage.countElements (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/BasePage.js:614:34) at FilePage.findFileByIndex (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/FilePage.js:161:30) at FilePage.isFileCardVisible (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/FilePage.js:177:30) at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/workflowTests.test.js:353:31
[Transaction tool] › tests/transactionTests.test.js:154:3 › Transaction tests › Verify user can execute Account Create tx with complex key: automation/tests/transactionTests.test.js#L1
1) [Transaction tool] › tests/transactionTests.test.js:154:3 › Transaction tests › Verify user can execute Account Create tx with complex key Test timeout of 30000ms exceeded.
[Transaction tool] › tests/transactionTests.test.js:154:3 › Transaction tests › Verify user can execute Account Create tx with complex key: automation/pages/TransactionPage.js#L661
1) [Transaction tool] › tests/transactionTests.test.js:154:3 › Transaction tests › Verify user can execute Account Create tx with complex key Error: page.waitForSelector: Target page, context or browser has been closed at pages/TransactionPage.js:661 659 | // Construct the selector for the confirmation transaction modal that is visible and in a displayed state 660 | const modalSelector = `[data-testid="${this.confirmTransactionModalSelector}"][style*="display: block"]`; > 661 | await this.window.waitForSelector(modalSelector, { state: 'visible', timeout: 15000 }); | ^ 662 | 663 | // Construct the selector for the enabled sign button within the visible modal 664 | const signButtonSelector = `${modalSelector} [data-testid="${this.buttonSignTransactionSelector}"]:enabled`; at TransactionPage.clickSignTransactionButton (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:661:23) at TransactionPage.createNewAccount (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:422:16) at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/transactionTests.test.js:155:30
[Transaction tool] › tests/transactionTests.test.js:175:3 › Transaction tests › Verify user can execute account delete tx: automation/pages/TransactionPage.js#L661
2) [Transaction tool] › tests/transactionTests.test.js:175:3 › Transaction tests › Verify user can execute account delete tx TimeoutError: page.waitForSelector: Timeout 15000ms exceeded. Call log: - waiting for locator('[data-testid="modal-confirm-transaction"][style*="display: block"]') to be visible at pages/TransactionPage.js:661 659 | // Construct the selector for the confirmation transaction modal that is visible and in a displayed state 660 | const modalSelector = `[data-testid="${this.confirmTransactionModalSelector}"][style*="display: block"]`; > 661 | await this.window.waitForSelector(modalSelector, { state: 'visible', timeout: 15000 }); | ^ 662 | 663 | // Construct the selector for the enabled sign button within the visible modal 664 | const signButtonSelector = `${modalSelector} [data-testid="${this.buttonSignTransactionSelector}"]:enabled`; at TransactionPage.clickSignTransactionButton (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:661:23) at TransactionPage.deleteAccount (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:451:16) at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/transactionTests.test.js:178:27
🎭 Playwright Run Summary
5 passed (19.3s)
🎭 Playwright Run Summary
10 passed (27.7s)
🎭 Playwright Run Summary
1 flaky [Transaction tool] › tests/workflowTests.test.js:336:3 › Workflow tests › Verify user can unlink multiple files 1 skipped 30 passed (2.2m)
🎭 Playwright Run Summary
2 flaky [Transaction tool] › tests/transactionTests.test.js:154:3 › Transaction tests › Verify user can execute Account Create tx with complex key [Transaction tool] › tests/transactionTests.test.js:175:3 › Transaction tests › Verify user can execute account delete tx 1 skipped 33 passed (4.0m)