Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,137 changes: 0 additions & 1,137 deletions e2e/branch-switcher.spec.ts

This file was deleted.

34 changes: 0 additions & 34 deletions e2e/electron-test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,40 +94,6 @@ export async function ensureFilesViewOpenInLeftPanel(
await expect(filesTab).toHaveAttribute("data-focused", "true");
}

export async function ensureHistoryViewOpenInLeftPanel(
page: Page,
): Promise<void> {
await waitForWorkspaceReady(page);
const leftPanel = page.locator("aside").first();
let historyTab = leftPanel
.locator('[data-view-key="atelier_history"]')
.first();
const leftPanelToggle = page.getByLabel("Toggle left panel").first();

if ((await historyTab.count()) === 0) {
await expect(leftPanelToggle).toBeVisible();
if ((await leftPanelToggle.getAttribute("aria-pressed")) !== "true") {
await leftPanelToggle.click();
}
await expect(leftPanelToggle).toHaveAttribute("aria-pressed", "true");
const addViewButton = leftPanel.getByLabel("Add view").first();
await expect(addViewButton).toBeVisible();
await addViewButton.click();
await page.getByRole("menuitem", { name: "History", exact: true }).click();
historyTab = leftPanel.locator('[data-view-key="atelier_history"]').first();
}

await expect(leftPanelToggle).toBeVisible();
if ((await leftPanelToggle.getAttribute("aria-pressed")) !== "true") {
await leftPanelToggle.click();
}

await expect(leftPanelToggle).toHaveAttribute("aria-pressed", "true");
await expect(historyTab).toBeVisible();
await historyTab.click();
await expect(historyTab).toHaveAttribute("data-focused", "true");
}

async function waitForWorkspaceReady(page: Page): Promise<void> {
await expect(page.locator(".atelier-panel-group")).toBeVisible();
await expect(page.getByLabel("Flashtype loading")).toHaveCount(0);
Expand Down
3 changes: 2 additions & 1 deletion e2e/workspace-windows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@ test("launching with multiple standalone markdown files creates one grouped tran
"false",
);
await groupedPage.getByLabel("Toggle left panel").click();
await fileTreeDirectory(groupedPage, "/standalone-markdown-alpha/").click();
// The active document's directory is auto-revealed (expanded), so its
// lix-backed and watched children are visible without clicking it.
await expect(
fileTreeFile(groupedPage, "/standalone-markdown-alpha/alpha.md"),
).toBeVisible();
Expand Down
259 changes: 0 additions & 259 deletions electron/checkpoint-name.mjs

This file was deleted.

Loading
Loading