Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Feb 19, 2024
1 parent 52807a1 commit 306b955
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions integration/vite-build-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ test.describe("Vite build", () => {

"app/assets/test.css": ".test{color:red}",
"app/routes/ssr-only-css-url-files.tsx": js`
import cssUrl from "../assets/test.module.css";
import cssUrl from "../assets/test.css?url";
import { useLoaderData } from "@remix-run/react"
export const loader: LoaderFunction = () => {
Expand Down Expand Up @@ -324,7 +324,7 @@ test.describe("Vite build", () => {

await page.getByRole("link", { name: "txtUrl" }).click();
await page.waitForURL("**/assets/test-*.txt");
await page.getByText("test").click();
await expect(page.getByText("test")).toBeVisible();
});

test("emits SSR-only .css?url files to the client assets directory", async ({
Expand All @@ -335,8 +335,7 @@ test.describe("Vite build", () => {

await page.getByRole("link", { name: "cssUrl" }).click();
await page.waitForURL("**/assets/test-*.css");
await page.getByText(".test{").click();
await page.goBack();
await expect(page.getByText(".test{")).toBeVisible();
});

test("supports code-split JS from SSR build", async ({ page }) => {
Expand Down

0 comments on commit 306b955

Please sign in to comment.