[CORD-2338] Single command to run E2E tests
Change-Id: Id8db22b2b496ca16d20d2c4d0739d9b9042540db
diff --git a/e2e/crud/crud.po.js b/e2e/crud/crud.po.js
index 6372fc5..78589d4 100644
--- a/e2e/crud/crud.po.js
+++ b/e2e/crud/crud.po.js
@@ -19,19 +19,21 @@
module.exports = new function(){
// list view
- this.tableRows = element.all(by.repeater('item in vm.data'));
- this.tableColumn = element(by.repeater('item in vm.data').row(0))
- .all(by.repeater('col in vm.columns'));
+ this.tableRows = element.all(by.css('tbody > tr'));
+ this.tableColumn = element(by.css('tbody > tr:first-child'))
+ .all(by.css('td'));
- this.actionsColumn = element(by.repeater('item in vm.data').row(0))
+ this.actionsColumn = element(by.css('tbody > tr:first-child'))
.element(by.css('td:last-child'));
- this.deleteBtn = this.actionsColumn.all(by.tagName('a'));
+ this.deleteBtn = this.actionsColumn.all(by.css('a[title="delete"'));
+ this.detailBtn = this.actionsColumn.all(by.css('a[title="details"'));
this.addBtn = element(by.linkText('Add'));
// detail page
this.formInputs = element.all(by.repeater('field in vm.config.inputs'));
+ this.nameInput = element.all(by.css('xos-form input')).first()
this.formBtn = element(by.buttonText('Save'));
this.nameField = element(by.css('[name="name"]'));