playwright: Adjust Package step test to new widget

Since the new SearchInput widget gets decomposed by PatternFly into a
<div> and the actual <input> element we're looking for is nested rather
deeply in this hierarchy, we need to use the locator to allow Playwright
to descend into that input.
This commit is contained in:
Simon Steinbeiss 2025-04-24 17:10:32 +02:00 committed by Klara Simickova
parent c7dd274298
commit 357dd3a910

View file

@ -98,7 +98,10 @@ test.describe.serial('test', () => {
await frame.getByRole('button', { name: 'Edit blueprint' }).click();
await frame.getByRole('button', { name: 'Additional packages' }).click();
await frame.getByTestId('packages-search-input').fill('osbuild-composer');
await frame
.getByTestId('packages-search-input')
.locator('input')
.fill('osbuild-composer');
await frame.getByTestId('packages-table').getByText('Searching');
await frame.getByRole('gridcell', { name: 'osbuild-composer' }).first();
await frame.getByRole('checkbox', { name: 'Select row 0' }).check();