Wizard: Switch from deprecated select in ActivationKeys

This replaces a deprecated select in `ActivationKeys` for a non-deprecated one.
This commit is contained in:
regexowl 2025-03-19 11:58:49 +01:00 committed by Klara Simickova
parent a34d5895d9
commit 0431ac98dc
4 changed files with 108 additions and 38 deletions

View file

@ -73,9 +73,9 @@ const deselectPredictiveAnalytics = async () => {
const openActivationKeyDropdown = async () => {
const user = userEvent.setup();
const activationKeyDropdown = await screen.findByRole('textbox', {
name: 'Select activation key',
});
const activationKeyDropdown = await screen.findByPlaceholderText(
'Select activation key'
);
user.click(activationKeyDropdown);
};
@ -197,9 +197,9 @@ describe('Step Registration', () => {
).not.toBeInTheDocument()
);
await waitFor(async () =>
expect(
await screen.findByRole('button', { name: /options menu/i })
).toBeDisabled()
expect(await screen.findByTestId('activation-key-select')).toHaveClass(
'pf-m-disabled'
)
);
await goToReviewStep();
await screen.findByText('Register the system later');