Skip to content

Commit

Permalink
Update playwright test to not test multifile mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
nstrayer committed Oct 4, 2023
1 parent 6bd8199 commit 0572bb2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions inst/editor/playwright/backend-server.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ test("Template chooser can change between templates mid-session", async ({
.first()
.click();

// Make sure we're in single-file output mode
await page.getByLabel("Single file mode").check();

await page
.getByRole("button", { name: "Start editor with selected template" })
.click();
Expand All @@ -58,9 +55,6 @@ test("Template chooser can change between templates mid-session", async ({
// Make sure we're back in the template view
await expect(page.locator(`text=Choose App Template`)).toBeVisible();

// Switch to multi-file output mode
await page.getByLabel("Multi file mode").check();

// Select last template and go into editor
await page
.getByRole("article", { name: "App template preview card" })
Expand All @@ -81,12 +75,6 @@ test("Template chooser can change between templates mid-session", async ({
// 2) The contents are different from the previous view (the actual app previewed changed)
const secondPreviewAppContents = await previewAppBody.innerHTML();
expect(firstPreviewAppContents).not.toBe(secondPreviewAppContents);

const multiFileModeFiles = await backendServer.get_app_folder_contents();
// Contains both ui and server files and doesn't contain an app.r file
expect(containsAppFile(multiFileModeFiles, "ui")).toBe(true);
expect(containsAppFile(multiFileModeFiles, "server")).toBe(true);
expect(containsAppFile(multiFileModeFiles, "app")).toBe(false);
});

test("Ending on template chooser will clear any template files written", async ({
Expand Down

0 comments on commit 0572bb2

Please sign in to comment.