Updated test for related merge request title

This commit is contained in:
Constance Okoghenun 2019-01-17 17:33:15 +01:00
parent d30823c73d
commit 6f268e9c99
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ describe "Internal references", :js do
it "shows references" do it "shows references" do
page.within("#merge-requests .merge-requests-title") do page.within("#merge-requests .merge-requests-title") do
expect(page).to have_content("1 Related Merge Request") expect(page).to have_content("Related merge requests")
expect(page).to have_css(".mr-count-badge") expect(page).to have_css(".mr-count-badge")
end end

View file

@ -141,7 +141,7 @@ describe 'User creates branch and merge request on issue page', :js do
it 'disables the create branch button' do it 'disables the create branch button' do
expect(page).to have_css('.create-mr-dropdown-wrap .unavailable:not(.hidden)') expect(page).to have_css('.create-mr-dropdown-wrap .unavailable:not(.hidden)')
expect(page).to have_css('.create-mr-dropdown-wrap .available.hidden', visible: false) expect(page).to have_css('.create-mr-dropdown-wrap .available.hidden', visible: false)
expect(page).to have_content /1 Related Merge Request/ expect(page).to have_content /Related merge requests/
end end
end end