blob: 9716581df942a9663d0fca4ac80f920c5d2bf4c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Given(/^I am translating a message group which doesn't have workflow states$/) do
visit(TranslatePage, using_params: { extra: 'language=fi' })
end
Given(/^I am translating a message group which has workflow states$/) do
visit(TranslatePage, using_params: { extra: 'language=fi&group=page-Language+committee' })
end
When(/^I click the workflow state$/) do
on(TranslatePage).workflow_state_element.when_present.click
end
Then(/^I should see a workflow state$/) do
on(TranslatePage).workflow_state_element.when_present.should be_visible
end
Then(/^I should not see a workflow state$/) do
on(TranslatePage).workflow_state_element.should_not be_visible
end
Then(/^I should see a list of states$/) do
on(TranslatePage).workflow_state_selector_element.should be_visible
end
|