import { test, expect } from '@playwright/test'; // eslint-disable-next-line import/extensions import { resetDatabaseAndImportDataFromPath } from '../../scripts/dts-import'; import { login } from '../../utils/login'; test.describe('Log Out', () => { test.beforeEach(async ({ page }) => { await resetDatabaseAndImportDataFromPath('./e2e/data/with-admin.tar'); await page.goto('/admin'); await login({ page }); }); test('a user should be able to logout', async ({ page }) => { await page.getByText('test testing').click(); await page.getByText('Logout').click(); await expect(page.getByText('Log in to your Strapi account')).toBeVisible(); }); });