Skip to content

Commit f82e8ce

Browse files
gustavoliraclaude
andcommitted
test(e2e): widen cluster-free run to all guest-signin specs via global-header OCI
Install the global-header plugin from OCI (top bar + profile dropdown) so the Settings and Sign-out specs render, and drop the grep so all three guest-signin-happy-path tests run off-cluster (home + settings + sign-out). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 59f581b commit f82e8ce

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# Cluster-free harness plugin set — installed via install-dynamic-plugins from OCI
22
# (ghcr, pulled with skopeo), so no dynamic-plugins/dist source build is needed.
33
#
4-
# Only the dynamic-home-page frontend plugin is required: app-config.dynamic-plugins.yaml
5-
# (loaded by the harness) already configures it (route / -> DynamicHomePage, SearchBar,
6-
# QuickAccessCard, Starred Entities), so the guest-signin home-page test renders off-cluster.
4+
# app-config.dynamic-plugins.yaml (loaded by the harness) already configures these
5+
# plugins, so the existing RHDH specs render off-cluster.
76
#
8-
# NOTE: OCI tag is backstage 1.49.4 (RHDH is on 1.52.0) — bump to a matching tag when the
9-
# overlays repo publishes one.
7+
# NOTE: OCI tags are backstage 1.49.4 (RHDH is on 1.52.0) — bump to matching tags when
8+
# the overlays repo publishes them.
109
plugins:
10+
# Home page: route / -> DynamicHomePage, SearchBar, QuickAccessCard, Starred Entities.
1111
- package: oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/red-hat-developer-hub-backstage-plugin-dynamic-home-page:bs_1.49.4__1.13.1!red-hat-developer-hub-backstage-plugin-dynamic-home-page
1212
disabled: false
13+
# Global header (top bar + profile dropdown) — needed by the Settings / Sign-out specs.
14+
- package: oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/red-hat-developer-hub-backstage-plugin-global-header:bs_1.49.4__1.21.6!red-hat-developer-hub-backstage-plugin-global-header
15+
disabled: false

e2e-tests/playwright.legacy-local.config.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,11 @@ export default defineConfig({
4242
testDir: "./playwright",
4343
// Fails fast if dynamic-plugins-root has not been populated.
4444
globalSetup: "./playwright/support/local-harness-global-setup.ts",
45-
// Runs only what is verified green off-cluster so far: the guest-signin home-page
46-
// test (Quick Access from the dynamic home-page plugin). `grep` scopes to that test
47-
// because its two siblings — and several other UI specs — navigate via the top-right
48-
// profile dropdown (needs the global-header plugin) or need per-spec config. See
49-
// docs/e2e-tests/local-e2e-harness.md "Known issues". Widen as specs are validated.
45+
// Existing RHDH specs validated to run off-cluster. The dynamic-home-page and
46+
// global-header plugins are installed from OCI (see local-harness/dynamic-plugins.yaml),
47+
// so guest sign-in, the home page, Settings and sign-out all render. Widen as more
48+
// specs are validated.
5049
testMatch: ["e2e/guest-signin-happy-path.spec.ts"],
51-
grep: /Homepage renders with Search Bar/u,
5250
timeout: 90 * 1000,
5351
forbidOnly: isCI,
5452
retries: isCI ? 1 : 0,

0 commit comments

Comments
 (0)