mirror of
https://github.com/jbcr/core.git
synced 2026-04-23 16:48:17 +02:00
remove edit_record page object
This commit is contained in:
@@ -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"
|
||||
@@ -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;
|
||||
@@ -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"]'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user