test: add tests for tailored customizations
This commit is contained in:
parent
b203658bac
commit
87c754fb45
6 changed files with 28 additions and 8 deletions
|
|
@ -198,7 +198,6 @@ describe('First boot request generated correctly', () => {
|
|||
const expectedRequest = {
|
||||
...blueprintRequest,
|
||||
customizations: {
|
||||
filesystem: [{ min_size: 10737418240, mountpoint: '/' }],
|
||||
openscap: {
|
||||
profile_id: 'xccdf_org.ssgproject.content_profile_standard',
|
||||
},
|
||||
|
|
@ -229,7 +228,6 @@ describe('First boot request generated correctly', () => {
|
|||
const expectedRequest = {
|
||||
...blueprintRequest,
|
||||
customizations: {
|
||||
filesystem: [{ min_size: 10737418240, mountpoint: '/' }],
|
||||
openscap: {
|
||||
profile_id: 'xccdf_org.ssgproject.content_profile_standard',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -337,7 +337,6 @@ describe('Kernel request generated correctly', () => {
|
|||
const expectedRequest = {
|
||||
...blueprintRequest,
|
||||
customizations: {
|
||||
filesystem: [{ min_size: 10737418240, mountpoint: '/' }],
|
||||
openscap: {
|
||||
profile_id: 'xccdf_org.ssgproject.content_profile_ccn_basic',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ const goToComplianceStep = async () => {
|
|||
const button = await screen.findByLabelText('Insights compliance');
|
||||
await waitFor(() => user.click(button));
|
||||
// wait until all policies are loaded
|
||||
await screen.findByText('None');
|
||||
await screen.findByText('Select a policy');
|
||||
};
|
||||
|
||||
const goToReviewStep = async () => {
|
||||
|
|
@ -65,7 +65,7 @@ const goToReviewStep = async () => {
|
|||
const selectPolicy = async () => {
|
||||
const user = userEvent.setup();
|
||||
|
||||
const policyMenu = await screen.findByText('None');
|
||||
const policyMenu = await screen.findByText('Select a policy');
|
||||
await waitFor(() => user.click(policyMenu));
|
||||
|
||||
const cisl2 = await screen.findByRole('option', {
|
||||
|
|
@ -162,7 +162,8 @@ describe('Compliance edit mode', () => {
|
|||
name: /Selected/i,
|
||||
});
|
||||
user.click(selectedBtn);
|
||||
await screen.findByText('aide');
|
||||
await screen.findByText('emacs');
|
||||
|
||||
expect(screen.queryByText('aide')).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue