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

Make tests run only in suitable environments #58

Merged
merged 1 commit into from
Oct 21, 2024
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
2 changes: 1 addition & 1 deletion tests/cdn.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ test.describe("CDN", { tag: ["@domain-www"] }, () => {
expect(response.headers()["location"]).toBe(expectedURL);
});

test("redirect service domain to www domain", { tag: ["@production"] }, async ({ page }) => {
test("redirect service domain to www domain", { tag: ["@not-staging", "@not-integration"] }, async ({ page }) => {
const response = await page.request.get("https://service.gov.uk", { maxRedirects: 0 });
expect(response.status()).toBe(302);
expect(response.headers()["location"]).toBe("https://www.gov.uk");
Expand Down
2 changes: 1 addition & 1 deletion tests/chat.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { expect } from "@playwright/test";
import { test } from "../lib/cachebust-test";
import { publishingAppUrl } from "../lib/utils";

test.describe("GOV.UK Chat", { tag: ["@app-govuk-chat"] }, () => {
test.describe("GOV.UK Chat", { tag: ["@app-govuk-chat", "@not-production"] }, () => {
test("Can view a static page", async ({ page }) => {
await page.goto("/chat/about");
await expect(page.getByRole("heading", { name: "About GOV.UK Chat" })).toBeVisible();
Expand Down
Loading