Skip to content

Commit

Permalink
Remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 2, 2023
1 parent 9547f6e commit 58359bf
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

0 comments on commit 58359bf

Please sign in to comment.