Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Fix flaky embargo tests #2441

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions spec/system/embargo_show_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
end

scenario "base etd has expected embargo values after creation", :aggregate_failures do
logout
expect(etd.degree_awarded).to eq nil
expect(etd.embargo.embargo_release_date).to eq many_years_from_today
expect(etd.embargo_length).to eq "6 months"
Expand Down Expand Up @@ -121,6 +122,7 @@
etd.reload # to clear cached data in memory after approval & graudation processes

# viewed by any user - logged in or not
logout # ensure we're not still logged in as an admin from another test
visit("/concern/etds/#{etd.id}")
expect(page).to have_content "Abstract"
expect(page).to have_content "This abstract is under embargo until #{formatted_embargo_release_date(etd)}"
Expand Down