-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement UserCanEditDataClassesForAdminDataModelSpec
See: #1199
- Loading branch information
Showing
2 changed files
with
162 additions
and
2 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
...talogueCorePluginTestApp/test/functional/org/modelcatalogue/core/geb/DataClassPage.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package org.modelcatalogue.core.geb | ||
|
||
import geb.Page | ||
|
||
class DataClassPage extends Page { | ||
|
||
static url = '/#' | ||
|
||
static at = { title.startsWith('History of') } | ||
|
||
static content = { | ||
editButton { $('a#role_item-detail_inline-editBtn') } | ||
saveButton(wait: false, required: false) { $('button#role_item-detail_inline-edit-submitBtn') } | ||
// discription(wait: false, required: false) { $('textarea') } | ||
// treeView { $('div.data-model-treeview-pane', 0).module(DataModelTreeViewModule) } | ||
formMetadataLink { $('span.btn.btn-link btn-sm ng-binding') } | ||
tabs { $('ul.nav.nav-tabs a', text: it) } | ||
parentAddButton { $('span.fa.fa-plus-circle') } | ||
} | ||
|
||
void edit() { | ||
editButton.click() | ||
} | ||
|
||
void save() { | ||
saveButton.click() | ||
} | ||
|
||
/*void writeDiscription(String text) { | ||
discription.value(text) | ||
}*/ | ||
|
||
void formMetadata() { | ||
formMetadataLink.click() | ||
} | ||
|
||
void selectParents() { | ||
tabs("Parents").click() | ||
} | ||
|
||
void addParent() { | ||
parentAddButton[2].click() | ||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters