fix: clear words in RestoreKey #1859
test-frontend.yaml
on: pull_request
Build | Front-end
1m 56s
Matrix: unit-test
Matrix: test
Annotations
27 errors and 5 notices
[Transaction tool] › tests/settingsTests.test.js:52:3 › Settings tests › Verify that all elements in settings page are present:
automation/tests/settingsTests.test.js#L22
1) [Transaction tool] › tests/settingsTests.test.js:52:3 › Settings tests › Verify that all elements in settings page are present
"beforeAll" hook timeout of 30000ms exceeded.
20 |
21 | test.describe('Settings tests', () => {
> 22 | test.beforeAll(async () => {
| ^
23 | await resetDbState();
24 | ({ app, window } = await setupApp());
25 | loginPage = new LoginPage(window);
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/settingsTests.test.js:22:8
|
[Transaction tool] › tests/settingsTests.test.js:52:3 › Settings tests › Verify that all elements in settings page are present:
automation/pages/RegistrationPage.js#L89
1) [Transaction tool] › tests/settingsTests.test.js:52:3 › Settings tests › Verify that all elements in settings page are present
Error: locator.inputValue: Target page, context or browser has been closed
at pages/RegistrationPage.js:89
87 | const selector = this.getRecoveryWordSelector(i);
88 | const wordElement = await this.window.getByTestId(selector);
> 89 | this.recoveryPhraseWords[i] = await wordElement.inputValue();
| ^
90 | }
91 | }
92 |
at RegistrationPage.captureRecoveryPhraseWords (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/RegistrationPage.js:89:55)
at RegistrationPage.completeRegistration (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/RegistrationPage.js:286:5)
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/settingsTests.test.js:35:5
|
[Transaction tool] › tests/registrationTests.test.js:221:3 › Registration tests › Verify words are persisted after deleting a single word:
automation/tests/registrationTests.test.js#L249
1) [Transaction tool] › tests/registrationTests.test.js:221:3 › Registration tests › Verify words are persisted after deleting a single word
Error: expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
247 | const isNextButtonDisabled = await registrationPage.isNextButtonClickable();
248 |
> 249 | expect(isNextButtonDisabled).toBe(true);
| ^
250 | });
251 |
252 | test('Verify final step of account setup has all correct elements', async () => {
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/registrationTests.test.js:249:34
|
[Transaction tool] › tests/registrationTests.test.js:221:3 › Registration tests › Verify words are persisted after deleting a single word:
automation/tests/registrationTests.test.js#L249
1) [Transaction tool] › tests/registrationTests.test.js:221:3 › Registration tests › Verify words are persisted after deleting a single word
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
247 | const isNextButtonDisabled = await registrationPage.isNextButtonClickable();
248 |
> 249 | expect(isNextButtonDisabled).toBe(true);
| ^
250 | });
251 |
252 | test('Verify final step of account setup has all correct elements', async () => {
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/registrationTests.test.js:249:34
|
[Transaction tool] › tests/registrationTests.test.js:221:3 › Registration tests › Verify words are persisted after deleting a single word:
automation/tests/registrationTests.test.js#L249
1) [Transaction tool] › tests/registrationTests.test.js:221:3 › Registration tests › Verify words are persisted after deleting a single word
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
247 | const isNextButtonDisabled = await registrationPage.isNextButtonClickable();
248 |
> 249 | expect(isNextButtonDisabled).toBe(true);
| ^
250 | });
251 |
252 | test('Verify final step of account setup has all correct elements', async () => {
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/registrationTests.test.js:249:34
|
[Transaction tool] › tests/registrationTests.test.js:221:3 › Registration tests › Verify words are persisted after deleting a single word:
automation/tests/registrationTests.test.js#L249
1) [Transaction tool] › tests/registrationTests.test.js:221:3 › Registration tests › Verify words are persisted after deleting a single word
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
247 | const isNextButtonDisabled = await registrationPage.isNextButtonClickable();
248 |
> 249 | expect(isNextButtonDisabled).toBe(true);
| ^
250 | });
251 |
252 | test('Verify final step of account setup has all correct elements', async () => {
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/registrationTests.test.js:249:34
|
Automation | Registration
Process completed with exit code 1.
|
[Transaction tool] › tests/transactionTests.test.js:63: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:63:3 › Transaction tests › Verify user can execute Account Create tx with complex key
Test timeout of 30000ms exceeded.
|
[Transaction tool] › tests/transactionTests.test.js:63:3 › Transaction tests › Verify user can execute Account Create tx with complex key:
automation/pages/TransactionPage.js#L665
1) [Transaction tool] › tests/transactionTests.test.js:63: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:665
663 | // Construct the selector for the confirmation transaction modal that is visible and in a displayed state
664 | const modalSelector = `[data-testid="${this.confirmTransactionModalSelector}"][style*="display: block"]`;
> 665 | await this.window.waitForSelector(modalSelector, { state: 'visible', timeout: 15000 });
| ^
666 |
667 | // Construct the selector for the enabled sign button within the visible modal
668 | const signButtonSelector = `${modalSelector} [data-testid="${this.buttonSignTransactionSelector}"]:enabled`;
at TransactionPage.clickSignTransactionButton (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:665:23)
at TransactionPage.createNewAccount (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:423:16)
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/transactionTests.test.js:64:30
|
[Transaction tool] › tests/transactionTests.test.js:98:3 › Transaction tests › Verify confirm transaction modal is displayed with valid information for Account Create tx:
automation/tests/transactionTests.test.js#L1
2) [Transaction tool] › tests/transactionTests.test.js:98:3 › Transaction tests › Verify confirm transaction modal is displayed with valid information for Account Create tx
Test timeout of 30000ms exceeded.
|
[Transaction tool] › tests/transactionTests.test.js:98:3 › Transaction tests › Verify confirm transaction modal is displayed with valid information for Account Create tx:
automation/pages/TransactionPage.js#L171
2) [Transaction tool] › tests/transactionTests.test.js:98:3 › Transaction tests › Verify confirm transaction modal is displayed with valid information for Account Create tx
Error: page.waitForSelector: Target page, context or browser has been closed
at pages/TransactionPage.js:171
169 |
170 | async verifyConfirmTransactionInformation(typeTransaction) {
> 171 | await this.window.waitForSelector(
| ^
172 | '[data-testid="modal-confirm-transaction"][style*="display: block"]',
173 | { state: 'visible', timeout: 10000 },
174 | );
at TransactionPage.verifyConfirmTransactionInformation (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:171:23)
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/transactionTests.test.js:104:29
|
[Transaction tool] › tests/transactionTests.test.js:110:3 › Transaction tests › Verify user can execute create account transaction with single key:
automation/tests/transactionTests.test.js#L1
3) [Transaction tool] › tests/transactionTests.test.js:110:3 › Transaction tests › Verify user can execute create account transaction with single key
Test timeout of 30000ms exceeded.
|
[Transaction tool] › tests/transactionTests.test.js:110:3 › Transaction tests › Verify user can execute create account transaction with single key:
automation/pages/TransactionPage.js#L665
3) [Transaction tool] › tests/transactionTests.test.js:110:3 › Transaction tests › Verify user can execute create account transaction with single key
Error: page.waitForSelector: Target page, context or browser has been closed
at pages/TransactionPage.js:665
663 | // Construct the selector for the confirmation transaction modal that is visible and in a displayed state
664 | const modalSelector = `[data-testid="${this.confirmTransactionModalSelector}"][style*="display: block"]`;
> 665 | await this.window.waitForSelector(modalSelector, { state: 'visible', timeout: 15000 });
| ^
666 |
667 | // Construct the selector for the enabled sign button within the visible modal
668 | const signButtonSelector = `${modalSelector} [data-testid="${this.buttonSignTransactionSelector}"]:enabled`;
at TransactionPage.clickSignTransactionButton (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:665:23)
at TransactionPage.createNewAccount (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:423:16)
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/transactionTests.test.js:111:30
|
[Transaction tool] › tests/transactionTests.test.js:292:3 › Transaction tests › Verify sign button is disabled when receiver amount is higher than payer amount when doing transfer tx:
automation/tests/transactionTests.test.js#L1
4) [Transaction tool] › tests/transactionTests.test.js:292:3 › Transaction tests › Verify sign button is disabled when receiver amount is higher than payer amount when doing transfer tx
Test timeout of 30000ms exceeded.
|
[Transaction tool] › tests/transactionTests.test.js:292:3 › Transaction tests › Verify sign button is disabled when receiver amount is higher than payer amount when doing transfer tx:
automation/pages/BasePage.js#L441
4) [Transaction tool] › tests/transactionTests.test.js:292:3 › Transaction tests › Verify sign button is disabled when receiver amount is higher than payer amount when doing transfer tx
Error: locator.count: Target page, context or browser has been closed
at pages/BasePage.js:441
439 | }
440 |
> 441 | const count = await elements.count();
| ^
442 |
443 | const texts = [];
444 | for (let i = 0; i < count; i++) {
at TransactionPage.getText (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/BasePage.js:441:36)
at TransactionPage.fillInTransferFromAccountId (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:912:31)
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/transactionTests.test.js:300:5
|
[Transaction tool] › tests/transactionTests.test.js:311:3 › Transaction tests › Verify user can execute approve allowance tx:
automation/tests/transactionTests.test.js#L1
5) [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/pages/BasePage.js#L441
5) [Transaction tool] › tests/transactionTests.test.js:311:3 › Transaction tests › Verify user can execute approve allowance tx
Error: locator.count: Target page, context or browser has been closed
at pages/BasePage.js:441
439 | }
440 |
> 441 | const count = await elements.count();
| ^
442 |
443 | const texts = [];
444 | for (let i = 0; i < count; i++) {
at TransactionPage.getText (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/BasePage.js:441:36)
at TransactionPage.fillInAllowanceOwnerAccount (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:951:31)
at TransactionPage.approveAllowance (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:563:7)
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/transactionTests.test.js:315:27
|
[Transaction tool] › tests/workflowTests.test.js:152:3 › Workflow tests › Verify clicking on "Edit" and "Update" navigates the user on update account tx page with prefilled account:
automation/tests/workflowTests.test.js#L1
1) [Transaction tool] › tests/workflowTests.test.js:152:3 › Workflow tests › Verify clicking on "Edit" and "Update" navigates the user on update account tx page with prefilled account
Test timeout of 30000ms exceeded.
|
[Transaction tool] › tests/workflowTests.test.js:152:3 › Workflow tests › Verify clicking on "Edit" and "Update" navigates the user on update account tx page with prefilled account:
automation/tests/workflowTests.test.js#L162
1) [Transaction tool] › tests/workflowTests.test.js:152:3 › Workflow tests › Verify clicking on "Edit" and "Update" navigates the user on update account tx page with prefilled account
Error: expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
160 |
161 | const isSignAndSubmitButtonVisible = await transactionPage.isSignAndSubmitButtonVisible();
> 162 | expect(isSignAndSubmitButtonVisible).toBe(true);
| ^
163 |
164 | const isAccountIdPrefilled = await transactionPage.getPrefilledAccountIdInUpdatePage();
165 | expect(isAccountIdPrefilled).toContain(accountFromList);
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/workflowTests.test.js:162:42
|
[Transaction tool] › tests/workflowTests.test.js:168:3 › Workflow tests › Verify clicking on "Edit" and "Delete" navigates the user on update account tx page with prefilled account:
automation/tests/workflowTests.test.js#L1
2) [Transaction tool] › tests/workflowTests.test.js:168:3 › Workflow tests › Verify clicking on "Edit" and "Delete" navigates the user on update account tx page with prefilled account
Test timeout of 30000ms exceeded.
|
[Transaction tool] › tests/workflowTests.test.js:168:3 › Workflow tests › Verify clicking on "Edit" and "Delete" navigates the user on update account tx page with prefilled account:
automation/tests/workflowTests.test.js#L178
2) [Transaction tool] › tests/workflowTests.test.js:168:3 › Workflow tests › Verify clicking on "Edit" and "Delete" navigates the user on update account tx page with prefilled account
Error: expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
176 |
177 | const isTransferAccountIdVisible = await transactionPage.isTransferAccountIdVisible();
> 178 | expect(isTransferAccountIdVisible).toBe(true);
| ^
179 |
180 | const isAccountIdPrefilled = await transactionPage.getPrefilledAccountIdInDeletePage();
181 | expect(isAccountIdPrefilled).toContain(accountFromList);
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/workflowTests.test.js:178:40
|
[Transaction tool] › tests/workflowTests.test.js:204:3 › Workflow tests › Verify user can add an existing account:
automation/tests/workflowTests.test.js#L1
3) [Transaction tool] › tests/workflowTests.test.js:204:3 › Workflow tests › Verify user can add an existing account
Test timeout of 30000ms exceeded.
|
[Transaction tool] › tests/workflowTests.test.js:204:3 › Workflow tests › Verify user can add an existing account:
automation/pages/TransactionPage.js#L665
3) [Transaction tool] › tests/workflowTests.test.js:204:3 › Workflow tests › Verify user can add an existing account
Error: page.waitForSelector: Target page, context or browser has been closed
at pages/TransactionPage.js:665
663 | // Construct the selector for the confirmation transaction modal that is visible and in a displayed state
664 | const modalSelector = `[data-testid="${this.confirmTransactionModalSelector}"][style*="display: block"]`;
> 665 | await this.window.waitForSelector(modalSelector, { state: 'visible', timeout: 15000 });
| ^
666 |
667 | // Construct the selector for the enabled sign button within the visible modal
668 | const signButtonSelector = `${modalSelector} [data-testid="${this.buttonSignTransactionSelector}"]:enabled`;
at TransactionPage.clickSignTransactionButton (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:665:23)
at TransactionPage.createNewAccount (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/TransactionPage.js:423:16)
at AccountPage.ensureAccountExistsAndUnlinked (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/AccountPage.js:220:32)
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/workflowTests.test.js:205:5
|
[Transaction tool] › tests/workflowTests.test.js:263:3 › Workflow tests › Verify file card append flow leads to append page with prefilled fileid:
automation/tests/workflowTests.test.js#L1
4) [Transaction tool] › tests/workflowTests.test.js:263:3 › Workflow tests › Verify file card append flow leads to append page with prefilled fileid
Test timeout of 30000ms exceeded.
|
[Transaction tool] › tests/workflowTests.test.js:263:3 › Workflow tests › Verify file card append flow leads to append page with prefilled fileid:
automation/pages/BasePage.js#L441
4) [Transaction tool] › tests/workflowTests.test.js:263:3 › Workflow tests › Verify file card append flow leads to append page with prefilled fileid
Error: locator.count: Target page, context or browser has been closed
at pages/BasePage.js:441
439 | }
440 |
> 441 | const count = await elements.count();
| ^
442 |
443 | const texts = [];
444 | for (let i = 0; i < count; i++) {
at FilePage.getText (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/BasePage.js:441:36)
at FilePage.getFirstFileIdFromPage (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/FilePage.js:152:12)
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/workflowTests.test.js:267:20
|
[Transaction tool] › tests/workflowTests.test.js:277:3 › Workflow tests › Verify file card read flow leads to read page with prefilled fileid:
automation/tests/workflowTests.test.js#L1
5) [Transaction tool] › tests/workflowTests.test.js:277:3 › Workflow tests › Verify file card read flow leads to read page with prefilled fileid
Test timeout of 30000ms exceeded.
|
[Transaction tool] › tests/workflowTests.test.js:277:3 › Workflow tests › Verify file card read flow leads to read page with prefilled fileid:
automation/pages/BasePage.js#L441
5) [Transaction tool] › tests/workflowTests.test.js:277:3 › Workflow tests › Verify file card read flow leads to read page with prefilled fileid
Error: locator.count: Target page, context or browser has been closed
at pages/BasePage.js:441
439 | }
440 |
> 441 | const count = await elements.count();
| ^
442 |
443 | const texts = [];
444 | for (let i = 0; i < count; i++) {
at FilePage.getText (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/BasePage.js:441:36)
at FilePage.getFirstFileIdFromPage (/home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/pages/FilePage.js:152:12)
at /home/runner/_work/hedera-transaction-tool/hedera-transaction-tool/automation/tests/workflowTests.test.js:281:20
|
🎭 Playwright Run Summary
5 passed (20.1s)
|
🎭 Playwright Run Summary
1 flaky
[Transaction tool] › tests/settingsTests.test.js:52:3 › Settings tests › Verify that all elements in settings page are present
9 passed (58.7s)
|
🎭 Playwright Run Summary
1 failed
[Transaction tool] › tests/registrationTests.test.js:221:3 › Registration tests › Verify words are persisted after deleting a single word
19 passed (2.2m)
|
🎭 Playwright Run Summary
6 flaky
[Transaction tool] › tests/transactionTests.test.js:63:3 › Transaction tests › Verify user can execute Account Create tx with complex key
[Transaction tool] › tests/transactionTests.test.js:98:3 › Transaction tests › Verify confirm transaction modal is displayed with valid information for Account Create tx
[Transaction tool] › tests/transactionTests.test.js:110:3 › Transaction tests › Verify user can execute create account transaction with single key
[Transaction tool] › tests/transactionTests.test.js:292:3 › Transaction tests › Verify sign button is disabled when receiver amount is higher than payer amount when doing transfer tx
[Transaction tool] › tests/transactionTests.test.js:311:3 › Transaction tests › Verify user can execute approve allowance tx
[Transaction tool] › tests/transactionTests.test.js:344:3 › Transaction tests › Verify user can execute file create tx
1 skipped
29 passed (6.8m)
|
🎭 Playwright Run Summary
8 flaky
[Transaction tool] › tests/workflowTests.test.js:152:3 › Workflow tests › Verify clicking on "Edit" and "Update" navigates the user on update account tx page with prefilled account
[Transaction tool] › tests/workflowTests.test.js:168:3 › Workflow tests › Verify clicking on "Edit" and "Delete" navigates the user on update account tx page with prefilled account
[Transaction tool] › tests/workflowTests.test.js:204:3 › Workflow tests › Verify user can add an existing account
[Transaction tool] › tests/workflowTests.test.js:263:3 › Workflow tests › Verify file card append flow leads to append page with prefilled fileid
[Transaction tool] › tests/workflowTests.test.js:277:3 › Workflow tests › Verify file card read flow leads to read page with prefilled fileid
[Transaction tool] › tests/workflowTests.test.js:300:3 › Workflow tests › Verify clicking on "Add new" and "Update" navigates the user to update file transaction page w/o prefilled id
[Transaction tool] › tests/workflowTests.test.js:312:3 › Workflow tests › Verify clicking on "Add new" and "Append" navigates the user to update file transaction page w/o prefilled id
[Transaction tool] › tests/workflowTests.test.js:324:3 › Workflow tests › Verify clicking on "Add new" and "Read" navigates the user to update file transaction page w/o prefilled id
1 skipped
23 passed (7.0m)
|