Fix global search folder navigation
This commit is contained in:
@@ -31,6 +31,21 @@ test.describe('UX follow-up fixes', () => {
|
||||
await expect(page.locator('[data-global-search-results]')).toContainText('project-only.txt', { timeout: 10000 });
|
||||
});
|
||||
|
||||
test('global search folder results open the workspace Files context', async ({ page }) => {
|
||||
const search = page.locator('[data-global-search-input]');
|
||||
await search.fill('Project/Notes');
|
||||
|
||||
const folderResult = page.locator('[data-global-search-result-type="Folder"][data-global-search-result-path="Project/Notes"]');
|
||||
await expect(folderResult).toBeVisible({ timeout: 10000 });
|
||||
await folderResult.click();
|
||||
|
||||
await expect(page.locator('.workspace-title')).toHaveText('Project', { timeout: 10000 });
|
||||
await expect(page.getByRole('tab', { name: 'Files' })).toHaveAttribute('aria-selected', 'true');
|
||||
await expect(page.locator('.files-root')).toBeVisible();
|
||||
await expect(page.locator('.files-breadcrumb')).toContainText('Notes');
|
||||
await expect(page.locator('.files-item')).toContainText('Overview.md');
|
||||
});
|
||||
|
||||
test('plugin settings modal gives complex panels enough space', async ({ page }) => {
|
||||
await openPluginManager(page);
|
||||
await page.locator('.plugin-card').filter({ hasText: 'verstak.platform-test' }).getByRole('button', { name: 'Settings' }).click();
|
||||
|
||||
Reference in New Issue
Block a user