Skip to content

Commit

Permalink
Upgrade test app to NextJS 15 (#3819)
Browse files Browse the repository at this point in the history
* Upgrade test app to NextJS 15

* Add missing directive

* Remove legacy pages/ directory

* Fix esbuild test

---------

Co-authored-by: Joseph Gosselin <[email protected]>
  • Loading branch information
NSeydoux and jrg72 authored Jan 7, 2025
1 parent 43fa909 commit 85ddf27
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
import type { AppProps } from "next/app";

function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
export default function TestAppLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body>
<main>{children}</main>
</body>
</html>
);
}

export default MyApp;
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

"use client";

import React, { useState, useEffect } from "react";
import {
TESTID_OPENID_PROVIDER_INPUT,
Expand All @@ -34,10 +36,10 @@ import {
events,
EVENTS,
} from "@inrupt/solid-client-authn-browser";
import AuthenticatedFetch from "../authenticatedFetch";
import AuthenticatedFetch from "../components/authenticatedFetch";
// The extension is required for JSON imports.
// eslint-disable-next-line import/extensions, import/no-relative-packages
import CONSTANTS from "../../../../../../playwright.client-authn.constants.json";
import CONSTANTS from "../../../../../playwright.client-authn.constants.json";

// Importing the playwright config file crashes the Next Web server.
const REDIRECT_URL = new URL(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"test:esbuild": "esbuild components/appContainer/index.tsx --bundle"
"test:esbuild": "esbuild app/page.tsx --bundle"
},
"dependencies": {
"@inrupt/internal-playwright-testids": "^3.0.2",
Expand Down
31 changes: 0 additions & 31 deletions e2e/browser/solid-client-authn-browser/test-app/pages/index.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions e2e/browser/solid-ui-react/test-app/next-env.d.ts

This file was deleted.

0 comments on commit 85ddf27

Please sign in to comment.