-
Notifications
You must be signed in to change notification settings - Fork 2
Built in sentences
cedric lombardot edited this page Oct 22, 2016
·
9 revisions
- Given /^I am on the "([^"]*)"$/ : Let you change the url and page context
- Given /^I try visit the page "([^"]*)"$/ : visit the page without check isOnPage
- Given /^I am on the "([^"])" of ([a-z0-9]+) "([^"])"$/ : Change the page using models to complete url
-
When /^I click on the button "([^"]*)"$/ : click on visible button found by name using
getButtonByNamemethod -
Then /^I should see the button "([^"]*)"$/ : check if button found by name using
getButtonByNameis visible -
Then /^I should see the button "([^"]*) enabled"$/ : check if button found by name using
getButtonByNameis visible and enabled -
Then /^I should see the button "([^"]*) disabled"$/ : check if button found by name using
getButtonByNameis visible and disabled -
Then /^I should not see the button "([^"]*)"$/ : check if button found by name using
getButtonByNameis not visible -
When /^I click on the tab "([^"]*)"$/ : click on visible button found by name using
getTabByNamemethod - Then /^I should be redirected on "([^"]*)"$/ : check if I was redirected on the good page
-
Then /^I can see "([^"])" at line "([^"])"$/ : Find field using
getFieldByNamewith inside.like-input spanhaving text set in first arg -
Then /^I can see "([^"])" in element "([^"])"$/ : check if element defined by name using
getElementByNamehas text set in the first argument -
Then /^I can see "([^"])" for data "([^"])"$/ : check value of an ng-bind found by
getBindingByName -
Then /^I can see text "([^"])" at frame "([^"])"$/ : check if some text is visible in section found using
getContainerByName - Then /^I wait ([^"]*) seconds$/ : make a sleep
-
Then /^I see the modal "([^"]*)"$/ : check if body has class
modal-openand check element given bygetModalElement -
Then /^I accept confirm modal$/ : found
'.modal-content button[ng-click="confirm()"]'and click on
- Given /^I use "([^"]*)" mocked database$/ : Let you load a specific mocked database
-
Then /^I see "([^"])" select box filled with value "([^"])"$/ : check select box using
getElementByNgModeland checkoption[selected=selected]value -
Then /^I click on the select box "([^"])" to select "([^"])"$/ : find select box using
getSelectBoxByNgModeland select value in option text -
When /^I fill "([^"])" field with "([^"])"$/ : Fill field founded with
getFieldByName - Then /^I see "([^"])" error for "([^"])" field$/
- Then /^I see "([^"])" select box values match format "([^"])"$/
-
Then /^I can see "([^"])" for the first "([^"])" data$/ : find table using
getTableByRepeater - Then /^I see "([^"])" in the column "([^"])" of the row "([^"])" of the table "([^"])"$/
- When /^I click on the action "([^"])" of the row "([^"])" of the table "([^"]*)"$/