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:
parent
c7dd274298
commit
357dd3a910
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue