Wizard: add satellite registration, add jwt-decode

The jwt decode dependency helps us to keep track of the token that is
present in the Satellite command. jwt-decode is the most popular
dependency for the job, and very easy to use.
This commit is contained in:
Anna Vítová 2025-03-05 09:55:17 +01:00 committed by Klara Simickova
parent 739c0538fe
commit a4034e8787
21 changed files with 20892 additions and 6818 deletions

View file

@ -141,7 +141,7 @@ describe('Keyboard accessibility', () => {
'Automatically register and enable advanced capabilities'
);
const registrationCheckbox = await screen.findByTestId(
'automatically-register-checkbox'
'automatically-register-radio'
);
expect(registrationCheckbox).toHaveFocus();
await screen.findByRole('textbox', {

View file

@ -116,10 +116,10 @@ export const clickRegisterLater = async () => {
await screen.findByRole('heading', {
name: /Register systems using this image/,
});
const registrationCheckbox = await screen.findByRole('checkbox', {
name: /automatically register and enable advanced capabilities/i,
const registerLaterRadio = await screen.findByRole('radio', {
name: /register later/i,
});
await waitFor(() => user.click(registrationCheckbox));
await waitFor(() => user.click(registerLaterRadio));
};
export const goToOscapStep = async () => {