Commit 6a3447a7 authored by Désirée Chevalier's avatar Désirée Chevalier Committed by Dan Davison

Update realtime assignee e2e spec waits

parent a4658329
......@@ -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