Skip to content
cedric lombardot edited this page Oct 22, 2016 · 9 revisions

Page manipulation

  • 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 getButtonByName method
  • Then /^I should see the button "([^"]*)"$/ : check if button found by name using getButtonByName is visible
  • Then /^I should see the button "([^"]*) enabled"$/ : check if button found by name using getButtonByName is visible and enabled
  • Then /^I should see the button "([^"]*) disabled"$/ : check if button found by name using getButtonByName is visible and disabled
  • Then /^I should not see the button "([^"]*)"$/ : check if button found by name using getButtonByName is not visible
  • When /^I click on the tab "([^"]*)"$/ : click on visible button found by name using getTabByName method
  • Then /^I should be redirected on "([^"]*)"$/ : check if I was redirected on the good page
  • Then /^I can see "([^"])" at line "([^"])"$/ : Find field using getFieldByName with inside .like-input span having text set in first arg
  • Then /^I can see "([^"])" in element "([^"])"$/ : check if element defined by name using getElementByName has 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

Modals manipulation

  • Then /^I see the modal "([^"]*)"$/ : check if body has class modal-open and check element given by getModalElement
  • Then /^I accept confirm modal$/ : found '.modal-content button[ng-click="confirm()"]' and click on

Data manipulation

  • Given /^I use "([^"]*)" mocked database$/ : Let you load a specific mocked database

Form manipulation

  • Then /^I see "([^"])" select box filled with value "([^"])"$/ : check select box using getElementByNgModel and check option[selected=selected] value
  • Then /^I click on the select box "([^"])" to select "([^"])"$/ : find select box using getSelectBoxByNgModel and 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 "([^"])"$/

Table manipulation

  • 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 "([^"]*)"$/
Clone this wiki locally