Skip to content
代码片段 群组 项目
未验证 提交 ef86b0f1 编辑于 作者: Tian Gao's avatar Tian Gao 提交者: GitLab
浏览文件

Resolve "[Test] ee/browser_ui/3_create/web_ide/duo_chat_in_web_ide_spec.rb |...

Resolve "[Test] ee/browser_ui/3_create/web_ide/duo_chat_in_web_ide_spec.rb | Create Duo Chat in Web IDE on GitLab.com behaves like Duo Chat gets a response back from Duo Chat"
上级 e283ac5f
No related branches found
No related tags found
无相关合并请求
......@@ -26,8 +26,15 @@ module QA
duo_chat.number_of_messages > 1
end
expect(duo_chat.has_response?(expected_response)).to be_truthy,
"Expected \"#{expected_response}\" within Duo Chat response."
begin
response_with_failover = expected_response
rescue RuntimeError
# If direct connection request fails, assume we are on SaaS
response_with_failover = 'GitLab'
end
expect(duo_chat.has_response?(response_with_failover)).to be_truthy,
"Expected \"#{response_with_failover}\" within Duo Chat response."
end
end
end
......
......@@ -13,9 +13,16 @@ module QA
QA::EE::Page::Component::DuoChat.perform do |duo_chat|
duo_chat.clear_chat_history
expect(duo_chat).to be_empty_state
duo_chat.send_duo_chat_prompt('hi')
expect(duo_chat).to have_response(expected_response),
begin
response_with_failover = expected_response
rescue RuntimeError
# If direct connection request fails, assume we are on SaaS
response_with_failover = 'GitLab'
end
expect(duo_chat).to have_response(response_with_failover),
"Expected '#{expected_response}' within Duo Chat response."
end
end
......@@ -41,7 +48,10 @@ module QA
it_behaves_like 'Duo Chat', 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/443762'
end
context 'on Self-managed', :orchestrated, :ai_gateway do
context 'on Self-managed', :orchestrated, :ai_gateway, quarantine: {
type: :investigating,
issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/494690'
} do
it_behaves_like 'Duo Chat', 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/468854'
end
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册