Skip to content

Commit 8043ce3

Browse files
committed
tests: Update tests to reflect the changes in the step
1 parent 2094e6c commit 8043ce3

File tree

7 files changed

+263
-433
lines changed

7 files changed

+263
-433
lines changed

playwright/Customizations/Locale.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ test('Create a blueprint with Locale customization', async ({
6868
await frame
6969
.getByRole('textbox', { name: 'Search packages' })
7070
.fill('langpacks-ru');
71-
await frame.getByRole('button', { name: 'Selected' }).click();
7271
await expect(frame.getByText('langpacks-ru')).toHaveCount(0);
7372
});
7473

playwright/Customizations/OpenSCAP.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ test('Create a blueprint with OpenSCAP customization', async ({
7474
// NOTE: fsc check was removed since we now hide steps when
7575
// none of the image types support the customization
7676
await frame.getByRole('button', { name: 'Additional packages' }).click();
77-
await expect(frame.getByRole('button', { name: /Selected/ })).toBeVisible();
7877
});
7978

8079
await test.step('Select OpenSCAP profile, and check if dependencies are preselected', async () => {

src/Components/CreateImageWizard/steps/Packages/components/PackageSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ const PackageSearch = ({
191191
const onTextInputChange = (_event: React.FormEvent, value: string) => {
192192
setSearchTerm(value);
193193
setIsOpen(true);
194-
setActiveStream('');
195194
if (value === '') {
195+
setActiveStream('');
196196
setIsSearchingOtherRepos(false);
197197
}
198198
};

0 commit comments

Comments
 (0)