Commit 9f5f1405 authored by Dan Davison's avatar Dan Davison

Merge branch 'qa-real-time-assignee-wait-update' into 'master'

Update realtime assignee e2e spec waits

See merge request gitlab-org/gitlab!62487
parents eaf91244 6a3447a7
......@@ -65,13 +65,13 @@ module QA
def has_assignee?(username)
within_element(:assignee_block) do
has_text?(username, wait: 120)
has_text?(username, wait: 1)
end
end
def has_no_assignee?(username)
within_element(:assignee_block) do
has_no_text?(username, wait: 120)
has_no_text?(username, wait: 1)
end
end
......
......@@ -25,6 +25,7 @@ module QA
after do
Runtime::Feature.disable('real_time_issue_sidebar', project: project)
Runtime::Feature.disable('broadcast_issue_updates', project: project)
Runtime::Feature.disable(:invite_members_group_modal, project: project)
end
it 'update without refresh', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1048' do
......@@ -37,7 +38,9 @@ module QA
Page::Project::Issue::Show.perform do |show|
expect(show).to have_assignee(user1.name)
# We need to wait 1 second for the page to connect to the websocket to subscribe to updates
# https://gitlab.com/gitlab-org/gitlab/-/issues/293699#note_583959786
sleep 1
issue.set_issue_assignees(assignee_ids: [user2.id])
expect(show).to have_assignee(user2.name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment