🎉 初始化项目
This commit is contained in:
12
web-app/tests/sample.e2e.js
Normal file
12
web-app/tests/sample.e2e.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user