diff --git a/testing/tests/developing.spec.ts b/testing/tests/developing.spec.ts index 329bccda18bd..f0ba9f54f084 100644 --- a/testing/tests/developing.spec.ts +++ b/testing/tests/developing.spec.ts @@ -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());