ci: Updating workflow to run codecovarage. #1192
test-frontend.yaml
on: pull_request
Build | Front-end
1m 55s
Matrix: unit-test
Matrix: test
Annotations
5 errors and 5 notices
[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/BasePage.js#L85
1) [Transaction tool] › tests/transactionTests.test.js:154:3 › Transaction tests › Verify user can execute Account Create tx with complex key
Error: locator.fill: Target page, context or browser has been closed
at pages/BasePage.js:85
83 | console.log(`Filling element with selector: ${selector} with value: ${value}`);
84 | const element = this.getElement(selector, index);
> 85 | await element.fill(value);
| ^
86 | }
87 |
88 | /**
at TransactionPage.fill (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/BasePage.js:85:19)
at TransactionPage.fillInPublicKeyField (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:696:16)
at TransactionPage.addPublicKeyAtDepth (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:277:16)
at TransactionPage.createComplexKeyStructure (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:309:5)
at TransactionPage.handleComplexKeyCreation (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:439:5)
at TransactionPage.createNewAccount (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:402:7)
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
|
[Transaction tool] › tests/transactionTests.test.js:311:3 › Transaction tests › Verify user can execute approve allowance tx:
automation/tests/transactionTests.test.js#L1
3) [Transaction tool] › tests/transactionTests.test.js:311:3 › Transaction tests › Verify user can execute approve allowance tx
Test timeout of 30000ms exceeded.
|
[Transaction tool] › tests/transactionTests.test.js:311:3 › Transaction tests › Verify user can execute approve allowance tx:
automation/utils/util.js#L98
3) [Transaction tool] › tests/transactionTests.test.js:311:3 › Transaction tests › Verify user can execute approve allowance tx
TypeError: transactionId.replace is not a function
at utils/util.js:98
96 | function formatTransactionId(transactionId) {
97 | // Replace '@' with '-'
> 98 | let formattedId = transactionId.replace('@', '-');
| ^
99 |
100 | // Regex to find the first dot after a sequence of digits that follows the '-' replacing '@'
101 | // This regex specifically avoids changing any dots before the '-'
at formatTransactionId (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/utils/util.js:98:35)
at getTransactionDetails (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/utils/mirrorNodeAPI.js:86:33)
at TransactionPage.mirrorGetTransactionResponse (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:197:38)
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/transactionTests.test.js:320:54
|
🎭 Playwright Run Summary
5 passed (20.4s)
|
🎭 Playwright Run Summary
10 passed (28.3s)
|
🎭 Playwright Run Summary
19 passed (1.7m)
|
🎭 Playwright Run Summary
1 skipped
31 passed (2.0m)
|
🎭 Playwright Run Summary
3 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
[Transaction tool] › tests/transactionTests.test.js:311:3 › Transaction tests › Verify user can execute approve allowance tx
1 skipped
32 passed (4.7m)
|