UNPKG

linagora-rse

Version:
15 lines (11 loc) 725 B
'use strict'; module.exports = function() { this.container = element(by.css('div[data-notify="container"]')); this.containers = element.all(by.css('div[data-notify="container"]')); this.message = this.container.element(by.css('span[data-notify="message"]')); this.messages = element.all(by.css('span[data-notify="message"]')); this.firstMessage = this.messages.first(); this.actionLink = this.container.element(by.css('a[data-notify="url"]')); this.dismiss = this.container.element(by.css('a[data-notify="dismiss"]')); this.hasText = text => browser.wait(protractor.ExpectedConditions.textToBePresentInElement(this.firstMessage, text), 5000, 'The expected notification message was not found: ' + text); };