From 58359bf5339092fbea33eacb97c6addd04bc44a3 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 2 Nov 2023 12:43:51 +0100 Subject: [PATCH] Remove duplicate test --- .../dashboard/settings/adminUser/analytics.js | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/packages/e2e-tests/src/specs/dashboard/settings/adminUser/analytics.js b/packages/e2e-tests/src/specs/dashboard/settings/adminUser/analytics.js index 59cd389d27b7..eee9eee83e86 100644 --- a/packages/e2e-tests/src/specs/dashboard/settings/adminUser/analytics.js +++ b/packages/e2e-tests/src/specs/dashboard/settings/adminUser/analytics.js @@ -102,24 +102,4 @@ describe('Analytics', () => { await expect(page).toMatchTextContent('Invalid ID format'); }); - - it("should not allow an update of google analytics id when id format doesn't match required format", async () => { - await page.click(INPUT_SELECTOR); - - const inputLength = await page.$eval(INPUT_SELECTOR, (el) => { - return el.value.length; - }); - - for (let iter = 0; iter < inputLength; iter++) { - // disable eslint to prevent overlapping .act calls - // eslint-disable-next-line no-await-in-loop - await page.keyboard.press('Backspace'); - } - await page.keyboard.type('Clearly not a valid id'); - await page.keyboard.press('Enter'); - - await page.waitForTimeout(400); - await expect(page).not.toMatchTextContent('Setting saved.'); - await expect(page).toMatchTextContent('Invalid ID format'); - }); });