mirror of
https://github.com/OHTU-German-learning-website/OHTU-German-learning-website.git
synced 2026-10-12 19:13:51 +03:00
fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
const { elementExists } = require("./utils/helpers");
|
||||
import { test, expect } from "@playwright/test";
|
||||
import { elementExists } from "./utils/helpers.js";
|
||||
|
||||
test.describe("Advanced Interactions", () => {
|
||||
test("should display grammar content", async ({ page }) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
test.describe("Authentication", () => {
|
||||
test("should navigate to login page", async ({ page }) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
async function gotoClickExerciseList(page) {
|
||||
await page.goto("grammar/exercises/click", {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
test.describe("Component Interactions", () => {
|
||||
test("should display chapter navigation", async ({ page }) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
async function gotoDndMatchList(page) {
|
||||
await page.goto("grammar/exercises/dnd-match", {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
async function gotoDragdropExerciseList(page) {
|
||||
await page.goto("grammar/exercises/dragdrop", {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
async function gotoFillInTheGapList(page) {
|
||||
await page.goto("grammar/exercises/fillinthegap", {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
test.describe("Form Interactions", () => {
|
||||
test("should navigate to register page", async ({ page }) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
test.describe("Global header search", () => {
|
||||
test("should search and navigate to a page result", async ({ page }) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
async function gotoWithRetry(page, url, options, retries = 1) {
|
||||
for (let attempt = 0; attempt <= retries; attempt += 1) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
test.describe("Home page", () => {
|
||||
test("should display the home page correctly", async ({ page }) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
test.describe("Learning Page", () => {
|
||||
test("should load the learning page", async ({ page }) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
test.describe("Navigation", () => {
|
||||
test("should navigate to grammar communication page", async ({ page }) => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const { test } = require("@playwright/test");
|
||||
const { elementExists } = require("./utils/helpers");
|
||||
import { test } from "@playwright/test";
|
||||
import { elementExists } from "./utils/helpers.js";
|
||||
|
||||
test.describe("Page Structure Analysis", () => {
|
||||
test("analyze homepage structure", async ({ page }) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
test.describe("Resources Detail Pages", () => {
|
||||
test("should display chapter content", async ({ page }) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { test, expect } = require("@playwright/test");
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
test.describe("User Management", () => {
|
||||
test("users page route responds", async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user