From 63214977afbb2cc1df219f289aebd14d396a7717 Mon Sep 17 00:00:00 2001 From: Michael Heap Date: Thu, 28 Apr 2022 13:29:25 +0100 Subject: [PATCH] Fix tests --- jekyll-dev.yml | 6 ++++++ jekyll.yml | 6 ++++++ tests/sidebar.test.js | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/jekyll-dev.yml b/jekyll-dev.yml index c0ca979f3e15..9c93ee653301 100644 --- a/jekyll-dev.yml +++ b/jekyll-dev.yml @@ -151,6 +151,12 @@ defaults: layout: "docs-v2" version-index: 2 + - scope: + path: "gateway/3.0.x/" + values: + layout: "docs-v2" + version-index: 3 + - scope: path: "about" values: diff --git a/jekyll.yml b/jekyll.yml index d37ea17ebb05..7d0434ca3502 100644 --- a/jekyll.yml +++ b/jekyll.yml @@ -152,6 +152,12 @@ defaults: layout: "docs-v2" version-index: 2 + - scope: + path: "gateway/3.0.x/" + values: + layout: "docs-v2" + version-index: 3 + - scope: path: "about" values: diff --git a/tests/sidebar.test.js b/tests/sidebar.test.js index 545c8691ee95..41f3c3248589 100644 --- a/tests/sidebar.test.js +++ b/tests/sidebar.test.js @@ -61,7 +61,7 @@ test.describe("Version Switcher", () => { test.describe("Outdated version documentation", () => { const oldVersionSelector = 'blockquote:has-text("You are browsing documentation for an outdated version.") a'; - const latestGatewayVersion = "2.8.x"; + const latestGatewayVersion = "3.0.x"; test("does not show on the latest version", async ({ page }) => { await page.goto(`/gateway/${latestGatewayVersion}/install-and-run/rhel/`);