Wizard: Update the Repositories step
This updates the Repositories and Review step as per [mocks](https://www.sketch.com/s/d7aa6d29-fca0-4283-a846-09cc5fd10612/a/MyEbDz7). Repositories with the unavailable or invalid status have a popover that allows for further inspection. The time of the last introspection and the counter of failed attempts was added to the popover, together with the "Go to Repositories" button. On Recreate the payload repositories are checked against "freshly" fetched list of repositories. In case any of the previously checked repositories is no longer available in content sources an Alert is rendered on both Repositories and Review steps. The unavailable repository is checked, but the checkbox is disabled and the information is dashed out. Since the information about the repository is stored in the Repository type, the only information available to be rendered is the baseurl. Create image button is also disabled when recreating an image with unavailable repositories.
This commit is contained in:
parent
0822a69619
commit
9f5a0af826
12 changed files with 748 additions and 138 deletions
|
|
@ -88,12 +88,12 @@ const searchForAvailablePackages = async (searchbox, searchTerm) => {
|
|||
);
|
||||
};
|
||||
|
||||
const switchToAWSManual = () => {
|
||||
const switchToAWSManual = async () => {
|
||||
const user = userEvent.setup();
|
||||
const manualRadio = screen.getByRole('radio', {
|
||||
name: /manually enter an account id\./i,
|
||||
});
|
||||
user.click(manualRadio);
|
||||
await user.click(manualRadio);
|
||||
return manualRadio;
|
||||
};
|
||||
|
||||
|
|
@ -152,7 +152,7 @@ describe('Step Image output', () => {
|
|||
|
||||
await clickNext();
|
||||
|
||||
switchToAWSManual();
|
||||
await switchToAWSManual();
|
||||
await screen.findByText('AWS account ID');
|
||||
});
|
||||
|
||||
|
|
@ -289,7 +289,7 @@ describe('Step Upload to AWS', () => {
|
|||
test('clicking Next loads Registration', async () => {
|
||||
await setUp();
|
||||
|
||||
switchToAWSManual();
|
||||
await switchToAWSManual();
|
||||
await user.type(
|
||||
await screen.findByTestId('aws-account-id'),
|
||||
'012345678901'
|
||||
|
|
@ -700,7 +700,7 @@ describe('Step File system configuration', () => {
|
|||
await clickNext();
|
||||
|
||||
// aws step
|
||||
switchToAWSManual();
|
||||
await switchToAWSManual();
|
||||
await user.type(
|
||||
await screen.findByTestId('aws-account-id'),
|
||||
'012345678901'
|
||||
|
|
@ -775,7 +775,7 @@ describe('Step Details', () => {
|
|||
await clickNext();
|
||||
|
||||
// aws step
|
||||
switchToAWSManual();
|
||||
await switchToAWSManual();
|
||||
await user.type(
|
||||
await screen.findByTestId('aws-account-id'),
|
||||
'012345678901'
|
||||
|
|
@ -844,7 +844,7 @@ describe('Step Review', () => {
|
|||
await clickNext();
|
||||
|
||||
// aws step
|
||||
switchToAWSManual();
|
||||
await switchToAWSManual();
|
||||
await user.type(
|
||||
await screen.findByTestId('aws-account-id'),
|
||||
'012345678901'
|
||||
|
|
@ -894,7 +894,7 @@ describe('Step Review', () => {
|
|||
await clickNext();
|
||||
|
||||
// aws step
|
||||
switchToAWSManual();
|
||||
await switchToAWSManual();
|
||||
await user.type(
|
||||
await screen.findByTestId('aws-account-id'),
|
||||
'012345678901'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue