codex-marketplace-ui/e2e/settings.spec.ts
2024-10-10 19:14:27 +02:00

10 lines
535 B
TypeScript

import test, { expect } from "@playwright/test";
import { APP_URL } from './constants';
test('update the log level', async ({ page }) => {
await page.goto(APP_URL + '/dashboard');
await page.getByRole('link', { name: 'Settings' }).click();
await page.getByLabel('Log level').selectOption('TRACE');
await page.getByRole('main').locator('div').filter({ hasText: 'Log' }).getByRole('button').click();
await expect(page.locator('span').filter({ hasText: 'success ! The log level has' }).locator('b')).toBeVisible();
})