summaryrefslogtreecommitdiff
path: root/spec/features/issues/user_interacts_with_awards_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/issues/user_interacts_with_awards_spec.rb')
-rw-r--r--spec/features/issues/user_interacts_with_awards_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/features/issues/user_interacts_with_awards_spec.rb b/spec/features/issues/user_interacts_with_awards_spec.rb
index 47b28b88108..a2dea7f048b 100644
--- a/spec/features/issues/user_interacts_with_awards_spec.rb
+++ b/spec/features/issues/user_interacts_with_awards_spec.rb
@@ -209,22 +209,25 @@ RSpec.describe 'User interacts with awards' do
it 'adds award to issue' do
first('[data-testid="award-button"]').click
-
+ wait_for_requests
expect(page).to have_selector('[data-testid="award-button"].selected')
expect(first('[data-testid="award-button"]')).to have_content '1'
visit project_issue_path(project, issue)
+ wait_for_requests
expect(first('[data-testid="award-button"]')).to have_content '1'
end
it 'removes award from issue', quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/375241' do
first('[data-testid="award-button"]').click
+ wait_for_requests
find('[data-testid="award-button"].selected').click
-
+ wait_for_requests
expect(first('[data-testid="award-button"]')).to have_content '0'
visit project_issue_path(project, issue)
+ wait_for_requests
expect(first('[data-testid="award-button"]')).to have_content '0'
end