Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: refactored require/imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Oct 29, 2022
1 parent 4dc16c4 commit da2b356
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/home.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
const { test, expect } = require("@playwright/test");
import { test, expect } from "@playwright/test";

test("homepage has title", async ({ page }) => {
await page.goto("/");
Expand Down
2 changes: 1 addition & 1 deletion tests/profile.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
const { test, expect } = require("@playwright/test");
import { test, expect } from "@playwright/test";

test("Profile has title", async ({ page }) => {
const username = "_test-profile-user-1";
Expand Down
2 changes: 1 addition & 1 deletion tests/search.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
const { test, expect } = require("@playwright/test");
import { test, expect } from "@playwright/test";

test("Search has title", async ({ page }) => {
await page.goto("/search");
Expand Down
4 changes: 2 additions & 2 deletions tests/setup/global-setup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { chromium } = require("@playwright/test");
const fs = require("fs");
import { chromium } from "@playwright/test";
import fs from "fs";

const { USERS } = require("./test-users.js");

Expand Down
4 changes: 2 additions & 2 deletions tests/setup/global-teardown.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { chromium } = require("@playwright/test");
const fs = require("fs");
import { chromium } from "@playwright/test";
import fs from "fs";

const { USERS } = require("./test-users.js");

Expand Down

0 comments on commit da2b356

Please sign in to comment.