diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b94736feb..52d263250 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -237,7 +237,6 @@ jobs: - access-control - admin - auth - - email - field-error-states - fields-relationship - fields diff --git a/test/email/e2e.spec.ts b/test/email/e2e.spec.ts deleted file mode 100644 index 18a895262..000000000 --- a/test/email/e2e.spec.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type { Page } from '@playwright/test' - -import { expect, test } from '@playwright/test' -import * as path from 'path' -import { fileURLToPath } from 'url' - -import type { PayloadTestSDK } from '../helpers/sdk/index.js' -import type { Config } from './payload-types.js' - -import { ensureAutoLoginAndCompilationIsDone, initPageConsoleErrorCatch } from '../helpers.js' -import { AdminUrlUtil } from '../helpers/adminUrlUtil.js' -import { initPayloadE2ENoConfig } from '../helpers/initPayloadE2ENoConfig.js' -import { POLL_TOPASS_TIMEOUT } from '../playwright.config.js' - -const filename = fileURLToPath(import.meta.url) -const dirname = path.dirname(filename) - -test.describe('Emails', () => { - let page: Page - let url: AdminUrlUtil - let payload: PayloadTestSDK - - test.beforeAll(async ({ browser }) => { - const { payload: payloadFromConfig, serverURL } = await initPayloadE2ENoConfig({ dirname }) - url = new AdminUrlUtil(serverURL, 'posts') - - payload = payloadFromConfig - - const context = await browser.newContext() - page = await context.newPage() - initPageConsoleErrorCatch(page) - await ensureAutoLoginAndCompilationIsDone({ page, serverURL }) - }) - - test('can send email via API', async () => { - const email = (await payload.sendEmail({ - to: 'test@example.com', - subject: 'hello', - })) as { response: string } - - await expect(() => expect(email?.response).toContain('Accepted')).toPass({ - timeout: POLL_TOPASS_TIMEOUT, - }) - }) -})