-
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.
Implemented CreateNewVersionOfDataModelSpec #1271
- Loading branch information
1 parent
d532d2f
commit dff54c7
Showing
6 changed files
with
192 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
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
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
29 changes: 29 additions & 0 deletions
29
...ePluginTestApp/test/functional/org/modelcatalogue/core/geb/NewVersionDataModelPage.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,29 @@ | ||
package org.modelcatalogue.core.geb | ||
|
||
import geb.Page | ||
|
||
class NewVersionDataModelPage extends Page implements InputUtils { | ||
static atCheckWaiting = true | ||
|
||
static at = { $("div.modal-header>h4").text()?.contains('New Version of Data Model') } | ||
|
||
static content = { | ||
semanticVersion(wait: true) { $('input#semanticVersion') } | ||
createVersionButton(wait: true) { $('div.contextual-actions.ng-isolate-scope.btn-toolbar', 0) } | ||
hideButton(wait: true) { $('form.ng-pristine>button.btn.btn-primary') } | ||
} | ||
|
||
void hideConfirmation() { | ||
hideButton.click() | ||
sleep(2000) | ||
} | ||
|
||
void semanticVersionText(String value) { | ||
fillInput(semanticVersion, value) | ||
} | ||
|
||
void submit() { | ||
createVersionButton.click() | ||
sleep(3_000) | ||
} | ||
} |
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