Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update smoke tests for new IA #4213

Merged
merged 1 commit into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/moved_urls.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
---
/gateway-oss/VERSION/configuration/: "/gateway/VERSION/reference/configuration/"
/gateway/VERSION/install-and-run/rhel/: "/gateway/VERSION/kong-production/install-options/linux/rhel/"
2 changes: 1 addition & 1 deletion tests/install.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { test, expect } = require("@playwright/test");

test("latest page contains a version", async ({ page }) => {
await page.goto("/gateway/latest/install-and-run/rhel/");
await page.goto("/gateway/latest/kong-production/install-options/linux/rhel/");
await expect(page.locator(".codeblock").first()).not.toContainText("kong-enterprise-edition-.rpm");
});
6 changes: 3 additions & 3 deletions tests/seo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ test.describe("Canonical links", () => {
{
title:
"contains a canonical link pointing to itself if it's the latest version",
src: "/gateway/latest/install-and-run/docker/",
href: "/gateway/latest/install-and-run/docker/",
src: "/gateway/latest/kong-production/install-options/helm/",
href: "/gateway/latest/kong-production/install-options/helm/",
},
{
title:
Expand Down Expand Up @@ -153,7 +153,7 @@ test.describe("sitemap includes", () => {
"/mesh/latest/",
"/kubernetes-ingress-controller/latest/",
"/deck/latest/",
"/gateway/latest/install-and-run/docker/",
"/gateway/latest/kong-production/install-options/helm/",
"/mesh/latest/installation/ecs/",
"/kubernetes-ingress-controller/latest/deployment/k4k8s/",
"/deck/latest/installation/",
Expand Down
12 changes: 6 additions & 6 deletions tests/sidebar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ test.describe("Outdated version documentation", () => {
await expect(await s.count()).toBe(1);
await expect(await s.getAttribute("href")).toEqual(
expect.stringMatching(
new RegExp(`^/gateway/latest/install-and-run/rhel/$`)
new RegExp(`^/gateway/latest/kong-production/install-options/linux/rhel/$`)
)
);
});
Expand Down Expand Up @@ -106,7 +106,7 @@ test.describe("Sidebar section count", () => {
{
title: "Gateway Single Sourced",
path: "/gateway/latest/",
count: 8,
count: 9,
},
{
title: "decK",
Expand All @@ -127,8 +127,8 @@ test.describe("sidenav versions", () => {
{
title: "Root page links to /latest/",
src: "/gateway/latest/",
link_text: "Installation Options",
expected_url: "/gateway/latest/install-and-run/",
link_text: "Supported Distributions",
expected_url: "/gateway/latest/kong-production/install-options/linux/os-support",
},
{
title: "Versioned root page links to the correct version",
Expand All @@ -139,8 +139,8 @@ test.describe("sidenav versions", () => {
{
title: "Sub page links to latest",
src: "/gateway/latest/admin-api/",
link_text: "Installation Options",
expected_url: "/gateway/latest/install-and-run/",
link_text: "Supported Distributions",
expected_url: "/gateway/latest/kong-production/install-options/linux/os-support",
},
{
title: "Versioned sub page links to the correct version",
Expand Down