Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
## [UNRELEASED]

### Fixed

Expand Down
3 changes: 2 additions & 1 deletion tests/e2e/specs/reservation_question.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ test.describe('Advanced forms - Material reservation question', () => {
await expect(reservation.getAvailabilityMessage(widget)).toHaveText('This slot is available');

await page.getByRole('button', { name: 'Submit' }).click();
await expect(page.getByRole('alert').getByRole('link', { name: form_name })).toBeVisible();
await expect(page).toHaveURL(/\/front\/ticket\.form\.php\?id=\d+/);
await expect(page.getByRole('heading')).toContainText(form_name);
});
});

Expand Down
11 changes: 7 additions & 4 deletions tests/e2e/specs/table_question.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ test.describe('Advanced forms - Table question', () => {

await page.getByRole('button', { name: 'Submit' }).click();

// A link to the created answer/item confirms the submission succeeded.
await expect(page.getByRole('alert').getByRole('link', { name: form_name })).toBeVisible();
// Being redirected to the created ticket confirms the submission succeeded.
await expect(page).toHaveURL(/\/front\/ticket\.form\.php\?id=\d+/);
await expect(page.getByRole('heading')).toContainText(form_name);
});
});

Expand Down Expand Up @@ -178,7 +179,8 @@ test.describe('Advanced forms - Table question', () => {
await expect(table.getEndUserCell(eu_table, 0, 0)).not.toHaveClass(/is-invalid/);

await page.getByRole('button', { name: 'Submit' }).click();
await expect(page.getByRole('alert').getByRole('link', { name: form_name })).toBeVisible();
await expect(page).toHaveURL(/\/front\/ticket\.form\.php\?id=\d+/);
await expect(page.getByRole('heading')).toContainText(form_name);
});
});

Expand Down Expand Up @@ -222,7 +224,8 @@ test.describe('Advanced forms - Table question', () => {

await page.getByRole('button', { name: 'Submit' }).click();

await expect(page.getByRole('alert').getByRole('link', { name: form_name })).toBeVisible();
await expect(page).toHaveURL(/\/front\/ticket\.form\.php\?id=\d+/);
await expect(page.getByRole('heading')).toContainText(form_name);
});
});

Expand Down
Loading