Skip to content

playwright: added e2e test for issue #23445 - #23459

Merged
ShaileshParmar11 merged 3 commits into
issue-23445from
issue-23445-playwright
Sep 24, 2025
Merged

ShaileshParmar11 merged 3 commits into
issue-23445from
issue-23445-playwright

Conversation

@ShaileshParmar11

@ShaileshParmar11 ShaileshParmar11 commented Sep 18, 2025 •

Copy link
Copy Markdown
Contributor

This pull request updates the Playwright end-to-end tests for the Incident Manager feature to improve test reliability and coverage. The most significant change is the introduction of a new scenario that covers the complete incident lifecycle, including assigning ownership of a table. Additionally, the test setup and teardown processes have been refactored to use a more robust admin login utility.

Test scenario improvements:

  • Replaced the basic scenario with a new test, Complete Incident lifecycle with table owner, which covers claiming table ownership and then running through the incident management flow.
  • Added a test step to claim ownership of a table using the addOwner utility, ensuring the incident lifecycle is tested with an actual owner assigned.

Test setup and teardown improvements:

  • Replaced direct use of createNewPage with performAdminLogin for both beforeAll and afterAll hooks, making admin authentication more robust and consistent across tests. [1] [2]

Imports and utilities:

  • Updated imports to include new utilities (performAdminLogin, addOwner, EntityTypeEndpoint) and removed unused ones, streamlining the test file.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 18, 2025
@github-actions

Copy link
Copy Markdown
Contributor

The Java checkstyle failed.

Please run mvn spotless:apply in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Java code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@github-actions

github-actions Bot commented Sep 18, 2025 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 64%
64.12% (43533/67892) 41.13% (20442/49703) 44.36% (6511/14676)

@sonarqubecloud

Copy link
Copy Markdown

@ShaileshParmar11
ShaileshParmar11 merged commit c4bf664 into issue-23445 Sep 24, 2025
@ShaileshParmar11
ShaileshParmar11 deleted the issue-23445-playwright branch September 24, 2025 08:21
@github-project-automation github-project-automation Bot moved this to Done ✅ in Roadmap Sep 24, 2025
ShaileshParmar11 added a commit that referenced this pull request Sep 26, 2025
… API (#23448)

* Fix #23445: User with Owner role unable to update Incident Status via API

* fix: failing build

* fix: permission on test case incidents

* playwright: added e2e test for issue #23445 (#23459)

* fix: entitylink parsing for entity resource

* fix: restore severity state in PATCH test

---------

Co-authored-by: Teddy Crepineau <teddy.crepineau@gmail.com>
Co-authored-by: Shailesh Parmar <shailesh.parmar.webdev@gmail.com>

This branch was previously deployed

1 inactive deployment
test — 9dda1aba Deployed Sep 24, 2025 by ShaileshParmar11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

Status: Done ✅

Development

Successfully merging this pull request may close these issues.

1 participant