myvideo_20150101_gb myvideo_20150101_fr … myvideo_20150102_gb myvideo_20150102_fr
class adunit_monitoring {
common::nrpe::config_cmd { 'check_sponsored_text':
cmd => "java -jar acceptancetests.jar ad-sponsored-text"
}
common::nrpe::config_cmd { 'check_sharing_icons':
cmd => "java -jar acceptancetests.jar ad-sharing"
}
common::nrpe::config_cmd { 'check_click_through':
cmd => " protractor /path/protractor-config.js --specs clickthrough.js"
}
}
@Test
public void shouldSeeErrorIfPasswordIncorrect() {
User publisherWithInvalidPassword
= new PublisherWithInvalidPassword();
Page page =
when(publisherWithInvalidPassword.using(browser, url))
.attemptsTo(loginAs(publisherWithInvalidPassword))
.enact();
then(publisherWithInvalidPassword.using(browser, page))
.should(haveIncorrectCredentialsMessage())
.check();
}