forked from cheezy/page-object
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cheezy#334 from morozgrafix/master
Add support for 'i' tag
- Loading branch information
Showing
18 changed files
with
409 additions
and
158 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
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,21 @@ | ||
Feature: Italic | ||
|
||
Background: | ||
Given I am on the static elements page | ||
|
||
Scenario: Getting the text of headings | ||
When I get the italic text for the "i" element | ||
Then I should see "some text in italic" in italic | ||
|
||
Scenario Outline: Locating i on the Page | ||
When I search italic text for the i by "<search_by>" | ||
Then I should see "some text in italic" in italic | ||
|
||
Scenarios: | ||
| search_by | | ||
| id | | ||
| class | | ||
| name | | ||
| xpath | | ||
| index | | ||
| css | |
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,12 @@ | ||
When /^I get the italic text for the "([^\"]*)" element$/ do |el| | ||
@i = @page.send "#{el}_id" | ||
end | ||
|
||
Then /^I should see "([^\"]*)" in italic$/ do |text| | ||
@i.should == text | ||
end | ||
|
||
When /^I search italic text for the (\w+) by "([^"]*)"$/ do |text_decorator, type| | ||
@i = @page.send "#{text_decorator}_#{type}" | ||
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
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
Oops, something went wrong.