Skip to content

Commit 1c68f30

Browse files
committed
playwright: Use a pre-created template for repeatable build test
Since we're now using only static user, we can run general tests on a pre-created template. Template creation is still being tested in the boot tests.
1 parent f82cf9b commit 1c68f30

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

playwright/Customizations/RepeatableBuild.spec.ts

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ import { v4 as uuidv4 } from 'uuid';
66

77
import {
88
deleteRepository,
9-
deleteTemplate,
109
navigateToRepositories,
11-
navigateToTemplates,
1210
} from '../BootTests/Content/helpers';
1311
import { test } from '../fixtures/customizations';
1412
// import { exportedLocaleBP } from '../fixtures/data/exportBlueprintContents';
@@ -41,15 +39,13 @@ test('Create a blueprint with Repeatable build customization', async ({
4139
'repeatable-test-with-no-snapshot-' + uuidv4().slice(0, 8);
4240
const repositoryUrl =
4341
'https://jlsherrill.fedorapeople.org/fake-repos/really-empty/';
44-
const templateName = 'content-template-test-' + uuidv4().slice(0, 8);
4542

4643
// Here we want to be sure that the repository is deleted due to URL exclusivity per repository
4744
await deleteRepository(page, repositoryUrl);
4845

4946
// Delete the blueprint after the run fixture
5047
cleanup.add(() => deleteBlueprint(page, blueprintName));
5148
cleanup.add(() => deleteRepository(page, repositoryName));
52-
cleanup.add(() => deleteTemplate(page, templateName));
5349

5450
await ensureAuthenticated(page);
5551

@@ -68,47 +64,6 @@ test('Create a blueprint with Repeatable build customization', async ({
6864
).toBeVisible();
6965
});
7066

71-
await test.step('Create a Content Template', async () => {
72-
await navigateToTemplates(page);
73-
await page.getByRole('button', { name: 'Create template' }).click();
74-
75-
await page.getByRole('button', { name: 'filter OS version' }).click();
76-
await page.getByRole('menuitem', { name: 'RHEL 10' }).click();
77-
78-
await page.getByRole('button', { name: 'filter architecture' }).click();
79-
await page.getByRole('menuitem', { name: 'x86_64' }).click();
80-
81-
await page.getByRole('button', { name: 'Next', exact: true }).click();
82-
await page.getByRole('button', { name: 'Next', exact: true }).click(); // skip additional repositories
83-
await page.getByRole('button', { name: 'Next', exact: true }).click(); // skip other repositories
84-
85-
await expect(
86-
page.getByRole('heading', { name: 'Set up date', exact: true }),
87-
).toBeVisible();
88-
await page.getByRole('radio', { name: 'Use the latest content' }).click();
89-
await page.getByRole('button', { name: 'Next', exact: true }).click();
90-
91-
await expect(
92-
page.getByRole('heading', { name: 'Enter template details' }),
93-
).toBeVisible();
94-
await page.getByPlaceholder('Enter name').fill(templateName);
95-
await page.getByRole('button', { name: 'Next', exact: true }).click();
96-
97-
await page.getByRole('button', { name: 'Create other options' }).click();
98-
await page.getByRole('menuitem', { name: 'Create template only' }).click();
99-
100-
// Wait for template to be created and valid
101-
await page
102-
.getByRole('searchbox', { name: 'Filter by name' })
103-
.fill(templateName);
104-
await expect(
105-
page
106-
.getByRole('row')
107-
.filter({ hasText: templateName })
108-
.getByText('Valid', { exact: true }),
109-
).toBeVisible({ timeout: 180000 });
110-
});
111-
11267
// Navigate to IB landing page and get the frame
11368
await navigateToLandingPage(page);
11469
const frame = ibFrame(page);

0 commit comments

Comments
 (0)