From 9d48d35db0524f4d82c68bf7b10664bf31fd7f8f Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 17 Aug 2023 14:15:15 -0500 Subject: [PATCH] chore: remove cyclic error test (now supported) --- packages/astro/e2e/error-cyclic.test.js | 26 ------------------------- 1 file changed, 26 deletions(-) delete mode 100644 packages/astro/e2e/error-cyclic.test.js diff --git a/packages/astro/e2e/error-cyclic.test.js b/packages/astro/e2e/error-cyclic.test.js deleted file mode 100644 index 32cbc050a..000000000 --- a/packages/astro/e2e/error-cyclic.test.js +++ /dev/null @@ -1,26 +0,0 @@ -import { expect } from '@playwright/test'; -import { testFactory, getErrorOverlayContent } from './test-utils.js'; - -const test = testFactory({ - root: './fixtures/error-cyclic/', -}); - -let devServer; - -test.beforeEach(async ({ astro }) => { - devServer = await astro.startDevServer(); -}); - -test.afterEach(async ({ astro }) => { - await devServer.stop(); - astro.resetAllFiles(); -}); - -test.describe('Error: Cyclic Reference', () => { - test('overlay', async ({ page, astro }) => { - await page.goto(astro.resolveUrl('/')); - - const message = (await getErrorOverlayContent(page)).message; - expect(message).toMatch('Cyclic reference'); - }); -});