Match space or newline after username

This commit is contained in:
Sanad Liaquat 2019-08-20 07:30:27 +05:00
parent b759b4a62e
commit 179955e8ce
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ module QA
page.add_member(user.username)
end
expect(page).to have_content(/@#{user.username}\nGiven access/)
expect(page).to have_content(/@#{user.username}(\n| )?Given access/)
end
end
end