## ISSUE (e2e) - Introduces e2e for twenty - Closes #6360 ## Description - [x] Create Package. - [x] Setup environments such as baseUrl. - [x] ignore CI configuration for now. - [x] write a simple test to check if table is visible in companies tab. ### Running test with UI ``` yarn run test:e2e:ui ``` https://github.com/user-attachments/assets/a7b7ae35-8898-461e-8c7c-d3e4e9515aeb ### Running all test and seeing report ``` yarn run test:e2e yarn run test:e2e:report ``` https://github.com/user-attachments/assets/2558a1f9-97cc-4f06-86f0-806f207eac5a --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
15 lines
387 B
TypeScript
15 lines
387 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
test.describe('visible table', () => {
|
|
test('table should be visible on navigation to /objects/companies', async ({
|
|
page,
|
|
}) => {
|
|
// Navigate to the page
|
|
await page.goto('/objects/companies');
|
|
|
|
// Check if the table is visible
|
|
const table = page.locator('table');
|
|
await expect(table).toBeVisible();
|
|
});
|
|
});
|