This commit is contained in:
strasmus1
2026-09-01 13:35:42 +00:00
parent cf264fa409
commit 102e5767e4
16 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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 }) => {
+2 -2
View File
@@ -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 -1
View File
@@ -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 }) => {