Skip to content

Commit

Permalink
[Snyk] Security upgrade next from 14.2.20 to 14.2.21 (#283)
Browse files Browse the repository at this point in the history
Update react version

Co-authored-by: Pete Edwards <[email protected]>
  • Loading branch information
acoburn and edwardsph authored Jan 8, 2025
1 parent 7284039 commit 9d77c6e
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 51 deletions.
6 changes: 4 additions & 2 deletions e2e/manage.playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ test("resources page", async ({ page, auth, visible, setup, browserName }) => {
await page.getByTestId(`grant-actions-${fileName}`).click();
await expect(page.getByTestId(`grant-popover-${fileName}`)).toBeVisible();

// Test the popover closes on blur.
await page.getByTestId("agent-info-box").click();
await expect(page.getByTestId(`grant-popover-${fileName}`)).not.toBeVisible();

// Open the sidebar
await page
.getByTestId(
Expand All @@ -291,8 +295,6 @@ test("resources page", async ({ page, auth, visible, setup, browserName }) => {
)}]-resource[${sharedFileIri}]`
)
.click();
// The popover was purposefully not closed to check it closes on blur.
await expect(page.getByTestId(`grant-popover-${fileName}`)).not.toBeVisible();

// Access grant was read only - so that should be reflected in the information in the sidebar
await visible(page.getByTestId("sidebar-access-mode-read"));
Expand Down
109 changes: 62 additions & 47 deletions e2e/test-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion e2e/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@inrupt/solid-client-authn-browser": "^2.3.0",
"@inrupt/solid-client-authn-node": "^2.3.0",
"@inrupt/solid-client-vc": "^1.2.0",
"next": "^14.2.15",
"next": "^14.2.22",
"react": "^18.2.0",
"react-dom": "18.3.1"
},
Expand Down
5 changes: 4 additions & 1 deletion pages/resources/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ export default function ResourcesPage() {

{typeof agent === "string" && (
<>
<div className={styles["agent-info-box"]}>
<div
className={styles["agent-info-box"]}
data-testid="agent-info-box"
>
<DisplayImage url={agent} className={styles["agent-icon"]} />
<div>
<h2>
Expand Down

0 comments on commit 9d77c6e

Please sign in to comment.