Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update steps and features to work better with file choosers. [#2, #4]
- Loading branch information
Showing
5 changed files
with
50 additions
and
20 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
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,25 @@ | ||
Given t(/^the file chooser "([^\"]*)" is visible$/) do |name| | ||
container.set dialog(name, nil) | ||
end | ||
|
||
Given t(/^the file chooser "([^\"]*)" is the container$/) do |name| | ||
container.set dialog(name, nil) | ||
end | ||
|
||
When t(/^I select the file "([^\"]*)"$/) do |name| | ||
When %Q(I fill the text field "#1" with "#{name}") | ||
end | ||
|
||
When t(/^I close the file chooser "([^\"]*)"$/) do |name| | ||
dialog(name, nil).close | ||
end | ||
|
||
Then t(/^I should (not )*see the file chooser "([^\"]*)"$/) do |negation, name| | ||
if negation | ||
expect_timeout(:id => "ComponentOperator.WaitComponentTimeout") do | ||
dialog(name, nil) | ||
end | ||
else | ||
dialog(name, nil).visible?.should be_true | ||
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