spec: fix skipped test

making an extra click event to make the select in focus
so the InstUI modal won't close itself

fixes BUDA-14
flag=none

Test plan:
- all test should work

Change-Id: I584d04a0efe399ac9c1b238f618889457d3c93a8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/353205
Reviewed-by: Endre Berki <endre.berki@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Adrián Grúber <adrian.gruber@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
This commit is contained in:
Mario Hegyi 2024-07-22 18:05:56 +02:00
parent 2ddc1f6afb
commit 3197a5f9fd
2 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,6 @@ describe "scheduler" do
end
it "shows appointment slots on calendar in Find Appointment mode", priority: "1" do
skip "FOO-3801 (10/7/2023)"
get "/calendar2"
open_select_courses_modal(@course1.name)
# the order they come back could vary depending on whether they split

View File

@ -139,6 +139,9 @@ module SchedulerCommon
def open_select_courses_modal(course_name)
f("#FindAppointmentButton").click
# making the element into focus
# the INSTUI modal hijack the click event without selecting the value
f(".ic-Input").click
click_option(".ic-Input", course_name)
f('[role="dialog"][aria-label="Select Course"] button[type="submit"]').click
end