Fix Duo Chat test to work with new feedback button UI
Prompt used to generate this MR: this test started failing due to https://gitlab.com/gitlab-org/duo-ui/-/merge_requests/354 can you suggest a fix diff?
What does this MR do?
Fixes the failing E2E test ee/browser_ui/16_ai_powered/duo_chat/duo_chat_spec.rb that started failing after duo-ui!354 (merged) was merged.
Test passing in this MR: https://gitlab.com/gitlab-org/gitlab/-/jobs/12220223262#L321
Why is this needed?
The duo-ui MR restructured the Duo Chat message UI:
- The feedback button is now always visible instead of appearing on hover
- The feedback UI moved from
.duo-chat-message-feedbackto.duo-chat-message-actions - The new
.duo-chat-message-actionscontainer includes the copy button, loading icon, and feedback button in a row
What are the changes?
Updates the has_feedback_message? method in the DuoChat page object to look for the new .duo-chat-message-actions CSS class instead of the old .duo-chat-message-feedback class.
Related issues
Closes https://gitlab.com/gitlab-org/quality/test-failure-issues/-/work_items/14196
Edited by Jay McCure