Skip to content

🧪 Add Playwright UI E2E test for agent chat flow - #681

Merged
pdettori merged 2 commits into
rossoctl:mainfrom
Ladas:fix/ui-basic-test-678
Feb 13, 2026
Merged

pdettori merged 2 commits into
rossoctl:mainfrom
Ladas:fix/ui-basic-test-678

Conversation

@Ladas

@Ladas Ladas commented Feb 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds agent-chat.spec.ts Playwright test covering the full UI user flow: Keycloak login → agent catalog → weather-service agent → send chat message → verify weather response
  • Adds 91-run-ui-tests.sh CI script that installs Playwright, starts the Vite dev server, and runs tests
  • Invokes Playwright tests from 90-run-e2e-tests.sh at the end of the existing E2E test pipeline
  • Fixes port mismatch in playwright.config.ts (5173→3000 to match vite.config.ts)

Dependencies

Test plan

  • CI passes on Kind cluster with weather-service agent deployed
  • Playwright test handles Keycloak login redirect correctly
  • Chat response contains weather data from weather-tool
  • Test artifacts (Playwright report) uploaded on failure

Fixes #678

🤖 Generated with Claude Code

@Ladas

Ladas commented Feb 13, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Feb 13, 2026
@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: 2d07b05159f2a3564e01e982368af38dd1318b55
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Feb 13, 2026
@github-actions

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: 4a4f384

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: 2d07b05159f2a3564e01e982368af38dd1318b55
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@Ladas
Ladas force-pushed the fix/ui-basic-test-678 branch from 9f0e4b9 to f98b716 Compare February 13, 2026 13:43
@Ladas

Ladas commented Feb 13, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Feb 13, 2026
@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: f98b7166885c34f5d3b56f990a55c363dcbb99ca
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@Ladas
Ladas force-pushed the fix/ui-basic-test-678 branch from f98b716 to 1e6c2e7 Compare February 13, 2026 13:48
@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Feb 13, 2026
@github-actions

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: 1e6c2e7

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: f98b7166885c34f5d3b56f990a55c363dcbb99ca
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@Ladas

Ladas commented Feb 13, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Feb 13, 2026
@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: 1e6c2e79cdeb331cf259f489d6f0c809d1c7048c
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@Ladas
Ladas force-pushed the fix/ui-basic-test-678 branch from 1e6c2e7 to a1dcd6c Compare February 13, 2026 16:02
@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Feb 13, 2026
@github-actions

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: a1dcd6c

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: 1e6c2e79cdeb331cf259f489d6f0c809d1c7048c
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

@Ladas
Ladas force-pushed the fix/ui-basic-test-678 branch from a1dcd6c to d0d2ca7 Compare February 13, 2026 16:49
Add agent-chat.spec.ts that tests the full user flow: Keycloak login
(handles check-sso mode with Sign In button), navigate to weather-service
agent via sidebar, send a chat message, and verify the response.

Also adds Playwright CI integration:
- 91-run-ui-tests.sh script for npm/Playwright setup
- Invoked from 90-run-e2e-tests.sh after pytest E2E tests
- Fixes port mismatch in playwright.config.ts (5173→3000)
- Pins @playwright/test to ~1.50.0 for Node.js compatibility

Fixes rossoctl#678

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
@Ladas
Ladas force-pushed the fix/ui-basic-test-678 branch from d0d2ca7 to a00cea3 Compare February 13, 2026 17:20
@Ladas

Ladas commented Feb 13, 2026

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Feb 13, 2026
@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @Ladas
Commit: 0150a285589c02fb5bb53f1a67838c94e8467944
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

Copy link
Copy Markdown

E2E HyperShift Tests Passed

Commit: 0150a285589c02fb5bb53f1a67838c94e8467944
Result: All tests passed
Workflow Run: View logs

The safe-to-test label indicates this commit has been approved for E2E testing.


If you push new commits, the label will be removed and you'll need to comment /run-e2e again.

- Create test:ui skill for Playwright UI E2E tests across CI/Kind/HyperShift
- Add UI test references to tdd:ci, tdd:kind, tdd:hypershift skills
- Add issue investigation examples to tdd:ci showing the
  investigate-post-wait flow with questions and variant options

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Ladislav Smola <[email protected]>
@Ladas
Ladas marked this pull request as ready for review February 13, 2026 19:29
@Ladas
Ladas force-pushed the fix/ui-basic-test-678 branch from 0150a28 to 1441b49 Compare February 13, 2026 19:29
@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Feb 13, 2026
@github-actions

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: 1441b49

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@pdettori pdettori 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.

/lgtm

@pdettori
pdettori merged commit 9dcfad6 into rossoctl:main Feb 13, 2026
15 checks passed
@pdettori pdettori mentioned this pull request Oct 5, 2026
3 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🐛 kagenti ui is broken

2 participants