Skip to content

refactor on-hakemus-submit to use a transaction #970

refactor on-hakemus-submit to use a transaction

refactor on-hakemus-submit to use a transaction #970

Triggered via push January 14, 2025 14:11
Status Failure
Total duration 26m 51s
Artifacts 7
build  /  Send in-progress status to radiator
1s
build / Send in-progress status to radiator
build  /  04-lint.sh
43s
build / 04-lint.sh
Matrix: build / playwright-tests
build  /  02-other-tests.sh
1m 51s
build / 02-other-tests.sh
build  /  Send failure status to radiator
3s
build / Send failure status to radiator
deploy  /  ...  /  deploy
deploy / deploy-dev / deploy
Generate report from Playwright runs
1m 22s
Generate report from Playwright runs
deploy  /  ...  /  deploy
deploy / deploy-qa / deploy
deploy  /  ...  /  deploy
deploy / deploy-prod / deploy
Fit to window
Zoom out
Zoom in

Annotations

13 errors, 5 warnings, and 1 notice
build / 02-other-tests.sh
Process completed with exit code 1.
build / 03-playwright-tests.sh (shard 3/6)
Process completed with exit code 1.
build / 03-playwright-tests.sh (shard 4/6)
Process completed with exit code 1.
[Default] › tests/hakulomake/fixed-multiplier.test.ts:239:5 › fixed multiplier field works: ../../../../../playwright/pages/hakija/hakijaAvustusHakuPage.ts#L107
1) [Default] › tests/hakulomake/fixed-multiplier.test.ts:239:5 › fixed multiplier field works ──── TimeoutError: page.waitForSelector: Timeout 10000ms exceeded. Call log: - waiting for locator('button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")') to be visible at pages/hakija/hakijaAvustusHakuPage.ts:107 105 | async function submitApplication() { 106 | await locators.sendHakemusButton.click() > 107 | await page.waitForSelector( | ^ 108 | 'button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")' 109 | ) 110 | return { userKey: await getUserKey() } at Object.submitApplication (/playwright/pages/hakija/hakijaAvustusHakuPage.ts:107:16) at /playwright/tests/hakulomake/fixed-multiplier.test.ts:298:3
[Default] › tests/hakulomake/fixed-multiplier.test.ts:239:5 › fixed multiplier field works: ../../../../../playwright/pages/hakija/hakijaAvustusHakuPage.ts#L107
1) [Default] › tests/hakulomake/fixed-multiplier.test.ts:239:5 › fixed multiplier field works ──── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForSelector: Timeout 10000ms exceeded. Call log: - waiting for locator('button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")') to be visible at pages/hakija/hakijaAvustusHakuPage.ts:107 105 | async function submitApplication() { 106 | await locators.sendHakemusButton.click() > 107 | await page.waitForSelector( | ^ 108 | 'button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")' 109 | ) 110 | return { userKey: await getUserKey() } at Object.submitApplication (/playwright/pages/hakija/hakijaAvustusHakuPage.ts:107:16) at /playwright/tests/hakulomake/fixed-multiplier.test.ts:298:3
[Default] › tests/hakulomake/growing-field-set-with-attachments.test.ts:243:1 › can add and remove growing field sets with attachment fields: ../../../../../playwright/pages/hakija/hakijaAvustusHakuPage.ts#L86
2) [Default] › tests/hakulomake/growing-field-set-with-attachments.test.ts:243:1 › can add and remove growing field sets with attachment fields TimeoutError: page.waitForFunction: Timeout 10000ms exceeded. at pages/hakija/hakijaAvustusHakuPage.ts:86 84 | 85 | async function waitForEditSaved() { > 86 | return page.waitForFunction(() => | ^ 87 | document.querySelector('div.save-message')?.textContent?.includes('Tallennettu') 88 | ) 89 | } at Object.waitForEditSaved (/playwright/pages/hakija/hakijaAvustusHakuPage.ts:86:17) at /playwright/tests/hakulomake/growing-field-set-with-attachments.test.ts:257:20
[Default] › tests/hakulomake/growing-field-set-with-attachments.test.ts:243:1 › can add and remove growing field sets with attachment fields: ../../../../../playwright/pages/hakija/hakijaAvustusHakuPage.ts#L86
2) [Default] › tests/hakulomake/growing-field-set-with-attachments.test.ts:243:1 › can add and remove growing field sets with attachment fields Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForFunction: Timeout 10000ms exceeded. at pages/hakija/hakijaAvustusHakuPage.ts:86 84 | 85 | async function waitForEditSaved() { > 86 | return page.waitForFunction(() => | ^ 87 | document.querySelector('div.save-message')?.textContent?.includes('Tallennettu') 88 | ) 89 | } at Object.waitForEditSaved (/playwright/pages/hakija/hakijaAvustusHakuPage.ts:86:17) at /playwright/tests/hakulomake/growing-field-set-with-attachments.test.ts:257:20
[Default] › tests/hakulomake/growing-field-set.test.ts:175:3 › growing field set › can delete first growing field set child after page reload: ../../../../../playwright/tests/hakulomake/growing-field-set.test.ts#L207
3) [Default] › tests/hakulomake/growing-field-set.test.ts:175:3 › growing field set › can delete first growing field set child after page reload › after reload can delete first field Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected) Locator: locator('[id="project-description-1"]').locator('[id="project-description.project-description-1.goal"]') Expected string: "a" Received string: "" Call log: - expect.toHaveValue with timeout 5000ms - waiting for locator('[id="project-description-1"]').locator('[id="project-description.project-description-1.goal"]') 9 × locator resolved to <textarea maxlength="800" id="project-description.project-description-1.goal" name="project-description.project-description-1.goal"></textarea> - unexpected value "" 205 | await test.step('after reload can delete first field', async () => { 206 | await hakijaAvustusHakuPage.page.reload() > 207 | await expect(first.tavoite).toHaveValue(firstTavoite) | ^ 208 | await first.remove.click() 209 | await expect(first.tavoite).toHaveValue(secondTavoite) 210 | await expect(first.toiminta).toHaveValue(secondToiminta) at /playwright/tests/hakulomake/growing-field-set.test.ts:207:35 at /playwright/tests/hakulomake/growing-field-set.test.ts:205:5
[Default] › tests/hakulomake/growing-field-set.test.ts:175:3 › growing field set › can delete first growing field set child after page reload: ../../../../../playwright/tests/hakulomake/growing-field-set.test.ts#L207
3) [Default] › tests/hakulomake/growing-field-set.test.ts:175:3 › growing field set › can delete first growing field set child after page reload › after reload can delete first field Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected) Locator: locator('[id="project-description-1"]').locator('[id="project-description.project-description-1.goal"]') Expected string: "a" Received string: "" Call log: - expect.toHaveValue with timeout 5000ms - waiting for locator('[id="project-description-1"]').locator('[id="project-description.project-description-1.goal"]') 9 × locator resolved to <textarea maxlength="800" id="project-description.project-description-1.goal" name="project-description.project-description-1.goal"></textarea> - unexpected value "" 205 | await test.step('after reload can delete first field', async () => { 206 | await hakijaAvustusHakuPage.page.reload() > 207 | await expect(first.tavoite).toHaveValue(firstTavoite) | ^ 208 | await first.remove.click() 209 | await expect(first.tavoite).toHaveValue(secondTavoite) 210 | await expect(first.toiminta).toHaveValue(secondToiminta) at /playwright/tests/hakulomake/growing-field-set.test.ts:207:35 at /playwright/tests/hakulomake/growing-field-set.test.ts:205:5
[Default] › tests/hakulomake/growing-field-set.test.ts:218:3 › growing field set › first growing field set field is editable after reload: ../../../../../playwright/pages/hakija/hakijaAvustusHakuPage.ts#L107
4) [Default] › tests/hakulomake/growing-field-set.test.ts:218:3 › growing field set › first growing field set field is editable after reload › form submits successfully TimeoutError: page.waitForSelector: Timeout 10000ms exceeded. Call log: - waiting for locator('button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")') to be visible at pages/hakija/hakijaAvustusHakuPage.ts:107 105 | async function submitApplication() { 106 | await locators.sendHakemusButton.click() > 107 | await page.waitForSelector( | ^ 108 | 'button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")' 109 | ) 110 | return { userKey: await getUserKey() } at Object.submitApplication (/playwright/pages/hakija/hakijaAvustusHakuPage.ts:107:16) at /playwright/tests/hakulomake/growing-field-set.test.ts:236:7 at /playwright/tests/hakulomake/growing-field-set.test.ts:235:5
[Default] › tests/hakulomake/growing-field-set.test.ts:218:3 › growing field set › first growing field set field is editable after reload: ../../../../../playwright/pages/hakija/hakijaAvustusHakuPage.ts#L107
4) [Default] › tests/hakulomake/growing-field-set.test.ts:218:3 › growing field set › first growing field set field is editable after reload › form submits successfully Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForSelector: Timeout 10000ms exceeded. Call log: - waiting for locator('button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")') to be visible at pages/hakija/hakijaAvustusHakuPage.ts:107 105 | async function submitApplication() { 106 | await locators.sendHakemusButton.click() > 107 | await page.waitForSelector( | ^ 108 | 'button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")' 109 | ) 110 | return { userKey: await getUserKey() } at Object.submitApplication (/playwright/pages/hakija/hakijaAvustusHakuPage.ts:107:16) at /playwright/tests/hakulomake/growing-field-set.test.ts:236:7 at /playwright/tests/hakulomake/growing-field-set.test.ts:235:5
[Default] › tests/hakulomake/liitteet.test.ts:52:1 › hakemus requires all attachments to be uploaded before allowing to submit: ../../../../../playwright/pages/hakija/hakijaAvustusHakuPage.ts#L107
5) [Default] › tests/hakulomake/liitteet.test.ts:52:1 › hakemus requires all attachments to be uploaded before allowing to submit › adding last attachment back allows sending TimeoutError: page.waitForSelector: Timeout 10000ms exceeded. Call log: - waiting for locator('button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")') to be visible at pages/hakija/hakijaAvustusHakuPage.ts:107 105 | async function submitApplication() { 106 | await locators.sendHakemusButton.click() > 107 | await page.waitForSelector( | ^ 108 | 'button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")' 109 | ) 110 | return { userKey: await getUserKey() } at Object.submitApplication (/playwright/pages/hakija/hakijaAvustusHakuPage.ts:107:16) at /playwright/tests/hakulomake/liitteet.test.ts:76:5 at /playwright/tests/hakulomake/liitteet.test.ts:73:3
[Default] › tests/hakulomake/liitteet.test.ts:52:1 › hakemus requires all attachments to be uploaded before allowing to submit: ../../../../../playwright/pages/hakija/hakijaAvustusHakuPage.ts#L107
5) [Default] › tests/hakulomake/liitteet.test.ts:52:1 › hakemus requires all attachments to be uploaded before allowing to submit › adding last attachment back allows sending Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForSelector: Timeout 10000ms exceeded. Call log: - waiting for locator('button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")') to be visible at pages/hakija/hakijaAvustusHakuPage.ts:107 105 | async function submitApplication() { 106 | await locators.sendHakemusButton.click() > 107 | await page.waitForSelector( | ^ 108 | 'button:has-text("Hakemus lähetetty"), button:has-text("Ansökan sänd")' 109 | ) 110 | return { userKey: await getUserKey() } at Object.submitApplication (/playwright/pages/hakija/hakijaAvustusHakuPage.ts:107:16) at /playwright/tests/hakulomake/liitteet.test.ts:76:5 at /playwright/tests/hakulomake/liitteet.test.ts:73:3
Slow Test: [Default] › tests/email-notifications/loppuselvitys-palauttamatta.test.ts#L1
[Default] › tests/email-notifications/loppuselvitys-palauttamatta.test.ts took 7.8m
Slow Test: [Default] › tests/email-notifications/laheta-loppuselvityspyynnot.test.ts#L1
[Default] › tests/email-notifications/laheta-loppuselvityspyynnot.test.ts took 5.9m
Slow Test: [Default] › tests/email-notifications/valiselvitys-palauttamatta.test.ts#L1
[Default] › tests/email-notifications/valiselvitys-palauttamatta.test.ts took 5.4m
Slow Test: [Default] › tests/email-notifications/hakuaika-paattymassa.test.ts#L1
[Default] › tests/email-notifications/hakuaika-paattymassa.test.ts took 4.9m
Slow Test: [Default] › tests/hakemuksen-arviointi/valiselvitys.test.ts#L1
[Default] › tests/hakemuksen-arviointi/valiselvitys.test.ts took 3.7m
🎭 Playwright Run Summary
7 failed [Default] › tests/hakulomake/fixed-multiplier.test.ts:239:5 › fixed multiplier field works ───── [Default] › tests/hakulomake/growing-field-set-with-attachments.test.ts:243:1 › can add and remove growing field sets with attachment fields [Default] › tests/hakulomake/growing-field-set.test.ts:175:3 › growing field set › can delete first growing field set child after page reload [Default] › tests/hakulomake/growing-field-set.test.ts:218:3 › growing field set › first growing field set field is editable after reload [Default] › tests/hakulomake/liitteet.test.ts:52:1 › hakemus requires all attachments to be uploaded before allowing to submit [Default] › tests/muutoshakemus/muutoshakemus-kelvoton.test.ts:20:5 › hakija does not get an email with link to muutoshakemus when avustushaku fields could not be normalized [Default] › tests/muutoshakemus/muutoshakemus-kelvoton.test.ts:276:1 › muutoshakukelvoton avustushaku with menoluokat has been approved with lump sum 2 flaky [Default] › tests/maksatukset/maksatukset.test.ts:84:1 › Hakemus voidaan maksaa monessa erässä ─ [Default] › tests/muutoshakemus/talousarvio-muuttaminen.test.ts:122:1 › changing budget multiple times 1 skipped 306 passed (19.7m)

Artifacts

Produced during runtime
Name Size
playwright-blob-1 Expired
685 KB
playwright-blob-2 Expired
715 KB
playwright-blob-3 Expired
109 MB
playwright-blob-4 Expired
77.3 MB
playwright-blob-5 Expired
195 KB
playwright-blob-6 Expired
17.9 KB
playwright-html-report
187 MB