Skip to content

Commit

Permalink
Update capybara , selenium-driver
Browse files Browse the repository at this point in the history
Update spec/features/scheduled_message_spec.rb to find the element and then set the value.
  • Loading branch information
christinach committed Aug 14, 2024
1 parent 7164560 commit d6c7f27
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ end
group :test do
gem 'axe-core-rspec'
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 3.38'
gem 'capybara'
gem 'selenium-webdriver'
# Easy installation and use of chromedriver to run system tests with Chrome
gem 'rspec_junit_formatter'
Expand Down
22 changes: 11 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ GEM
capistrano-bundler (>= 1.1, < 3)
capistrano-yarn (2.0.2)
capistrano (~> 3.0)
capybara (3.39.2)
capybara (3.40.0)
addressable
matrix
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
nokogiri (~> 1.11)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
Expand Down Expand Up @@ -152,6 +152,7 @@ GEM
activesupport (>= 5.0.0)
json (2.6.3)
language_server-protocol (3.17.0.3)
logger (1.6.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand Down Expand Up @@ -256,15 +257,12 @@ GEM
zeitwerk (~> 2.5)
rainbow (3.1.1)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
regexp_parser (2.8.2)
regexp_parser (2.9.2)
responders (3.1.0)
actionpack (>= 5.2)
railties (>= 5.2)
rexml (3.2.8)
strscan (>= 3.0.9)
rexml (3.3.5)
strscan
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.1)
Expand Down Expand Up @@ -311,7 +309,9 @@ GEM
rubocop-factory_bot (~> 2.22)
ruby-progressbar (1.13.0)
rubyzip (2.3.2)
selenium-webdriver (4.13.1)
selenium-webdriver (4.23.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
Expand Down Expand Up @@ -353,7 +353,7 @@ GEM
activemodel (>= 6.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
websocket (1.2.10)
websocket (1.2.11)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
Expand Down Expand Up @@ -381,7 +381,7 @@ DEPENDENCIES
capistrano-passenger
capistrano-rails
capistrano-yarn (~> 2.0)
capybara (>= 3.38)
capybara
devise
ed25519
factory_bot
Expand Down
9 changes: 4 additions & 5 deletions spec/features/scheduled_message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@

it 'can create a new Firestone scheduled message' do
visit '/locker_renewal_messages/new'

fill_in 'schedule', with: Time.zone.today.strftime('%m/%d/%y')
fill_in 'applicable_range', with: "#{Time.zone.today.strftime('%m/%d/%y')} - #{Time.zone.today.strftime('%m/%d/%y')}"
find('input#schedule').set(Time.zone.today.strftime('%m/%d/%y'))
find('input#applicable_range.lux-input').set("#{Time.zone.today.strftime('%m/%d/%y')} - #{Time.zone.today.strftime('%m/%d/%y')}")

expect do
click_button 'Submit'
Expand Down Expand Up @@ -70,8 +69,8 @@
it 'can create a new Lewis scheduled message' do
visit '/locker_renewal_messages/new'

fill_in 'schedule', with: Time.zone.today.strftime('%m/%d/%y')
fill_in 'applicable_range', with: "#{Time.zone.today.strftime('%m/%d/%y')} - #{Time.zone.today.strftime('%m/%d/%y')}"
find('input#schedule').set(Time.zone.today.strftime('%m/%d/%y'))
find('input#applicable_range.lux-input').set("#{Time.zone.today.strftime('%m/%d/%y')} - #{Time.zone.today.strftime('%m/%d/%y')}")

expect do
click_button 'Submit'
Expand Down

0 comments on commit d6c7f27

Please sign in to comment.