action #168289
Updated by JERiveraMoya 15 days ago
#### Motivation DASD has received multiple changes in last sprints by the developers, we need to revisit our automation with puppeteer. openQA test in scenario opensuse-agama-9.0-agama-installer-s390x-agama_default@s390x-zVM-vswitch-l2 fails in [agama](https://openqa.opensuse.org/tests/4565364/modules/agama/steps/5) For SLES seems that is still working, so maybe some slight adjustment are needed. #### Acceptance criteria - **AC1**: Make stable interactive default intallation in s390x zVM in all agama job groups. - **AC2**: Convert automation to use POM (Page Object Model). #### Additional information - Check all our job groups and run 10x 20x each job to be sure changes in automation are stable. - This is the code from `src/checks/storage_dasd.ts`: ``` import { it, page } from "../lib/helpers"; export function prepareDasdStorage() { it("should prepare DASD storage", async function () { // Workaround, sometimes the UI seems not responsive await page.locator("a[href='#/storage']").click({ delay: 1000 }); await page.locator("a[href='#/storage']").click({ delay: 1000 }); await page.locator("a[href='#/storage/target-device']").click(); await page.locator("span::-p-text('storage techs')").click(); await page.locator("span::-p-text('DASD')").click({ delay: 1000 }); // Enabling DASD device, by default it is always disabled await page.locator("input[name='checkrow0']").click({ delay: 1000 }); await page.locator("span::-p-text('Perform an action')").click({ delay: 1000 }); await page.locator("span::-p-text('Activate')").click(); // Selecting installation device await page.locator("a[href='#/storage']").click(); await page.locator("a[href='#/storage/target-device']").click({ delay: 1000 }); await page.locator("input[aria-label='Select row 0']").click(); await page.locator("button[form='targetSelection']").click(); }); } ```