remove edit_record page object

This commit is contained in:
Jarek Jakubowski
2019-01-15 08:32:27 +01:00
parent 5587e107e5
commit 5886c8deca
3 changed files with 5 additions and 16 deletions
+1 -2
View File
@@ -4,11 +4,10 @@ Feature: Edit record
When I visit the "pages_overview" page
And I click the "edit_button" element
Then the "edit_record" page is displayed
Then I wait for "title_field" element to appear
When I fill the "title_field" field with "Changed title"
And I click the "save_button" element
Then the "edit_record" page is displayed
When I visit the "pages_overview" page
Then there is element "record_title" with text "Changed title"
-14
View File
@@ -1,14 +0,0 @@
const { BasePage } = require('kakunin');
class EditRecordPage extends BasePage {
constructor() {
super();
this.url = '/bolt/edit/5';
this.title_field = element(by.id('field-title'));
this.save_button = element(by.css('button[type="submit"]'));
}
}
module.exports = EditRecordPage;
+4
View File
@@ -8,6 +8,10 @@ class PagesOvewviewPage extends BasePage {
this.edit_button = element(by.css('#listing .listing__row .listing--actions .link'));
this.record_title = element(by.css('#listing .listing__row .is-details a'));
// edit record
this.title_field = element(by.id('field-title'));
this.save_button = element(by.css('button[type="submit"]'));
}
}