refactor on-hakemus-submit to use a transaction #970
Annotations
10 errors, 5 warnings, and 1 notice
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
../../../../../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
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
../../../../../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
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
../../../../../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
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
../../../../../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
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
../../../../../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
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
../../../../../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
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
../../../../../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
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
../../../../../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
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
../../../../../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
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
../../../../../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
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
[Default] › tests/email-notifications/loppuselvitys-palauttamatta.test.ts#L1
[Default] › tests/email-notifications/loppuselvitys-palauttamatta.test.ts took 7.8m
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
[Default] › tests/email-notifications/laheta-loppuselvityspyynnot.test.ts#L1
[Default] › tests/email-notifications/laheta-loppuselvityspyynnot.test.ts took 5.9m
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
[Default] › tests/email-notifications/valiselvitys-palauttamatta.test.ts#L1
[Default] › tests/email-notifications/valiselvitys-palauttamatta.test.ts took 5.4m
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
[Default] › tests/email-notifications/hakuaika-paattymassa.test.ts#L1
[Default] › tests/email-notifications/hakuaika-paattymassa.test.ts took 4.9m
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports:
[Default] › tests/hakemuksen-arviointi/valiselvitys.test.ts#L1
[Default] › tests/hakemuksen-arviointi/valiselvitys.test.ts took 3.7m
|
Run npx playwright merge-reports --reporter github,html ./all-blob-reports
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)
|
Loading