-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
Binary file modified
BIN
+8.69 KB
(130%)
...sts/__screenshots__/darwin/add-entity-page.spec.ts/can-add-an-entity-page-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.02 KB
(94%)
...sts/__screenshots__/darwin/add-entity-page.spec.ts/can-add-an-entity-page-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.7 KB
...sts/__screenshots__/darwin/add-entity-page.spec.ts/can-add-an-entity-page-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.2 KB
...shots__/darwin/add-page-with-layout.spec.ts/can-add-a-page-using-a-layout-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.6 KB
...shots__/darwin/add-page-with-layout.spec.ts/can-add-a-page-using-a-layout-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.3 KB
...shots__/darwin/add-page-with-layout.spec.ts/can-add-a-page-using-a-layout-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.2 KB
...shots__/darwin/add-page-with-layout.spec.ts/can-add-a-page-using-a-layout-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+41.5 KB
...shots__/darwin/add-page-with-layout.spec.ts/can-add-a-page-using-a-layout-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+40.7 KB
...shots__/darwin/add-page-with-layout.spec.ts/can-add-a-page-using-a-layout-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.3 KB
...shots__/darwin/add-page-with-layout.spec.ts/can-add-a-page-using-a-layout-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.7 KB
...shots__/darwin/add-page-with-layout.spec.ts/can-add-a-page-using-a-layout-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.06 KB
(120%)
...ests/__screenshots__/darwin/add-static-page.spec.ts/can-add-a-static-page-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.01 KB
(94%)
...ests/__screenshots__/darwin/add-static-page.spec.ts/can-add-a-static-page-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.5 KB
...ests/__screenshots__/darwin/add-static-page.spec.ts/can-add-a-static-page-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Header from "../components/Header"; | ||
|
||
function LocationLayout() { | ||
return ( | ||
<Header | ||
title="Yext" | ||
logo="https://a.mktgcdn.com/p/R9FjcYjRNA5dAespqgHFLMvu2m18-E5Apnb3KON0oJY/300x300.png" | ||
backgroundColor="#BAD8FD" | ||
/> | ||
); | ||
} | ||
|
||
export default LocationLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { GetPath, TemplateProps } from "@yext/pages"; | ||
import Header from "../components/Header"; | ||
|
||
export const getPath: GetPath<TemplateProps> = () => { | ||
return "index.html"; | ||
}; | ||
|
||
export default function LayoutPage() { | ||
return ( | ||
<Header | ||
title="Yext" | ||
logo="https://a.mktgcdn.com/p/R9FjcYjRNA5dAespqgHFLMvu2m18-E5Apnb3KON0oJY/300x300.png" | ||
backgroundColor="#BAD8FD" | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { expect } from "@playwright/test"; | ||
import { studioTest } from "./infra/studioTest.js"; | ||
import fs from "fs"; | ||
|
||
const expectedPage = fs.readFileSync( | ||
"./tests/__fixtures__/add-layout-page-expected.tsx", | ||
"utf-8" | ||
); | ||
|
||
studioTest("can add a page using a layout", async ({ page, studioPage }) => { | ||
const pageName = "LayoutPage" | ||
await studioPage.takePageScreenshotAfterImgRender(); | ||
const pageInTree = page.getByText(pageName); | ||
await expect(pageInTree).toHaveCount(0); | ||
await studioPage.addStaticPage(pageName, "index.html", "LocationLayout"); | ||
await expect(pageInTree).toHaveCount(1); | ||
await studioPage.takePageScreenshotAfterImgRender(); | ||
await studioPage.saveButton.click(); | ||
const pagePath = studioPage.getPagePath(pageName); | ||
await expect(pagePath).toHaveContents(expectedPage); | ||
await studioPage.takePageScreenshotAfterImgRender(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters