Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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 |
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