Skip to content

E2E test: GitLab Duo e2e test live env

Jay McCure requested to merge jmc-e2e-duo-chat-live into master

What does this MR do and why?

This MR adds a smoke test to ensure Duo Chat is responding correctly in live environments. This test is restricted to live environments only.

How to set up and validate locally

Since there are additional selectors in this MR, the test won't work against staging until this MR is deployed. To work around this you can:

  • comment out Page::Main::Menu.perform(&:open_duo_chat) in duo_chat_spec.rb
  • Add a break point
  • Manually open duo chat
  • Resume
GITLAB_QA_USER_AGENT=<1P> GITLAB_USERNAME=gitlab-qa GITLAB_PASSWORD=<1P> GITLAB_QA_ACCESS_TOKEN=<1P> QA_GITLAB_URL=https://staging.gitlab.com   bundle exec rspec qa/specs/features/ee/browser_ui/16_ai_powered/duo_chat/duo_chat_spec.rb

The selectors can be tested locally against GDK using*:

QA_LOG_LEVEL=DEBUG QA_GITLAB_URL=http://192.168.4.31:3000 bundle exec rspec qa/specs/features/ee/browser_ui/16_ai_powered/duo_chat/duo_chat_spec.rb

*however, the test will fail with Failure/Error: duo_chat.wait_for_response("Hello! I'm GitLab Duo Chat") unless you have Duo Chat integrated with your GDK.

Edited by Jay McCure

Merge request reports

Loading