Makes the assertion for user given access emoji tolerant

This commit is contained in:
Sanad Liaquat 2019-03-13 12:06:30 +05:00
parent b8ca2fc64a
commit ec42a6e660
1 changed files with 2 additions and 3 deletions

View File

@ -1,8 +1,7 @@
# frozen_string_literal: true
module QA
# Failure issue: https://gitlab.com/gitlab-org/quality/staging/issues/45
context 'Manage', :quarantine do
context 'Manage' do
describe 'Add project member' do
it 'user adds project member' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
@ -20,7 +19,7 @@ module QA
page.add_member(user.username)
end
expect(page).to have_content("#{user.name} @#{user.username} Given access")
expect(page).to have_content(/#{user.name} (. )?@#{user.username} Given access/)
end
end
end