Skip to content

[Bug] UT frondend test fail #2079

Closed
Closed
@ZePan110

Description

@ZePan110

Priority

P1-Stopper

OS type

Ubuntu

Hardware type

Xeon-GNR

Installation method

  • Pull docker images from hub.docker.com
  • Build docker images from source
  • Other
  • N/A

Deploy method

  • Docker
  • Docker Compose
  • Kubernetes Helm Charts
  • Kubernetes GMC
  • Other
  • N/A

Running nodes

Single Node

What's the version?

main branch

Description

ChatQnA and SearchQnA frontend test fail.

https://github.com/opea-project/GenAIExamples/actions/runs/15683964331/job/44219066020
https://github.com/opea-project/GenAIExamples/actions/runs/15683964331/job/44219065881

Reproduce steps

cd tests
bash test_compose_on_xeon.sh

Raw log

npx playwright test
  
  Running 3 tests using 1 worker
  ××F××F××F
  
    1) [webkit] › tests/chatQnA.spec.ts:59:2 › New Chat › should enter message to chat ───────────────
  
      Error: page.goto: Could not connect to 10.244.47.202: Connection refused
      Call log:
        - navigating to "http://10.244.47.202/", waiting until "load"
  
  
        16 | // Initialization before each test
        17 | test.beforeEach(async ({ page }) => {
      > 18 | 	await page.goto("/");
           | 	           ^
        19 | });
        20 |
        21 | // Constants definition
          at /home/runner/_work/GenAIExamples/GenAIExamples/ChatQnA/ui/svelte/tests/chatQnA.spec.ts:18:13
  
      Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
  
      Error: page.goto: Could not connect to 10.244.47.202: Connection refused
      Call log:
        - navigating to "http://10.244.47.202/", waiting until "load"
  
  
        16 | // Initialization before each test
        17 | test.beforeEach(async ({ page }) => {
      > 18 | 	await page.goto("/");
           | 	           ^
        19 | });
        20 |
        21 | // Constants definition
          at /home/runner/_work/GenAIExamples/GenAIExamples/ChatQnA/ui/svelte/tests/chatQnA.spec.ts:18:13
  
      attachment #1: trace (application/zip) ─────────────────────────────────────────────────────────
      test-results/chatQnA-New-Chat-should-enter-message-to-chat-webkit-retry1/trace.zip
      Usage:
  
          npx playwright show-trace test-results/chatQnA-New-Chat-should-enter-message-to-chat-webkit-retry1/trace.zip
  
      ────────────────────────────────────────────────────────────────────────────────────────────────
  
      Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
  
      Error: page.goto: Could not connect to 10.244.47.202: Connection refused
      Call log:
        - navigating to "http://10.244.47.202/", waiting until "load"
  
  
        16 | // Initialization before each test
        17 | test.beforeEach(async ({ page }) => {
      > 18 | 	await page.goto("/");
           | 	           ^
        19 | });
        20 |
        21 | // Constants definition
          at /home/runner/_work/GenAIExamples/GenAIExamples/ChatQnA/ui/svelte/tests/chatQnA.spec.ts:18:13
  
    2) [webkit] › tests/chatQnA.spec.ts:67:2 › Upload file › should upload a file ────────────────────
  
      Error: page.goto: Could not connect to 10.244.47.202: Connection refused
      Call log:
        - navigating to "http://10.244.47.202/", waiting until "load"
  
  
        16 | // Initialization before each test
        17 | test.beforeEach(async ({ page }) => {
      > 18 | 	await page.goto("/");
           | 	           ^
        19 | });
        20 |
        21 | // Constants definition
          at /home/runner/_work/GenAIExamples/GenAIExamples/ChatQnA/ui/svelte/tests/chatQnA.spec.ts:18:13
  
      Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
  
      Error: page.goto: Could not connect to 10.244.47.202: Connection refused
      Call log:
        - navigating to "http://10.244.47.202/", waiting until "load"
  
  
        16 | // Initialization before each test
        17 | test.beforeEach(async ({ page }) => {
      > 18 | 	await page.goto("/");
           | 	           ^
        19 | });
        20 |
        21 | // Constants definition
          at /home/runner/_work/GenAIExamples/GenAIExamples/ChatQnA/ui/svelte/tests/chatQnA.spec.ts:18:13
  
      attachment #1: trace (application/zip) ─────────────────────────────────────────────────────────
      test-results/chatQnA-Upload-file-should-upload-a-file-webkit-retry1/trace.zip
      Usage:
  
          npx playwright show-trace test-results/chatQnA-Upload-file-should-upload-a-file-webkit-retry1/trace.zip
  
      ────────────────────────────────────────────────────────────────────────────────────────────────
  
      Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
  
      Error: page.goto: Could not connect to 10.244.47.202: Connection refused
      Call log:
        - navigating to "http://10.244.47.202/", waiting until "load"
  
  
        16 | // Initialization before each test
        17 | test.beforeEach(async ({ page }) => {
      > 18 | 	await page.goto("/");
           | 	           ^
        19 | });
        20 |
        21 | // Constants definition
          at /home/runner/_work/GenAIExamples/GenAIExamples/ChatQnA/ui/svelte/tests/chatQnA.spec.ts:18:13
  
    3) [webkit] › tests/chatQnA.spec.ts:75:2 › Upload file › should paste link ───────────────────────
  
      Error: page.goto: Could not connect to 10.244.47.202: Connection refused
      Call log:
        - navigating to "http://10.244.47.202/", waiting until "load"
  
  
        16 | // Initialization before each test
        17 | test.beforeEach(async ({ page }) => {
      > 18 | 	await page.goto("/");
           | 	           ^
        19 | });
        20 |
        21 | // Constants definition
          at /home/runner/_work/GenAIExamples/GenAIExamples/ChatQnA/ui/svelte/tests/chatQnA.spec.ts:18:13
  
      Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
  
      Error: page.goto: Could not connect to 10.244.47.202: Connection refused
      Call log:
        - navigating to "http://10.244.47.202/", waiting until "load"
  
  
        16 | // Initialization before each test
        17 | test.beforeEach(async ({ page }) => {
      > 18 | 	await page.goto("/");
           | 	           ^
        19 | });
        20 |
        21 | // Constants definition
          at /home/runner/_work/GenAIExamples/GenAIExamples/ChatQnA/ui/svelte/tests/chatQnA.spec.ts:18:13
  
      attachment #1: trace (application/zip) ─────────────────────────────────────────────────────────
      test-results/chatQnA-Upload-file-should-paste-link-webkit-retry1/trace.zip
      Usage:
  
          npx playwright show-trace test-results/chatQnA-Upload-file-should-paste-link-webkit-retry1/trace.zip
  
      ────────────────────────────────────────────────────────────────────────────────────────────────
  
      Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
  
      Error: page.goto: Could not connect to 10.244.47.202: Connection refused
      Call log:
        - navigating to "http://10.244.47.202/", waiting until "load"
  
  
        16 | // Initialization before each test
        17 | test.beforeEach(async ({ page }) => {
      > 18 | 	await page.goto("/");
           | 	           ^
        19 | });
        20 |
        21 | // Constants definition
          at /home/runner/_work/GenAIExamples/GenAIExamples/ChatQnA/ui/svelte/tests/chatQnA.spec.ts:18:13
  
    3 failed
      [webkit] › tests/chatQnA.spec.ts:59:2 › New Chat › should enter message to chat ────────────────
      [webkit] › tests/chatQnA.spec.ts:67:2 › Upload file › should upload a file ─────────────────────
      [webkit] › tests/chatQnA.spec.ts:75:2 › Upload file › should paste link ────────────────────────
  + exit_status=1
  [TEST INFO]: ---------frontend test failed---------
  + '[' 1 -ne 0 ']'
  + echo '[TEST INFO]: ---------frontend test failed---------'
  + exit 1

Attachments

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions