Commit 5fa329a5 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch '34834-fix-projects-members-user_requests_access_spec' into 'master'

Remove expectation on alerts that may have disappeared already

Closes #34834

See merge request gitlab-org/gitlab!19091
parents 397901a1 96d64968
...@@ -26,7 +26,6 @@ describe 'Projects > Members > User requests access', :js do ...@@ -26,7 +26,6 @@ describe 'Projects > Members > User requests access', :js do
expect(ActionMailer::Base.deliveries.last.subject).to eq "Request to join the #{project.full_name} project" expect(ActionMailer::Base.deliveries.last.subject).to eq "Request to join the #{project.full_name} project"
expect(project.requesters.exists?(user_id: user)).to be_truthy expect(project.requesters.exists?(user_id: user)).to be_truthy
expect(page).to have_content 'Your request for access has been queued for review.'
expect(page).to have_content 'Withdraw Access Request' expect(page).to have_content 'Withdraw Access Request'
expect(page).not_to have_content 'Leave Project' expect(page).not_to have_content 'Leave Project'
...@@ -64,7 +63,6 @@ describe 'Projects > Members > User requests access', :js do ...@@ -64,7 +63,6 @@ describe 'Projects > Members > User requests access', :js do
accept_confirm { click_link 'Withdraw Access Request' } accept_confirm { click_link 'Withdraw Access Request' }
expect(page).to have_content 'Your access request to the project has been withdrawn.'
expect(page).not_to have_content 'Withdraw Access Request' expect(page).not_to have_content 'Withdraw Access Request'
expect(page).to have_content 'Request Access' expect(page).to have_content 'Request Access'
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