Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion playwright/Customizations/Locale.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ test('Create a blueprint with Locale customization', async ({
await frame
.getByRole('textbox', { name: 'Search packages' })
.fill('langpacks-ru');
await frame.getByRole('button', { name: 'Selected' }).click();
await expect(frame.getByText('langpacks-ru')).toHaveCount(0);
});

Expand Down
3 changes: 0 additions & 3 deletions playwright/Customizations/OpenSCAP.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ test('Create a blueprint with OpenSCAP customization', async ({
// NOTE: fsc check was removed since we now hide steps when
// none of the image types support the customization
await frame.getByRole('button', { name: 'Additional packages' }).click();
await expect(frame.getByRole('button', { name: /Selected/ })).toBeVisible();
});

await test.step('Select OpenSCAP profile, and check if dependencies are preselected', async () => {
Expand All @@ -90,7 +89,6 @@ test('Create a blueprint with OpenSCAP customization', async ({
})
.click();
await frame.getByRole('button', { name: 'Additional packages' }).click();
await frame.getByRole('button', { name: 'Selected (9)' }).click();
await expect(frame.getByRole('gridcell', { name: 'aide' })).toBeVisible();
await expect(frame.getByRole('gridcell', { name: 'chrony' })).toBeVisible();
await expect(frame.getByRole('gridcell', { name: 'cronie' })).toBeVisible();
Expand Down Expand Up @@ -158,7 +156,6 @@ test('Create a blueprint with OpenSCAP customization', async ({
await expect(frame.getByText('audit_backlog_limit=8192')).toBeVisible();
await expect(frame.getByText('audit=1')).toBeVisible();
await frame.getByRole('button', { name: 'Additional packages' }).click();
await frame.getByRole('button', { name: 'Selected (11)' }).click();
await expect(frame.getByRole('gridcell', { name: 'aide' })).toBeVisible();
await expect(
frame.getByRole('gridcell', { name: 'audit-libs' }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,22 @@ import {
import { SearchIcon } from '@patternfly/react-icons';
import { Tbody, Td, Tr } from '@patternfly/react-table';

type EmptySearchProps = {
toggleSelected: string;
};

const EmptySearch = ({ toggleSelected }: EmptySearchProps) => {
const EmptySearch = () => {
return (
<Tbody>
<Tr>
<Td colSpan={5}>
<Bullseye>
{toggleSelected === 'toggle-available' ? (
<EmptyState
headingLevel='h4'
titleText='Search packages'
icon={SearchIcon}
variant={EmptyStateVariant.sm}
>
<EmptyStateBody>
Search for additional packages to add to your image
</EmptyStateBody>
</EmptyState>
) : (
<EmptyState
headingLevel='h4'
titleText='There are no selected packages'
icon={SearchIcon}
variant={EmptyStateVariant.sm}
>
<EmptyStateBody>
Search above to see available packages
</EmptyStateBody>
</EmptyState>
)}
<EmptyState
headingLevel='h4'
titleText='There are no selected packages'
icon={SearchIcon}
variant={EmptyStateVariant.sm}
>
<EmptyStateBody>
Search above to see available packages
</EmptyStateBody>
</EmptyState>
</Bullseye>
</Td>
</Tr>
Expand Down

This file was deleted.

Loading
Loading