From d1f9532fee8d24f6ffdcad9fe58469f354776f21 Mon Sep 17 00:00:00 2001 From: Max Kadel Date: Thu, 19 Sep 2024 11:56:49 -0400 Subject: [PATCH] Disable flaky tests until they can be addressed by update in Lux See https://github.com/pulibrary/lux-design-system/issues/348 and https://github.com/pulibrary/approvals/issues/1165 for related tickets --- spec/features/my_requests_spec.rb | 8 ++++---- spec/features/report_spec.rb | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/spec/features/my_requests_spec.rb b/spec/features/my_requests_spec.rb index 7be886ff..3f871f04 100644 --- a/spec/features/my_requests_spec.rb +++ b/spec/features/my_requests_spec.rb @@ -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")) @@ -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) diff --git a/spec/features/report_spec.rb b/spec/features/report_spec.rb index 2c7fa73b..f595d5d9 100644 --- a/spec/features/report_spec.rb +++ b/spec/features/report_spec.rb @@ -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"