master
1require_relative "../page_model.rb"
2
3class NewWorkoutPage < PageModel
4 def initialize
5 super new_workout_path
6 end
7
8 def change_body_weight(weight)
9 within "#new_workout" do
10 fill_in "workout_body_weight", with: weight
11 end
12 end
13
14 def click_start
15 click_button "Start"
16 end
17end