mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 10:36:22 +08:00
feat: group all page by date (#2532)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
@@ -62,7 +62,7 @@ test('access public workspace page', async ({ page, browser }) => {
|
||||
timeout: 10000,
|
||||
});
|
||||
await clickSideBarAllPageButton(page);
|
||||
await page.locator('tr').nth(1).click();
|
||||
await page.locator('tr').nth(2).click();
|
||||
const url = page.url();
|
||||
const context = await browser.newContext();
|
||||
const page2 = await context.newPage();
|
||||
|
||||
@@ -11,9 +11,9 @@ test('should broadcast a message to all debug pages', async ({
|
||||
await page.waitForSelector('#__next');
|
||||
await page2.waitForSelector('#__next');
|
||||
await page.click('[data-testid="create-page"]');
|
||||
expect(await page.locator('tr').count()).toBe(2);
|
||||
expect(await page2.locator('tr').count()).toBe(2);
|
||||
await page2.click('[data-testid="create-page"]');
|
||||
expect(await page.locator('tr').count()).toBe(3);
|
||||
expect(await page2.locator('tr').count()).toBe(3);
|
||||
await page2.click('[data-testid="create-page"]');
|
||||
expect(await page.locator('tr').count()).toBe(4);
|
||||
expect(await page2.locator('tr').count()).toBe(4);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user