Skip to content

Commit

Permalink
Update smoke tests for new IA (#4213)
Browse files Browse the repository at this point in the history
update smoke tests for new IA
  • Loading branch information
lena-larionova authored Aug 9, 2022
1 parent 1ad3d24 commit c073328
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
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

0 comments on commit c073328

Please sign in to comment.