Skip to content

Commit

Permalink
Disable flaky tests until they can be addressed by update in Lux
Browse files Browse the repository at this point in the history
See pulibrary/lux-design-system#348 and #1165 for related tickets
  • Loading branch information
maxkadel committed Sep 19, 2024
1 parent 215e915 commit d1f9532
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions spec/features/my_requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
before do
sign_in user
end

scenario "I can filter my requests" do
# Re-enable this test after https://github.com/pulibrary/lux-design-system/issues/348 is completed and added to Approvals
xscenario "I can filter my requests" do
Timecop.freeze(Time.utc(2022))

FactoryBot.create(:absence_request, creator: staff_profile, start_date: Date.parse("2019-10-12"), end_date: Date.parse("2019-10-13"))
Expand Down Expand Up @@ -50,8 +50,8 @@

Timecop.return
end

scenario "I can sort my requests" do
# Re-enable this test after https://github.com/pulibrary/lux-design-system/issues/348 is completed and added to Approvals
xscenario "I can sort my requests" do
yesterday_request = FactoryBot.create(:absence_request, creator: staff_profile, start_date: Time.zone.yesterday)
today_request = FactoryBot.create(:travel_request, creator: staff_profile, start_date: Time.zone.today)
tomorrow_request = FactoryBot.create(:absence_request, creator: staff_profile, start_date: Time.zone.tomorrow)
Expand Down
3 changes: 2 additions & 1 deletion spec/features/report_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
Timecop.return
end

scenario "I can filter reports" do
# Re-enable this test after https://github.com/pulibrary/lux-design-system/issues/348 is completed and added to Approvals
xscenario "I can filter reports" do
Timecop.freeze(Time.utc(2019, "oct", 20))

direct_report = FactoryBot.create :staff_profile, supervisor: staff_profile, department: staff_profile.department, given_name: "Sally", surname: "Smith"
Expand Down

0 comments on commit d1f9532

Please sign in to comment.