diff --git a/playwright.config.ts b/playwright.config.ts index d54731d..8b7920a 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -6,9 +6,10 @@ export default defineConfig({ forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, workers: process.env.CI ? 5 : undefined, - reporter: 'html', + reporter: 'list', + use: { - trace: 'on-first-retry', + trace: 'on', }, projects: [ { @@ -16,15 +17,19 @@ export default defineConfig({ use: { ...devices['Desktop Chrome'] }, }, - { - name: 'firefox', - use: { ...devices['Desktop Firefox'] }, - }, + // { + // name: 'firefox', + // use: { ...devices['Desktop Firefox'] }, + // }, - { - name: 'webkit', - use: { ...devices['Desktop Safari'] }, - }, + // { + // name: 'webkit', + // use: { ...devices['Desktop Safari'] }, + // }, + // { + // name: 'Microsoft Edge', + // use: { ...devices['Desktop Edge'] }, + // }, ], /* Run your local dev server before starting the tests */ // webServer: { diff --git a/tests/e2e/ui-tests/pulsifi/talent-app.spec.ts b/tests/e2e/ui-tests/pulsifi/talent-app.spec.ts new file mode 100644 index 0000000..684a880 --- /dev/null +++ b/tests/e2e/ui-tests/pulsifi/talent-app.spec.ts @@ -0,0 +1,18 @@ +import { test } from '@playwright/test'; + +const appUrl = 'https://staging-app.pulsifi.me'; + +test.describe('smoke test for talent app', () => { + test.beforeEach(async ({ page }) => { + await page.goto(appUrl); + await page.waitForURL(/enterprise|id/, {waitUntil: 'load'}); + await page.waitForTimeout(2 * 60 * 1000); + }); + + test('should load the app successfully', async ({ page }) => { + await page.getByRole('textbox', { name: 'Email' }).fill('test2@gmail.com'); + await page.getByRole('textbox', { name: 'Password' }).fill('Qa12345'); + await page.getByRole('button', { name: 'Log In' }).click(); + + }); +});