From 27c9d6c12e62dc5b963a5209051ba551f1defd77 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Thu, 1 Jun 2023 18:09:57 +0200 Subject: [PATCH] Fixed signup form E2E tests for removed email on success page --- ghost/signup-form/test/e2e/attribution.test.ts | 3 --- ghost/signup-form/test/e2e/form.test.ts | 6 ------ 2 files changed, 9 deletions(-) diff --git a/ghost/signup-form/test/e2e/attribution.test.ts b/ghost/signup-form/test/e2e/attribution.test.ts index 1443b4c21a..ec1d364728 100644 --- a/ghost/signup-form/test/e2e/attribution.test.ts +++ b/ghost/signup-form/test/e2e/attribution.test.ts @@ -20,9 +20,6 @@ async function testHistory({page, path, referrer, urlHistory}: {page: any, path: // Showing the success page await expect(frame.getByTestId('success-page')).toHaveCount(1); - // Check email address text is visible on the page - await expect(frame.getByText('jamie@example.com')).toBeVisible(); - // Check the request body expect(lastApiRequest.body).not.toBeNull(); expect(lastApiRequest.body).toHaveProperty('email', 'jamie@example.com'); diff --git a/ghost/signup-form/test/e2e/form.test.ts b/ghost/signup-form/test/e2e/form.test.ts index 5584f6b29a..5023f971a4 100644 --- a/ghost/signup-form/test/e2e/form.test.ts +++ b/ghost/signup-form/test/e2e/form.test.ts @@ -79,9 +79,6 @@ test.describe('Form', async () => { // Showing the success page await expect(frame.getByTestId('success-page')).toHaveCount(1); - // Check email address text is visible on the page - await expect(frame.getByText('jamie@example.com')).toBeVisible(); - // Check the request body expect(lastApiRequest.body).not.toBeNull(); expect(lastApiRequest.body).toHaveProperty('labels', []); @@ -184,9 +181,6 @@ test.describe('Form', async () => { // Showing the success page await expect(frame.getByTestId('success-page')).toHaveCount(1); - - // Check email address text is visible on the page - await expect(frame.getByText('valid@example.com')).toBeVisible(); }); test('Shows error message on network issues', async ({page}) => {