-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SEO Index - Fixing Playwright tests (#2601)
Fixed: #2572 Affected Route: `*`
- Loading branch information
1 parent
bd6d14e
commit 7340124
Showing
7 changed files
with
25 additions
and
31 deletions.
There are no files selected for viewing
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
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
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
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,11 @@ | ||
import test, { expect } from "@playwright/test"; | ||
|
||
test("🔎 Page can be indexed, no 'noindex' found", async ({ | ||
page, | ||
baseURL, | ||
}) => { | ||
const response = await page.request.get(baseURL); | ||
const headers = await response.headers(); | ||
const x_robot_tag = headers["x-robots-tag"]; | ||
expect(x_robot_tag).toBeFalsy(); | ||
}); |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
import test, { expect } from "@playwright/test"; | ||
|
||
test("🔎 Page cannot be indexed, 'noindex' header found!", async ({ | ||
page, | ||
baseURL, | ||
}) => { | ||
const response = await page.request.get(baseURL); | ||
const headers = await response.headers(); | ||
const x_robot_tag = headers["x-robots-tag"]; | ||
expect(x_robot_tag).toEqual("noindex"); | ||
}); |
This file was deleted.
Oops, something went wrong.