Basic test verifying if demo account is working properly (#8442)

This commit is contained in:
BOHEUS
2024-12-17 13:56:00 +01:00
committed by GitHub
parent 8bb699cbc2
commit c754585e47
5 changed files with 86 additions and 3 deletions

View File

@ -0,0 +1,16 @@
import { test, expect } from '../../lib/fixtures/screenshot';
test.describe('Basic check', () => {
test('Checking if table in Companies is visible', async ({ page }) => {
await expect(page.getByTestId('tooltip').nth(0)).toHaveText('Companies');
await expect(page.getByTestId('tooltip').nth(0)).toBeVisible();
expect(page.url()).toContain('/companies');
await expect(page.locator('table')).toBeVisible();
await expect(page.locator('tbody > tr')).toHaveCount(13); // shouldn't be hardcoded in case of tests on demo
});
test('', async ({ page }) => {
await page.getByRole('link', { name: 'Opportunities' }).click();
await expect(page.locator('table')).toBeVisible();
});
});