Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,30 @@ 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: [
{
name: 'chromium',
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: {
Expand Down
18 changes: 18 additions & 0 deletions tests/e2e/ui-tests/pulsifi/talent-app.spec.ts
Original file line number Diff line number Diff line change
@@ -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();

});
});
Loading