0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed signup form E2E tests for removed email on success page

This commit is contained in:
Simon Backx 2023-06-01 18:09:57 +02:00
parent 8aea35b78b
commit 27c9d6c12e
2 changed files with 0 additions and 9 deletions

View file

@ -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');

View file

@ -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}) => {