File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ import { expect, test } from "@playwright/test";
44 * Tests that the request.url is the deployed host and not localhost
55 */
66test ( "Request.url is host" , async ( { baseURL, page } ) => {
7+ // We skip this test when E2E is run locally with `http` as protocol.
8+ // The cause can be seen here: https://github.com/opennextjs/opennextjs-aws/issues/969#issuecomment-3239569901
9+ test . skip (
10+ ( baseURL ?? "" ) . startsWith ( "http://localhost" ) ,
11+ "Skipping test on localhost" ,
12+ ) ;
713 await page . goto ( "/api/host" ) ;
814
915 const el = page . getByText ( `{"url":"${ baseURL } /api/host"}` ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ import { expect, test } from "@playwright/test";
44 * Tests that the request.url is the deployed host and not localhost
55 */
66test ( "Request.url is host" , async ( { baseURL, page } ) => {
7+ // We skip this test when E2E is run locally with `http` as protocol.
8+ // The cause can be seen here: https://github.com/opennextjs/opennextjs-aws/issues/969#issuecomment-3239569901
9+ test . skip (
10+ ( baseURL ?? "" ) . startsWith ( "http://localhost" ) ,
11+ "Skipping test on localhost" ,
12+ ) ;
713 await page . goto ( "/api/host" ) ;
814
915 const el = page . getByText ( `{"url":"${ baseURL } /api/host"}` ) ;
You can’t perform that action at this time.
0 commit comments