action #130045
Updated by JERiveraMoya over 1 year ago
#### Motivation
Define an user and root authentication are required actions for default installation and will be included in different tests.
In this ticket we will create POM for user page with Agama.
Navigation to User page, clicking on Install or anything else should be done just using playwright test generator, without the need to create POM there for simplification.
#### Scope
Installations of ALP Micro, ALP Bedrock and Tumbleweed using Agama for all architectures available in openQA (s390x and ppc64le excluded for now).
#### Acceptance criteria
**AC1**: Get familiar with Playwright and use the playwright test generator to get first version of your code.
**AC2**: Locate only the auto-generated code related with user definition and user creation and convert it to Page Object Model.
**AC3**: Add some dummy test (because it will not be a test for itself in the future, will be part of other tests) test to our QE repo [e2e-agama-playwright](https://github.com/jknphy/e2e-agama-playwright) using that POM.
#### Additional information
Playwright documentation: https://playwright.dev/docs/intro
Playwright documentation - Page Object Model: https://playwright.dev/docs/pom
How to use playwright with Agama: https://github.com/openSUSE/agama/blob/master/playwright/README.md
Notice that for development in your system, you will need to install playwright and run `npx playwright test`, due to in the live iso the command to run is different as described in doc above, `playwright test`.
Notice that some part might done for the CI in https://github.com/openSUSE/agama/tree/master/playwright/tests regarding the user and regarding the install buttom at the end of https://github.com/openSUSE/agama/blob/master/playwright/tests/take_screenshots.spec.ts
Existing test for CI shouldn't be touched for now, but those file might give us some inspiration in case with playwright test generator would not get the best locators.