Fix expectations for already existing content

We were checking content which was already present/absent before making
a certain request, so the expectations were not checking the request had
already finished. Our intention here is to check the page contents after
the request has finished.
This commit is contained in:
Javi Martín
2021-04-11 20:20:42 +02:00
parent 74ca332989
commit aff102325a
2 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,8 @@ describe "Admin custom information texts", :admin do
expect(page).to have_content "Help with participatory budgets"
within("#information-texts-tabs") { click_link "Debates" }
expect(page).to have_content "Help about debates"
expect(page).to have_content "Edit debate"
within("#information-texts-tabs") { click_link "Community" }
expect(page).to have_content "Access the community"

View File

@@ -321,7 +321,7 @@ describe "Admin edit translatable records", :admin do
click_button "Save changes"
expect(page).not_to have_css "#error_explanation"
expect(page).to have_content "Process updated successfully"
visit edit_admin_legislation_process_path(translatable)