Skip to content

Commit

Permalink
Update spec/features/scheduled_message_spec.rb to set a date start fr…
Browse files Browse the repository at this point in the history
…om tomorrow. The calendar has not today active day.
  • Loading branch information
christinach committed Aug 14, 2024
1 parent 3468848 commit 7da90eb
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ GEM
zeitwerk (~> 2.5)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.2)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
regexp_parser (2.9.2)
responders (3.1.0)
actionpack (>= 5.2)
railties (>= 5.2)
Expand Down
2 changes: 1 addition & 1 deletion app/views/locker_applications/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Locker Applications
</lux-card-header>
<lux-card-content>
<%= form_tag(locker_applications_path, method: :get) do %>
<lux-search-box >
<lux-search-box>
<lux-input-text id="search" name="search" label="Search by user netid" :hide-label="true" placeholder="Search by user netid" size="large" value="<%= params[:search]%>"></lux-input-text>
<lux-input-button id="search_submit" type="submit" variation="icon" size="medium" icon="search"></lux-input-button>
</lux-search-box>
Expand Down
4 changes: 2 additions & 2 deletions app/views/locker_assignments/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<heading level="h1"><%= current_user&.building&.name %> Locker Assignments</heading>
</lux-card-header>
<lux-card-content class="row">
<search-box >
<lux-search-box>
<lux-input-text id="query_uid" name="query[uid]" label="Search by user netid" :hide-label="true" placeholder="Search by user netid" size="large" value="<%= params.fetch(:query,{})[:uid]%>"></lux-input-text>
<lux-input-button id="search_submit" type="submit" variation="icon" size="medium" icon="search"></lux-input-button>
</search-box>
</lux-search-box>
<%= link_to locker_assignments_path do %>
<lux-icon-base icon-name="clear - return to all results"> <lux-icon-denied></lux-icon-denied> </lux-icon-base>
<% end %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/lockers/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
</lux-card-header>
<lux-card-content>
<%= form_tag(lockers_path, method: :get) do %>
<search-box >
<lux-search-box>
<lux-input-text id="search" name="search" label="Search by location" :hide-label="true" placeholder="Search by location" size="large" value="<%= params[:search]%>"></lux-input-text>
<lux-input-button id="search_submit" type="submit" variation="icon" size="medium" icon="search"></lux-input-button>
</search-box>
</lux-search-box>
<% end %>
<%= link_to 'Clear Search', lockers_path %>
</lux-card-content>
Expand Down
2 changes: 1 addition & 1 deletion app/views/study_rooms/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Study Rooms
</lux-card-header>
<lux-card-content>
<%= form_tag(study_rooms_path, method: :get) do %>
<lux-search-box >
<lux-search-box>
<lux-input-text id="search" name="search" label="Search by location" :hide-label="true" placeholder="Search by location" size="large" value="<%= params[:search]%>"></lux-input-text>
<lux-input-button id="search_submit" type="submit" variation="icon" size="medium" icon="search"></lux-input-button>
</lux-search-box>
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"@babel/plugin-transform-runtime": "^7.24.7",
"@happy-dom/jest-environment": "^14.12.3",
"@vitejs/plugin-vue": "^5.1.2",
"babel-core": "^6.26.3",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-macros": "^3.1.0",
"eslint": "8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.27.0",
"babel-core": "^6.26.3",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-macros": "^3.1.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"postcss-flexbugs-fixes": "^5.0.2",
Expand Down
8 changes: 4 additions & 4 deletions spec/features/scheduled_message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,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')}"
fill_in 'schedule', with: (Time.zone.today + 1.day).strftime('%m/%d/%y')
fill_in 'applicable_range', with: "#{(Time.zone.today + 1.day).strftime('%m/%d/%y')} - #{(Time.zone.today + 2.days).strftime('%m/%d/%y')}"

expect do
click_button 'Submit'
Expand Down Expand Up @@ -70,8 +70,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')}"
fill_in 'schedule', with: (Time.zone.today + 1.day).strftime('%m/%d/%y')
fill_in 'applicable_range', with: "#{(Time.zone.today + 1.day).strftime('%m/%d/%y')} - #{(Time.zone.today + 2.days).strftime('%m/%d/%y')}"

expect do
click_button 'Submit'
Expand Down

0 comments on commit 7da90eb

Please sign in to comment.