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 464f7baeb0ac..59cd389d27b7 100644 --- a/packages/e2e-tests/src/specs/dashboard/settings/adminUser/analytics.js +++ b/packages/e2e-tests/src/specs/dashboard/settings/adminUser/analytics.js @@ -97,20 +97,9 @@ describe('Analytics', () => { it('should not allow an invalid analytics id to be saved', 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('INVALID'); await expect(page).toClick('button', { text: 'Save' }); - await page.waitForTimeout(400); - await expect(page).not.toMatchTextContent('Setting saved.'); await expect(page).toMatchTextContent('Invalid ID format'); });