package.json: upgrade patternfly to version 5

This upgrade requires multiple package updates. There are many style
updates to reflect pf5's syntax and structure changes
This commit is contained in:
jkozol 2023-09-27 17:04:34 +02:00 committed by Lucas Garfield
parent c4d411efa4
commit a5b1b1f775
27 changed files with 21227 additions and 3291 deletions

View file

@ -136,12 +136,12 @@ describe('On Recreate', () => {
await waitFor(() => expect(createImageButton).toBeEnabled());
// check that the FSC contains a /tmp partition
const navigation = await screen.findByRole('navigation');
await user.click(
await within(navigation).findByRole('button', {
name: /file system configuration/i,
})
);
// There are two buttons with the same name but cannot easily select the DDF rendered sidenav.
// The sidenav will be the first node found out of all buttons.
const buttonsFSC = screen.getAllByRole('button', {
name: /file system configuration/i,
});
await user.click(buttonsFSC[0]);
await screen.findByRole('heading', { name: /file system configuration/i });
await screen.findByText('/tmp');

View file

@ -116,11 +116,8 @@ describe('Images Table', () => {
const { findAllByRole } = within(table);
const rows = await findAllByRole('row');
// first row is header so look at index 1
const imageId = rows[1].cells[1].textContent;
const actionsButton = await within(rows[1]).findByRole('button', {
name: 'Actions',
name: 'Kebab toggle',
});
expect(actionsButton).toBeEnabled();
@ -151,7 +148,7 @@ describe('Images Table', () => {
// first row is header so look at index 1
const actionsButton = await within(rows[1]).findByRole('button', {
name: 'Actions',
name: 'Kebab toggle',
});
await user.click(actionsButton);

View file

@ -40,11 +40,6 @@ describe('Create Share To Regions Modal', () => {
const shareButton = await screen.findByRole('button', { name: /share/i });
expect(shareButton).toBeDisabled();
let invalidAlert = screen.queryByText(
/select at least one region to share to\./i
);
expect(invalidAlert).not.toBeInTheDocument();
const selectToggle = screen.getByRole('button', { name: /options menu/i });
// eslint-disable-next-line testing-library/no-unnecessary-act
user.click(selectToggle);
@ -60,7 +55,7 @@ describe('Create Share To Regions Modal', () => {
user.click(clearAllButton);
await waitFor(() => expect(shareButton).toBeDisabled());
invalidAlert = screen.getByText(
const invalidAlert = screen.getByText(
/select at least one region to share to\./i
);
expect(invalidAlert).toBeInTheDocument();