Skip to content

Commit

Permalink
Tests for logs details
Browse files Browse the repository at this point in the history
  • Loading branch information
z-x committed Jul 8, 2024
1 parent 054f9b9 commit bd9bad8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gui/next/playwright/logsv2.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,17 @@ test('filtering logs by string', async ({ page }) => {
await expect(page.getByText(`Timestamp log ${currentTime}`).first()).toBeVisible();

await expect(page.locator('tbody').getByRole('row')).toHaveCount(1);
});


test('opening and closing logs details', async ({ page }) => {
await page.goto(url);

await page.getByRole('link', { name: 'This is a first test log for logsv2' }).click();
await expect(page.getByRole('heading', { name: 'info'})).toBeVisible();
await expect(page.locator('code').getByText('This is a first test log for logsv2')).toBeVisible();

// closing
await page.getByRole('link', { name: 'Close details' }).click();
await expect(page.getByRole('heading', { name: 'info'})).toBeHidden();
});

0 comments on commit bd9bad8

Please sign in to comment.