|
|
@@ -130,9 +130,10 @@ describe.skipIf(MODE === 'record')('web e2e: document preview through Files', ()
|
|
|
expect(await column.locator('[data-dockkit-tab]').count()).toBe(1)
|
|
|
const defaultTitle = await filesTab.locator('[data-dockkit-tab-title]').innerText()
|
|
|
const initialFilesClose = await filesTab.locator('[data-dockkit-tab-close]').count()
|
|
|
- expect(initialFilesClose).toBe(0)
|
|
|
+ expect(initialFilesClose).toBe(1)
|
|
|
await filesTab.click({ button: 'right' })
|
|
|
- expect(await page.locator('[data-dockkit-tab-menu]:visible').count()).toBe(0)
|
|
|
+ expect(await page.locator('[data-dockkit-tab-menu]:visible').count()).toBe(1)
|
|
|
+ await page.keyboard.press('Escape')
|
|
|
await addTab.waitFor({ state: 'visible' })
|
|
|
const initialAdd = await addTab.count()
|
|
|
expect(initialAdd).toBe(1)
|
|
|
@@ -143,9 +144,10 @@ describe.skipIf(MODE === 'record')('web e2e: document preview through Files', ()
|
|
|
const guideClose = await guideTab.locator('[data-dockkit-tab-close]').count()
|
|
|
const filesCloseWithGuide = await filesTab.locator('[data-dockkit-tab-close]').count()
|
|
|
expect(guideClose).toBe(1)
|
|
|
- expect(filesCloseWithGuide).toBe(0)
|
|
|
+ expect(filesCloseWithGuide).toBe(1)
|
|
|
await expect.poll(() => addTab.count()).toBe(0)
|
|
|
const addWithGuide = await addTab.count()
|
|
|
+ await guideTab.hover()
|
|
|
await guideTab.locator('[data-dockkit-tab-close]').click()
|
|
|
await column.locator('[data-files-state="tree"]').waitFor({ state: 'visible' })
|
|
|
await expect.poll(() => column.locator('[data-sidebar-right-guide]').count()).toBe(0)
|
|
|
@@ -153,7 +155,7 @@ describe.skipIf(MODE === 'record')('web e2e: document preview through Files', ()
|
|
|
await addTab.waitFor({ state: 'visible' })
|
|
|
const restoredFilesClose = await filesTab.locator('[data-dockkit-tab-close]').count()
|
|
|
const restoredAdd = await addTab.count()
|
|
|
- expect(restoredFilesClose).toBe(0)
|
|
|
+ expect(restoredFilesClose).toBe(1)
|
|
|
expect(restoredAdd).toBe(1)
|
|
|
const preview = column.locator('[data-document-preview]')
|
|
|
const openFile = async (name: string): Promise<void> => {
|