From 013bbd0342af03359ad642e8b4182b0b6fe64213 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Mon, 19 Dec 2022 14:57:47 +0100 Subject: [PATCH] Remove testing files --- test/e2e/abc/abc.test.ts | 34 ---------------------------------- test/e2e/abc/pages/index.js | 3 --- 2 files changed, 37 deletions(-) delete mode 100644 test/e2e/abc/abc.test.ts delete mode 100644 test/e2e/abc/pages/index.js diff --git a/test/e2e/abc/abc.test.ts b/test/e2e/abc/abc.test.ts deleted file mode 100644 index a72187a45376fa6..000000000000000 --- a/test/e2e/abc/abc.test.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { createNextDescribe } from 'e2e-utils' - -createNextDescribe( - 'abc', - { - files: __dirname, - }, - ({ next }) => { - // Recommended for tests that check HTML. Cheerio is a HTML parser that has a jQuery like API. - it('should work using cheerio', async () => { - const $ = await next.render$('/') - expect($('p').text()).toBe('hello world') - }) - - // Recommended for tests that need a full browser - it('should work using browser', async () => { - const browser = await next.browser('/') - expect(await browser.getElementByCss('p').text()).toBe('hello world') - }) - - // In case you need the full HTML. Can also use $.html() with cheerio. - it('should work with html', async () => { - const html = await next.render('/') - expect(html).toContain('hello world') - }) - - // In case you need to test the response object - it('should work with fetch', async () => { - const res = await next.fetch('/') - const html = await res.text() - expect(html).toContain('hello world') - }) - } -) diff --git a/test/e2e/abc/pages/index.js b/test/e2e/abc/pages/index.js deleted file mode 100644 index ff7159d9149feeb..000000000000000 --- a/test/e2e/abc/pages/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function Page() { - return

hello world

-}