-
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.
minor fix maxoccursshowsinhistory(#1237)
- Loading branch information
1 parent
f099f83
commit 25d7276
Showing
9 changed files
with
227 additions
and
12 deletions.
There are no files selected for viewing
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
22 changes: 22 additions & 0 deletions
22
...rePluginTestApp/test/functional/org/modelcatalogue/core/geb/AddDataModelImportPage.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,22 @@ | ||
package org.modelcatalogue.core.geb | ||
|
||
import geb.Page | ||
|
||
class AddDataModelImportPage extends Page implements InputUtils { | ||
static at = { $("div.modal-header>h4")*.text().join(",").contains('Add Data Model Import') } | ||
|
||
static content = { | ||
searchMoreButton { $('span.search-for-more-icon', 0) } | ||
searchBar { $('input#elements') } | ||
okButton { $('button', text: "OK") } | ||
cancelButton { $('button', text: "Cancel") } | ||
} | ||
|
||
void searchMore() { | ||
searchMoreButton.click() | ||
} | ||
|
||
void importDataModel() { | ||
okButton.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
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
47 changes: 47 additions & 0 deletions
47
...rePluginTestApp/test/functional/org/modelcatalogue/core/geb/CreateRelationshipPage.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 CreateRelationshipPage extends Page { | ||
static at = { $("select#type", 0).displayed } | ||
|
||
static content = { | ||
relationshipTypeLink { $('select#type') } | ||
relationshipTypeDropdown { $('select#type option', text: it) } | ||
searchMoreButton { $('span.search-for-more-icon') } | ||
metadataDropdown { $('label.expand-metadata span') } | ||
metadataSideNavigator(wait: true) { $('div.mc-metadata-editor div', 0).$('ul li') } | ||
metadataInputFeildsNavigator { $('div.mc-metadata-editor div', 1) } | ||
maxOccurance(wait: true) { $('input#maxOccurs') } | ||
createRelationshipButton { $('button.btn-primary', text: 'Create Relationship') } | ||
} | ||
|
||
void relationship() { | ||
relationshipTypeLink.click() | ||
} | ||
|
||
void selectRelationshipType(String value) { | ||
relationshipTypeDropdown(value).click() | ||
} | ||
|
||
void searchMore() { | ||
searchMoreButton.click() | ||
} | ||
|
||
void openMetadata() { | ||
metadataDropdown.click() | ||
} | ||
|
||
void openOccuranceNavigator() { | ||
metadataSideNavigator.$('a', text: "Occurrence").click() | ||
} | ||
|
||
void setMaxOccurance(Integer value) { | ||
maxOccurance.value(value) | ||
} | ||
|
||
void createRelationship() { | ||
createRelationshipButton.click() | ||
sleep(1000) | ||
} | ||
} |
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
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
27 changes: 27 additions & 0 deletions
27
...eCorePluginTestApp/test/functional/org/modelcatalogue/core/geb/SearchDataClassPage.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,27 @@ | ||
package org.modelcatalogue.core.geb | ||
|
||
import geb.Page | ||
|
||
class SearchDataClassPage extends Page implements InputUtils { | ||
static at = { $("input#value", 0).displayed } | ||
|
||
static content = { | ||
search(wait: true) { $("input#value", 0) } | ||
searchDataClassLink(wait: true) { $("h4.list-group-item-heading", text: contains(it)) } | ||
addImportLink { $('a', text: 'Add Import') } | ||
} | ||
|
||
void selectDataClass(String name) { | ||
searchDataClassLink(name).click() | ||
} | ||
|
||
void addImport() { | ||
addImportLink.click() | ||
} | ||
|
||
void searchDataClass(String value) { | ||
fillInput(search, value) | ||
sleep(2000) | ||
selectDataClass(value) | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...eCorePluginTestApp/test/functional/org/modelcatalogue/core/geb/SearchDataModelPage.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,21 @@ | ||
package org.modelcatalogue.core.geb | ||
|
||
import geb.Page | ||
|
||
class SearchDataModelPage extends Page implements InputUtils { | ||
static at = { $("input#value", 0).displayed } | ||
|
||
static content = { | ||
searchBar(wait: true) { $("input#value", 0) } | ||
searchDataModelLink(wait: true) { $("h4.list-group-item-heading", text: contains(it)) } | ||
addImportLink { $('a', text: 'Add Import', 0) } | ||
} | ||
|
||
void searchDataModel(String name) { | ||
searchDataModelLink(name).click() | ||
} | ||
|
||
void addImport() { | ||
addImportLink.click() | ||
} | ||
} |