Skip to content

add playwright tests for 1.10 with NFS#7

Merged
debsmita1 merged 2 commits into
redhat-developer:mainfrom
debsmita1:add-playwright-1.10nfs
Jul 3, 2026
Merged

add playwright tests for 1.10 with NFS#7
debsmita1 merged 2 commits into
redhat-developer:mainfrom
debsmita1:add-playwright-1.10nfs

Conversation

@debsmita1

@debsmita1 debsmita1 commented Jul 1, 2026

Copy link
Copy Markdown
Member

Solution Description

Added guest-login-home-catalog-nfs.spec.ts that runs on 1.10 + NFS
npm scripts :

Script Command Purpose
test playwright test && npm run analyse OFS (default)
test:nfs RHDH_FRONTEND=nfs playwright test && npm run analyse NFS load test
test:nfs:ui NFS + Playwright UI mode Interactive debugging
test:ofs:ui OFS + Playwright UI mode Interactive debugging

Test Setup

Deploy the RHDH 1.10 NFS test instance

Option 1 — Helm (local cluster)

cd helm/rhdh-110-nfs
make install

This deploys to namespace rhdh-loadtests-110-nfs with:

  • 25 page plugins + 25 catalog-tab plugins
  • 1000 catalog components
  • Guest auth enabled
  • NFS enabled via APP_CONFIG_app_packageName: app-next and ENABLE_STANDARD_MODULE_FEDERATION: true (set by the baseurl ConfigMap job)

Get the instance URL

oc get route -n rhdh-loadtests-110-nfs

Wait until the RHDH pod is ready and the baseurl ConfigMap job has completed (NFS env vars must be present).

B. Run the Playwright load tests

cd load-generator
npm ci
export RHDH_URL=https://<your-rhdh-route-host>
export RHDH_FRONTEND=nfs          # required for NFS spec selection

# optional tuning
export LOOPS=100                   # number of iterations (default: 100)
export NFS_NAVIGATION_TIMEOUT=200000   # ms (config default: 200000, spec default: 500000)
export PLAYWRIGHT_TEST_TIMEOUT=600000  # overall per-test timeout

npm run test:nfs

For interactive debugging:

npm run test:nfs:ui
Screenshot 2026-07-01 at 7 43 01 PM Screenshot 2026-07-01 at 7 42 37 PM

@christoph-jerolimov

Copy link
Copy Markdown
Member

@debsmita1 merged the other PR first, this needs now a rebase.

Comment thread helm/rhdh-110-nfs/values.yaml
Comment thread load-generator/scenarios/Backstage.ts Outdated
Comment thread load-generator/scenarios/guest-login-home-catalog-nfs.spec.ts Outdated
Comment thread load-generator/scenarios/guest-login-home-catalog-nfs.spec.ts Outdated
Comment thread load-generator/scenarios/guest-login-home-catalog-nfs.spec.ts Outdated
Comment thread load-generator/scenarios/guest-login-home-catalog-nfs.spec.ts Outdated
Comment thread load-generator/playwright.config.ts
@debsmita1 debsmita1 force-pushed the add-playwright-1.10nfs branch 2 times, most recently from 01f0df1 to 393ccd6 Compare July 2, 2026 18:47

@christoph-jerolimov christoph-jerolimov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will merge your changes tomorrow. Anyway, some comments I like to share. If you have time please apply them, if not I would prob. open a PR later.

Comment thread load-generator/scenarios/guest-login-home-catalog-nfs.spec.ts
Comment thread load-generator/scenarios/guest-login-home-catalog-nfs.spec.ts Outdated
Comment thread load-generator/scenarios/guest-login-home-catalog-nfs.spec.ts Outdated
Comment thread load-generator/scenarios/guest-login-home-catalog-nfs.spec.ts Outdated
Comment thread load-generator/scenarios/guest-login-home-catalog-nfs.spec.ts Outdated
Comment thread load-generator/scenarios/guest-login-home-catalog-nfs.spec.ts Outdated
Comment thread load-generator/playwright.config.ts Outdated
Comment thread plugins/backstage-1.52/packages/app-nfs/e2e-tests/app.test.ts Outdated
Comment thread plugins/backstage-1.52/packages/app-nfs/src/modules/nav/SidebarLogo.tsx Outdated
Comment thread plugins/backstage-1.52/app-config.yaml Outdated
@debsmita1 debsmita1 force-pushed the add-playwright-1.10nfs branch from 393ccd6 to 9fd426b Compare July 3, 2026 10:50
@debsmita1 debsmita1 force-pushed the add-playwright-1.10nfs branch from 9fd426b to 8917b9d Compare July 3, 2026 10:52

@christoph-jerolimov christoph-jerolimov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks 👍

@debsmita1 debsmita1 merged commit b5af973 into redhat-developer:main Jul 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants