chore: fix e2e (#3557)

* chore: change testid of Help

* test: fix e2e
This commit is contained in:
Zeke Zhang 2024-02-23 09:30:28 +08:00 committed by GitHub
parent d02d24b484
commit 5edb8ca85d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -85,7 +85,7 @@ export const Help = () => {
}}
>
<span
data-testid="user-center-button"
data-testid="help-button"
className={css`
max-width: 160px;
overflow: hidden;

View File

@ -9,6 +9,8 @@ setup('admin', async ({ page }) => {
await page.getByPlaceholder('Password').fill('admin123');
await page.getByRole('button', { name: 'Sign in' }).click();
await expect(page.getByTestId('user-center-button')).toBeVisible();
// 开启配置状态
await page.evaluate(() => {
localStorage.setItem('NOCOBASE_DESIGNABLE', 'true');