1c1f25b5c6
* Backported `/tests` from `macros-2.0`. * Added `eslint-plugin-playwright` * Improve formatting --------- Co-authored-by: user <user@exmaple.com> Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
13 lines
395 B
JavaScript
13 lines
395 B
JavaScript
import { test, expect } from '@playwright/test';
|
|
|
|
test.describe('sample', () => {
|
|
test.beforeEach(async({ page }) => {
|
|
await page.goto('/');
|
|
await page.waitForFunction('document.getElementById("preloader") === null', { timeout: 0 });
|
|
});
|
|
|
|
test('should be titled "SillyTavern"', async ({ page }) => {
|
|
await expect(page).toHaveTitle('SillyTavern');
|
|
});
|
|
});
|