mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
* feat: adjust of menu in upper right corner of page * fix: uncomment * chore: change License link * chore: optimize text color * chore: optimize text color * test: fix e2e
20 lines
686 B
TypeScript
20 lines
686 B
TypeScript
import { expect, test as setup } from '@playwright/test';
|
|
|
|
// 保存登录状态,避免每次都要登录
|
|
setup('admin', async ({ page }) => {
|
|
await page.goto('/');
|
|
await page.getByPlaceholder('Username/Email').click();
|
|
await page.getByPlaceholder('Username/Email').fill('admin@nocobase.com');
|
|
await page.getByPlaceholder('Password').click();
|
|
await page.getByPlaceholder('Password').fill('admin123');
|
|
await page.getByRole('button', { name: 'Sign in' }).click();
|
|
|
|
// 开启配置状态
|
|
await page.evaluate(() => {
|
|
localStorage.setItem('NOCOBASE_DESIGNABLE', 'true');
|
|
});
|
|
await page.context().storageState({
|
|
path: process.env.PLAYWRIGHT_AUTH_FILE,
|
|
});
|
|
});
|