-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow league managers to undo keepers
- Loading branch information
Josh Prince
committed
Jul 14, 2015
1 parent
f00dfe8
commit c12c7a0
Showing
9 changed files
with
137 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
a.remove { | ||
cursor: pointer; | ||
} | ||
ul.hmenu { | ||
list-style: none; | ||
margin: 0 0 2em; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
module Pages | ||
class KeeperPage < Base | ||
def has_keeper?(player_name, pick) | ||
has_css?('.keeper', text: "#{player_name} - #{pick}") | ||
end | ||
|
||
def has_no_keepers? | ||
has_no_css?('.keeper') | ||
end | ||
|
||
def has_selected_pick?(pick) | ||
has_select?('pick-select', selected: pick) | ||
end | ||
|
||
def has_selected_player?(player_name) | ||
has_select?('player-select', selected: player_name) | ||
end | ||
|
||
def has_selected_position?(position) | ||
has_select?('position-select', selected: position) | ||
end | ||
|
||
def has_selected_team?(team_name) | ||
has_select?('team-select', selected: team_name) | ||
end | ||
|
||
def remove_first_keeper | ||
find('a.remove').click | ||
end | ||
|
||
def select_position(position) | ||
select(position, from: 'position-select') | ||
end | ||
|
||
def select_team(team_name) | ||
select(team_name, from: 'team-select') | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters