Skip to content

Modern Docker Management, Designed for Everyone

chore: remove old test

Kyle Mendelle3ee9025d09f
diff --git a/tests/spec/environment-settings.spec.ts b/tests/spec/environment-settings.spec.ts
index 01c4b216d..c0e0f9f24 100644
--- a/tests/spec/environment-settings.spec.ts
+++ b/tests/spec/environment-settings.spec.ts
@@ -296,55 +296,6 @@ test.describe('Environment Settings UI', () => {
}
});
- test('should update and save the trivy cache prune preservation setting', async ({ page }) => {
- await openLocalEnvironment(page);
- await page.getByRole('tab', { name: 'Security', exact: true }).click();
-
- const preserveCacheSwitch = page.locator('#trivyPreserveCacheOnVolumePruneSwitch');
- await expect(preserveCacheSwitch).toBeVisible();
-
- const originalChecked = (await preserveCacheSwitch.getAttribute('aria-checked')) === 'true';
- const updatedChecked = !originalChecked;
-
- try {
- await preserveCacheSwitch.click();
- await expect(preserveCacheSwitch).toHaveAttribute('aria-checked', String(updatedChecked));
-
- const saveButton = page.getByRole('button', { name: 'Save', exact: true }).first();
- await expect(saveButton).toBeEnabled();
-
- const responsePromise = page.waitForResponse((response) => {
- const request = response.request();
- if (request.method() !== 'PUT') return false;
- const url = new URL(response.url());
- return url.pathname === `/api/environments/${LOCAL_ENV_ID}/settings`;
- });
-
- await saveButton.click();
- const response = await responsePromise;
- expect(response.ok()).toBeTruthy();
-
- await page.reload();
- await page.getByRole('tab', { name: 'Security', exact: true }).click();
- await expect(page.locator('#trivyPreserveCacheOnVolumePruneSwitch')).toHaveAttribute(
- 'aria-checked',
- String(updatedChecked)
- );
- } finally {
- if (!page.isClosed()) {
- await page.getByRole('tab', { name: 'Security', exact: true }).click();
- const currentChecked =
- (await page
- .locator('#trivyPreserveCacheOnVolumePruneSwitch')
- .getAttribute('aria-checked')) === 'true';
- if (currentChecked !== originalChecked) {
- await page.locator('#trivyPreserveCacheOnVolumePruneSwitch').click();
- await saveAndWaitForPut(page, `/api/environments/${LOCAL_ENV_ID}/settings`);
- }
- }
- }
- });
-
test('should update and save the trivy network mode including auto', async ({ page }) => {
await openLocalEnvironment(page);
await page.getByRole('tab', { name: 'Security', exact: true }).click();