Skip to content

Commit

Permalink
Merge branch 'main' into snyk-upgrade-98cddbc99c0d327a244aaef84e496939
Browse files Browse the repository at this point in the history
  • Loading branch information
acoburn authored May 3, 2024
2 parents 9377eb4 + 73effa2 commit f2a2d3a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e-browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ concurrency:
cancel-in-progress: true
jobs:
e2e-browser:
runs-on: ubuntu-latest-m
runs-on: ubuntu-latest
environment:
name: ${{ matrix.environment-name }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
environment-name: ["ESS PodSpaces", "ESS Dev-2-1"]
environment-name: ["ESS PodSpaces"]
experimental: [false]
include:
- environment-name: "ESS Dev-2-2"
Expand Down
2 changes: 1 addition & 1 deletion e2e/accessRequest.playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ test("access request deny flow", async ({

// deny confirmation modal
await page.getByTestId("modal-primary-action").click();
await visible(page.getByText("Access Request Denied"), false, {
await visible(page.getByText("Access Request Denied"), true, {
tags: ["wcag2a", "wcag21a", "wcag21aa"],
});

Expand Down
7 changes: 4 additions & 3 deletions scripts/updateClientId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ import { buildClientIdentifierDoc } from "../src/helpers/clientId/clientId";
const CLIENT_ID_DOC_IRI =
"https://storage.inrupt.com/87048fc7-b553-4c86-95de-633e1675f0bd/AMI/clientid.jsonld";

const clientId = process.env.CLIENT_ID;
const clientSecret = process.env.CLIENT_SECRET;

// build client id doc
const clientIdDoc = buildClientIdentifierDoc(
"http://localhost:3000/",
CLIENT_ID_DOC_IRI
clientId as string
);
const clientId = process.env.CLIENT_ID;
const clientSecret = process.env.CLIENT_SECRET;

async function updateClientId() {
// save it to pod
Expand Down
6 changes: 3 additions & 3 deletions src/session/SessionProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export interface ISessionProvider {
* @param session
* @param callback The callback should mutate react state to trigger re-rendering.
*/
const discoverAccessEnpoint = async (
const discoverAccessEndpoint = async (
session: Session,
callback: (endpoint: string) => void
): Promise<void> => {
Expand Down Expand Up @@ -124,7 +124,7 @@ const discoverAccessEnpoint = async (
endpoint = await getAccessApiEndpoint(podRoot);
} catch (e: unknown) {
throw new DiscoveryNotAvailable(
`Access enpoint discovery for Pod ${podRoot} failed: ${e}`
`Access endpoint discovery for Pod ${podRoot} failed: ${e}`
);
}
callback(endpoint);
Expand Down Expand Up @@ -242,7 +242,7 @@ export default function SessionProvider({

useEffect(() => {
if (state === "authenticated") {
discoverAccessEnpoint(session, (endpoint: string) => {
discoverAccessEndpoint(session, (endpoint: string) => {
setAccessEndpoint(endpoint);
}).catch((e) => {
if (e instanceof Error) {
Expand Down

0 comments on commit f2a2d3a

Please sign in to comment.