Repository navigation
[MOSIP-45718] [MOSIP-45719] Move admin UI automation to Playwright and enrich the test report - #870
jayesh12234 wants to merge 5 commits into
Conversation
Selenium and TestNG are replaced by Playwright and Cucumber on the shared uitest-commons library, the same setup the resident portal suite uses. The 15 test classes become 15 feature files with shared steps and page objects; all 16 scenarios pass on dev2. Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>
…dmin UI test report. A failing scenario could only be diagnosed from one screenshot and a step log. The report now embeds a screen recording per scenario, a screenshot before every element interaction, a Playwright trace for failures, the API and console errors seen after sign-in, and each Gherkin step's text. Each kind of evidence can be switched off in adminui.properties. Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
…ngs into one zip. The report only links to its screenshots and recordings, so a shared HTML file showed them broken. Each run now also writes a zip with the report and that run's evidence in the same layout, and uploads it with the HTML when reports are pushed to S3. Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>
|
Added be992f8 (MOSIP-45719): the report HTML only links to its screenshots and recordings, so a shared HTML file showed them broken. Each run now also writes Tested on this branch (clean build, dev2): 16 / 16 passed in 7.6 min; the 57.8 MB zip was extracted to an unrelated folder and opened there — 538 / 538 screenshots and 16 / 16 recordings load. |
…ault. Recordings of passing scenarios made up most of a run's 90 MB of evidence and its shareable zip. recordVideo now defaults to onFailure; set it to always to keep every recording. Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>
|
Added 00af117 (MOSIP-45719): |
…HTML. Shared reports needed a zip with the evidence beside them. The report now carries its screenshots, failure recordings and failure traces inline, so the single HTML file can be shared and opened as is; the zip bundle and the artifacts folder are gone. Signed-off-by: Jayesh Kharode <jayesh.kharode@technoforte.co.in>
|
Added 5b97bbf (MOSIP-45719): screenshots, failure recordings and failure traces are now embedded in the report HTML, so the single file can be shared and opened as is — the zip bundle and |
Jira: MOSIP-45718, MOSIP-45719
Summary
Moves the admin UI automation (
uitest-admin) from Selenium + TestNG to Playwright + Cucumber on the shareduitest-commonslibrary, the same way resident-uiui-testwas migrated, and enriches the test report.MOSIP-45718 Playwright migration
adminui.properties(tracked with blank secrets) layered over Kernel.properties, uitest.properties and environment variables. The oldadminPortalPathvariable still works.mvn packagestill skips the live suite whenCI=true, so the existing workflow jobs keep working.setExcludedGroupscodes map to Cucumber tags (table in the README).MOSIP-45719 Report enhancements
errorsresponses such asKER-MSD-…) and console errors per scenario.adminui.properties; files live undertest-output/artifacts/and are linked from the report.Test results (local run against dev2)
The run with all evidence on also surfaced dev2 portal issues unrelated to this change: every master-data list search returns
KER-MSD-390 Invalid filter value, location14022givesKER-MSD-026 Location not found, and the Device/Machine pages throwTypeError: Cannot read properties of undefined (reading 'regCenterId').Notes