Skip to content

Commit 70fe899

Browse files
tvandortgilluminate
andcommitted
ENG-2211: Upgrade Privacy Center NextJS & React (#7112)
Co-authored-by: Jason Gill <103820+gilluminate@users.noreply.github.com>
1 parent 6f80b59 commit 70fe899

File tree

3 files changed

+77
-40
lines changed

3 files changed

+77
-40
lines changed

clients/package-lock.json

Lines changed: 61 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/privacy-center/cypress/e2e/privacy-center/home.cy.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ describe("Home", () => {
4242
IS_GEOLOCATION_ENABLED: true,
4343
GEOLOCATION_API_URL: geolocationApiUrl,
4444
};
45-
cy.visit("/");
46-
cy.overrideSettings(settings);
45+
46+
// Set up intercepts BEFORE visiting the page to avoid race conditions
4747
cy.intercept("GET", geolocationApiUrl, {
4848
fixture: "consent/geolocation.json",
4949
}).as("getGeolocation");
@@ -52,8 +52,17 @@ describe("Home", () => {
5252
body: undefined,
5353
}).as("getExperience");
5454

55-
cy.getByTestId("card").contains("Manage your consent").click();
56-
cy.getByTestId("notice-empty-state");
55+
cy.visit("/");
56+
cy.overrideSettings(settings);
57+
58+
// Wait for the API calls to complete before interacting with the page
59+
cy.wait("@getGeolocation");
60+
cy.wait("@getExperience");
61+
62+
cy.getByTestId("card")
63+
.contains("Manage your consent")
64+
.click({ force: true });
65+
cy.getByTestId("notice-empty-state").should("be.visible");
5766
});
5867

5968
describe("when handling errors", () => {

clients/privacy-center/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@
4343
"framer-motion": "^12.23.24",
4444
"headers-polyfill": "^4.0.3",
4545
"immer": "^9.0.21",
46-
"next": "^15.2.6",
46+
"next": "15.2.7",
4747
"next-swagger-doc": "^0.4.0",
4848
"p-retry": "^6.2.1",
4949
"pino": "^9.7.0",
50-
"react": "^19.0.1",
51-
"react-dom": "^19.0.1",
50+
"react": "19.0.2",
51+
"react-dom": "19.0.2",
5252
"react-error-boundary": "^4.0.13",
5353
"react-hotkeys-hook": "^5.2.1",
5454
"react-phone-number-input": "^3.4.1",

0 commit comments

Comments
 (0)