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]
## [1.3.1] - 2026-10-06

### Added

Expand Down
5 changes: 5 additions & 0 deletions advancedforms.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
<author>Teclib'</author>
</authors>
<versions>
<version>
<num>1.3.1</num>
<compatibility>~11.0.7</compatibility>
<download_url>https://github.com/pluginsGLPI/advancedforms/releases/download/1.3.1/glpi-advancedforms-1.3.1.tar.bz2</download_url>
</version>
<version>
<num>1.3.0</num>
<compatibility>~11.0.7</compatibility>
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
use GlpiPlugin\Advancedforms\Service\InitManager;

/** @phpstan-ignore theCodingMachineSafe.function (safe to assume this isn't already defined) */
define('PLUGIN_ADVANCEDFORMS_VERSION', '1.3.0');
define('PLUGIN_ADVANCEDFORMS_VERSION', '1.3.1');

// Minimal GLPI version, inclusive
/** @phpstan-ignore theCodingMachineSafe.function (safe to assume this isn't already defined) */
Expand Down
4 changes: 3 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,9 @@ 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('link', { name: form_name })).toBeVisible();
// Scoped to the success alert, since the same link also appears
// permanently in the ticket's "Items" tab.
await expect(form.getAlert(form_name).getByRole('link', { name: form_name })).toBeVisible();
});
});

Expand Down
12 changes: 9 additions & 3 deletions tests/e2e/specs/table_question.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,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('link', { name: form_name })).toBeVisible();
// Scoped to the success alert, since the same link also appears
// permanently in the ticket's "Items" tab.
await expect(form.getAlert(form_name).getByRole('link', { name: form_name })).toBeVisible();
});
});

Expand Down Expand Up @@ -178,7 +180,9 @@ 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('link', { name: form_name })).toBeVisible();
// Scoped to the success alert, since the same link also appears
// permanently in the ticket's "Items" tab.
await expect(form.getAlert(form_name).getByRole('link', { name: form_name })).toBeVisible();
});
});

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

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

await expect(page.getByRole('link', { name: form_name })).toBeVisible();
// Scoped to the success alert, since the same link also appears
// permanently in the ticket's "Items" tab.
await expect(form.getAlert(form_name).getByRole('link', { name: form_name })).toBeVisible();
});
});

Expand Down
Loading