Skip to content

Commit 0e0440a

Browse files
committed
update
1 parent f1c0c08 commit 0e0440a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/1_testPipeline.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { AddItem } from "../pages/AddItem.page";
99
import { ItemModel } from "../models/ItemModel";
1010
import { ResetPassword } from "../pages/ResetPassword.page";
1111
import * as dotenv from "dotenv";
12-
import userData from '../resources/userData.json';
1312
import fs from 'fs';
1413
import path from 'path';
1514

@@ -28,6 +27,9 @@ test.describe.serial("User Registration", async () => {
2827
await page.close();
2928
})
3029

30+
const userDataPath = path.resolve('./resources/userData.json');
31+
const userData = JSON.parse(fs.readFileSync(userDataPath, 'utf-8'));
32+
3133
test("Create New User", async () => {
3234
await page.goto("https://dailyfinance.roadtocareer.net/");
3335

0 commit comments

Comments
 (0)