Created
May 7, 2009 20:17
-
-
Save kshaw/108328 to your computer and use it in GitHub Desktop.
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
Feature: Properties Tab | |
In order to change the binding type | |
As a lulu user | |
I want the radio button on the properties tab to change my binding type | |
Scenario: Binding Type Radio Button | |
Given I have started a photo book project | |
And I am on the properties tab | |
When I click <trimsize> trimsize | |
And I click <bindingtype> bindingtype | |
Then my print package should be <pod> | |
Examples: | |
| trimsize | bindingtype | pod | | |
| landscapeRadioButton | hardcoverRadioButton | 90 | | |
| landscapeRadioButton | paperbackRadioButton | 82 | | |
| letterRadioButton | hardcoverRadioButton | 89 | | |
| letterRadioButton | paperbackRadioButton | 81 | |
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
Given /^I have started a photo book project$/ do | |
sleep 5 | |
@flex = BROWSER.flex_app('contentBuilder', 'contentBuilder') | |
end | |
Given /^I am on the properties tab$/ do | |
title_field = @flex.text_input({:id => 'titleField'}) | |
title_field.input("PhotobookTitle") | |
@flex.button({:automationName => 'MetaDialog.saveAndContinueButton'}).click | |
sleep 10 | |
end | |
When /^I click (.*) trimsize$/ do |trimsize| | |
@flex.button({:automationName => trimsize }).click | |
end | |
When /^I click (.*) bindingtype$/ do |bindingtype| | |
@flex.button({:automationName => bindingtype }).click | |
sleep 3 | |
end | |
Then /^my print package should be (.*)$/ do |pod| | |
getPodPackage.to_s.should == pod | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment