Skip to content

Commit

Permalink
remove redirect test
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Dec 17, 2024
1 parent b1f53f7 commit 31f7334
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions testing/tests/developing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,38 +105,6 @@ test.describe("Testing the Express server", () => {
expect(response.headers.location).toBe("/en-US/docs/Web");
});

test("redirect based on _redirects.txt", async () => {
test.skip(withDevelop());

// Yes, this is a bit delicate since it depends on non-fixtures, but
// it's realistic and it's a good end-to-end test.
// See mdn/content/files/en-us/_redirects.txt

// First redirect *out* to an external URL.
let response = await got(
serverURL(
"/en-US/docs/Mozilla/Add-ons/WebExtensions/Publishing_your_WebExtension"
),
{ followRedirect: false }
);
expect(response.statusCode).toBe(301);
expect(response.headers.location).toBe(
"https://extensionworkshop.com/documentation/publish/package-your-extension/"
);

// Redirect within.
response = await got(
serverURL(
"/en-US/docs/Mozilla/Add-ons/WebExtensions/Extension_API_differences"
),
{ followRedirect: false }
);
expect(response.statusCode).toBe(301);
expect(response.headers.location).toBe(
"/en-US/docs/Mozilla/Add-ons/WebExtensions/Differences_between_API_implementations"
);
});

test("redirect by preferred locale cookie", async () => {
test.skip(withDevelop());

Expand Down

0 comments on commit 31f7334

Please sign in to comment.