Files
SillyTavern/tests/sample.e2e.js
T
DeclineThyself 1c1f25b5c6 Backported /tests from macros-2.0. (#4842)
* 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>
2025-11-29 20:46:54 +02:00

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');
});
});