Few changes in test files for date(time)picker in order to make tests more readable

This commit is contained in:
Thierry Jet
2021-11-03 09:57:23 +01:00
parent c8340d5c3b
commit fd5e34bf5c
3 changed files with 9 additions and 6 deletions

View File

@@ -161,7 +161,7 @@ describe '
within(".flatpickr-calendar.open") do
expect(page).to have_selector '.shortcut-buttons-flatpickr-buttons'
select_datetime_from_datepicker test_value
find(".shortcut-buttons-flatpickr-buttons > button:nth-last-child(1)").click
find("button", text: "CLOSE").click
end
# Should no more have opened flatpickr