-
Notifications
You must be signed in to change notification settings - Fork 5
/
reflections.po.js
34 lines (22 loc) · 2.23 KB
/
reflections.po.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var ReflectionPage = function () {
this.reflectionsHeader = element(by.cssContainingText('h1', 'Reflections'));
this.createNewReflectionButton = element(by.buttonText('Create New Reflection'));
this.createNewReflectionWeeklyReflectionSubChoiceButton = element(by.buttonText('Weekly Reflection'));
this.createNewReflectionMonthlyReflectionSubChoiceButton = element(by.buttonText('Monthly Reflection'));
this.firstThingThatWentWellInputField = element(by.model('$ctrl.firstThingThatWentWell'));
this.firstThingThatWentWellInputFieldMessage = this.firstThingThatWentWellInputField.element(by.xpath('..')).element(by.css('[ng-messages]')).element(by.xpath('*[1]'));
this.secondThingThatWentWellInputField = element(by.model('$ctrl.secondThingThatWentWell'));
this.secondThingThatWentWellInputFieldMessage = this.secondThingThatWentWellInputField.element(by.xpath('..')).element(by.css('[ng-messages]')).element(by.xpath('*[1]'));
this.thirdThingThatWentWellInputField = element(by.model('$ctrl.thirdThingThatWentWell'));
this.thirdThingThatWentWellInputFieldMessage = this.thirdThingThatWentWellInputField.element(by.xpath('..')).element(by.css('[ng-messages]')).element(by.xpath('*[1]'));
this.firstThingToImproveInputField = element(by.model('$ctrl.firstThingToImprove'));
this.firstThingToImproveInputFieldMessage = this.firstThingToImproveInputField.element(by.xpath('..')).element(by.css('[ng-messages]')).element(by.xpath('*[1]'));
this.secondThingToImproveInputField = element(by.model('$ctrl.secondThingToImprove'));
this.secondThingToImproveInputFieldMessage = this.secondThingToImproveInputField.element(by.xpath('..')).element(by.css('[ng-messages]')).element(by.xpath('*[1]'));
this.thirdThingToImproveInputField = element(by.model('$ctrl.thirdThingToImprove'));
this.thirdThingToImproveInputFieldMessage = this.thirdThingToImproveInputField.element(by.xpath('..')).element(by.css('[ng-messages]')).element(by.xpath('*[1]'));
this.saveButton = element(by.cssContainingText('button', 'Save'));
this.relatedEntries = element.all(by.repeater('relatedEntry in $ctrl.relatedEntries'));
this.allEntries = element.all(by.repeater('entry in $ctrl.entryList'));
};
module.exports = ReflectionPage;