Skip to content

Fix(E2E): expect redirect to created ticket in e2e form tests - #77

Merged
Rom1-B merged 2 commits into
mainfrom
fix_e2e_ci
Oct 21, 2026
Merged

Rom1-B merged 2 commits into
mainfrom
fix_e2e_ci

Conversation

@stonebuzz

Copy link
Copy Markdown
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  • It fixes # (issue number, if applicable)
  • GLPI core now redirects the user to the created ticket after a form submission when the "Go to created item after creation" preference is enabled (fix(46715): No redirection after filling a form despite glpibackcreat… glpi-project/glpi#25816).
  • The table and reservation question E2E tests still waited for a success alert with a link to the form, so they failed after submit.
  • These tests now check that the user lands on the created ticket instead.
Error: expect(locator).toBeVisible() failed

Locator: getByRole('alert').getByRole('link', { name: 'E2E table submit - 32bf13f8-02e8-485c-b6a5-44533073cd56' })
Expected: visible
Timeout: 5000ms
Error: element(s) not found

Call log:
  - Expect "toBeVisible" with timeout 5000ms
  - waiting for getByRole('alert').getByRole('link', { name: 'E2E table submit - 32bf13f8-02e8-485c-b6a5-44533073cd56' })
    - waiting for "http://e2e.12bugfixes.localhost/front/ticket.form.php?id=23" navigation to finish...
    - navigated to "http://e2e.12bugfixes.localhost/front/ticket.form.php?id=23"

Screenshots (if appropriate):

@stonebuzz
stonebuzz requested a review from Rom1-B October 21, 2026 06:57
@stonebuzz stonebuzz self-assigned this Oct 21, 2026
@stonebuzz stonebuzz added the bug Something isn't working label Oct 21, 2026
@Rom1-B
Rom1-B merged commit 8456cae into main Oct 21, 2026
7 checks passed
@Rom1-B
Rom1-B deleted the fix_e2e_ci branch October 21, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants