From ed2dcba42f96e64f5f458355983403e64db8268e Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Mon, 2 Sep 2024 11:10:29 -0300 Subject: [PATCH] Move rss.spec and signup.spec to e2e-full --- site/gatsby-site/playwright/{e2e => e2e-full}/rss.spec.ts | 3 +++ site/gatsby-site/playwright/{e2e => e2e-full}/signup.spec.ts | 0 2 files changed, 3 insertions(+) rename site/gatsby-site/playwright/{e2e => e2e-full}/rss.spec.ts (95%) rename site/gatsby-site/playwright/{e2e => e2e-full}/signup.spec.ts (100%) diff --git a/site/gatsby-site/playwright/e2e/rss.spec.ts b/site/gatsby-site/playwright/e2e-full/rss.spec.ts similarity index 95% rename from site/gatsby-site/playwright/e2e/rss.spec.ts rename to site/gatsby-site/playwright/e2e-full/rss.spec.ts index cb4cd6d4eb..2c4eda0ff8 100644 --- a/site/gatsby-site/playwright/e2e/rss.spec.ts +++ b/site/gatsby-site/playwright/e2e-full/rss.spec.ts @@ -2,9 +2,11 @@ import { expect } from '@playwright/test'; import config from '../config'; import { test } from '../utils'; import { XMLParser } from 'fast-xml-parser'; +import { init } from '../memory-mongo'; test.describe('RSS', () => { test('Should generate a valid RSS feed', async ({ page }) => { + await init(); const response = await page.request.get('/rss.xml'); expect(response.status()).toBe(200); expect(response.headers()['content-type']).toContain('application/xml'); @@ -22,6 +24,7 @@ test.describe('RSS', () => { if (!config.isEmptyEnvironment) { test('Should generate a valid RSS feed data', async ({ page }) => { + await init(); const response = await page.request.get('/rss.xml'); expect(response.status()).toBe(200); expect(response.headers()['content-type']).toContain('application/xml'); diff --git a/site/gatsby-site/playwright/e2e/signup.spec.ts b/site/gatsby-site/playwright/e2e-full/signup.spec.ts similarity index 100% rename from site/gatsby-site/playwright/e2e/signup.spec.ts rename to site/gatsby-site/playwright/e2e-full/signup.spec.ts