-
Notifications
You must be signed in to change notification settings - Fork 5
/
overview.po.js
31 lines (22 loc) · 1.21 KB
/
overview.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
var OverviewPage = function () {
this.currentOutcomesHeader = element(by.cssContainingText('.md-toolbar-tools', 'Current Outcomes'));
this.currentOutcomes = element.all(by.repeater('activeEntry in $ctrl.activeEntries'));
this.allEntries = element.all(by.repeater('entry in $ctrl.overviewEntries'));
this.titleFromCurrentOutcome = function (index) {
return this.currentOutcomes.get(index).element(by.css('.entry-title'));
};
this.firstStoryFromCurrentOutcome = function (index) {
return this.currentOutcomes.get(index).element(by.binding('$ctrl.outcomeObj.firstStory'));
};
this.secondStoryFromCurrentOutcome = function (index) {
return this.currentOutcomes.get(index).element(by.binding('$ctrl.outcomeObj.secondStory'));
};
this.thirdStoryFromCurrentOutcome = function (index) {
return this.currentOutcomes.get(index).element(by.binding('$ctrl.outcomeObj.thirdStory'));
};
this.editCurrentOutcomeButton = function (index) {
return this.currentOutcomes.get(index).element(by.css('[ng-click="$ctrl.editOutcome()"]'));
};
this.downloadAllEntriesButton = element(by.css('[ng-click="$ctrl.getAllEntries()"]'));
};
module.exports = OverviewPage;