fix: always show workspace list modal when no workspaces (#1321)
This commit is contained in:
1 parent
1e11f727fd
commit
3e131603dd
5 files changed
+30
-1
No files matched your search
@@ -0,0 +1,5 @@
|
||||
import { Page } from '@playwright/test';
|
||||
|
||||
export async function clickSideBarSettingButton(page: Page) {
|
||||
await page.getByTestId('slider-bar-workspace-setting-button').click();
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { expect } from '@playwright/test';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
import { clickSideBarSettingButton } from './libs/sidebar';
|
||||
|
||||
loadPage();
|
||||
|
||||
test.describe('Local first delete workspace', () => {
|
||||
test('New a workspace , then delete it in all workspaces, permanently delete it', async ({
|
||||
page,
|
||||
}) => {
|
||||
await clickSideBarSettingButton(page);
|
||||
await page.getByTestId('delete-workspace-button').click();
|
||||
await page.getByTestId('delete-workspace-input').type('delete');
|
||||
await page.getByTestId('delete-workspace-confirm-button').click();
|
||||
expect(await page.getByTestId('workspace-card').count()).toBe(0);
|
||||
await page.mouse.click(1, 1);
|
||||
expect(await page.getByTestId('workspace-card').count()).toBe(0);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user