Commit 8c785b6e authored by Rémy Coutable's avatar Rémy Coutable

Merge branch...

Merge branch '351878-spec-failure-in-spec-features-issues-user_interacts_with_awards_spec-rb-user-interacts-with' into 'master'

Fix quarantined custom award emoji spec

See merge request gitlab-org/gitlab!79906
parents 0437ab6e 86a50c3d
......@@ -49,7 +49,7 @@ RSpec.describe 'User interacts with awards' do
end
end
it 'toggles a custom award emoji', quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/351878' do
it 'toggles a custom award emoji' do
page.within('.awards') do
page.find('.add-reaction-button').click
end
......@@ -65,9 +65,10 @@ RSpec.describe 'User interacts with awards' do
expect(page.find('[data-testid="award-button"].selected .js-counter')).to have_content('1')
expect(page).to have_css('[data-testid="award-button"].selected[title="You reacted with :8ball:"]')
wait_for_requests
expect do
page.find('[data-testid="award-button"].selected').click
wait_for_requests
end.to change { page.all('[data-testid="award-button"]').size }.from(3).to(2)
end
end
......
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