Skip to content

Commit 44dcbc0

Browse files
committed
check prismic file
1 parent 910ceb8 commit 44dcbc0

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

playwright/fixtures/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import * as fs from "fs/promises";
2+
import * as os from "os";
3+
import * as path from "path";
14
import { test as baseTest, expect } from "@playwright/test";
25
import { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
36
import {
@@ -277,6 +280,12 @@ export const test = baseTest.extend<Options & Fixtures>({
277280
],
278281
};
279282

283+
const prismicFile = await fs.readFile(
284+
path.join(os.homedir(), ".prismic"),
285+
"utf-8",
286+
);
287+
console.log("prismicFile", prismicFile);
288+
280289
// Create new page object with new context
281290
const newContext = await browser.newContext({ storageState });
282291
const page = await newContext.newPage();

playwright/tests/common/reviewForm.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test("I can close the review dialog", async ({
2222
libraries,
2323
customTypes: generateTypes({ typesCount: 1, libraries }),
2424
remoteCustomTypes: [],
25-
remoteSlices: []
25+
remoteSlices: [],
2626
}));
2727

2828
await sliceMachinePage.gotoDefaultPage();

0 commit comments

Comments
 (0)