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:
parent
8aea35b78b
commit
27c9d6c12e
2 changed files with 0 additions and 9 deletions
|
@ -20,9 +20,6 @@ async function testHistory({page, path, referrer, urlHistory}: {page: any, path:
|
||||||
// Showing the success page
|
// Showing the success page
|
||||||
await expect(frame.getByTestId('success-page')).toHaveCount(1);
|
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
|
// Check the request body
|
||||||
expect(lastApiRequest.body).not.toBeNull();
|
expect(lastApiRequest.body).not.toBeNull();
|
||||||
expect(lastApiRequest.body).toHaveProperty('email', 'jamie@example.com');
|
expect(lastApiRequest.body).toHaveProperty('email', 'jamie@example.com');
|
||||||
|
|
|
@ -79,9 +79,6 @@ test.describe('Form', async () => {
|
||||||
// Showing the success page
|
// Showing the success page
|
||||||
await expect(frame.getByTestId('success-page')).toHaveCount(1);
|
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
|
// Check the request body
|
||||||
expect(lastApiRequest.body).not.toBeNull();
|
expect(lastApiRequest.body).not.toBeNull();
|
||||||
expect(lastApiRequest.body).toHaveProperty('labels', []);
|
expect(lastApiRequest.body).toHaveProperty('labels', []);
|
||||||
|
@ -184,9 +181,6 @@ test.describe('Form', async () => {
|
||||||
|
|
||||||
// Showing the success page
|
// Showing the success page
|
||||||
await expect(frame.getByTestId('success-page')).toHaveCount(1);
|
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}) => {
|
test('Shows error message on network issues', async ({page}) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue