From 1111399aa8b0888c06f1409695b51f3048df9c00 Mon Sep 17 00:00:00 2001 From: James Mead Date: Tue, 28 May 2024 09:49:57 +0100 Subject: [PATCH] Make authKey in e2e wc spec more realistic The comment about the `authKey` needing to match `HydraPublicApiClient::BYPASS_AUTH_USER_ID` in editor-api was incorrect. While the actual value is unimportant in this spec, it seems better to make it as realistic as possible. --- CHANGELOG.md | 1 + cypress/e2e/spec-wc.cy.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cee42d63..8be8fa38a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Fix warnings and verbose output when starting Webpack Dev Server (#1018) - Add e2e spec for project remix behaviour in web component (#1020) - Fix initial value of `user` in `WebComponentLoader` (#1021) +- Make `authKey` in e2e web component spec more realistic (#1022) ## [0.23.0] - 2024-05-09 diff --git a/cypress/e2e/spec-wc.cy.js b/cypress/e2e/spec-wc.cy.js index 726625006..d2c2abff3 100644 --- a/cypress/e2e/spec-wc.cy.js +++ b/cypress/e2e/spec-wc.cy.js @@ -92,8 +92,7 @@ describe("default behaviour", () => { }); describe("when load_remix_disabled is true, e.g. in editor-standalone", () => { - // Must match HydraPublicApiClient::BYPASS_AUTH_USER_ID in editor-api - const authKey = "00000000-0000-0000-0000-000000000000"; + const authKey = `oidc.user:https://auth-v1.raspberrypi.org:editor-api`; const user = { access_token: "dummy-access-token" }; const originalIdentifier = "blank-python-starter";