-
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 AdminUserCannotDeleteFinalizedItemsSpec #1260
- Loading branch information
1 parent
60e9b1d
commit afa07f6
Showing
20 changed files
with
746 additions
and
31 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
38 changes: 38 additions & 0 deletions
38
...ogueCorePluginTestApp/test/functional/org/modelcatalogue/core/geb/CreateAssetsPage.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,38 @@ | ||
package org.modelcatalogue.core.geb | ||
|
||
import geb.Page | ||
import geb.module.Checkbox | ||
|
||
class CreateAssetsPage extends Page implements InputUtils { | ||
|
||
static url = '/dataModel/create' | ||
|
||
static at = { $('.modal-dialog').text().contains('Create Asset') } | ||
|
||
static content = { | ||
name(wait: true, required: false) { $('input#name') } | ||
inputFile { $('input', type: 'file') } | ||
description(wait: true, required: false) { $('textarea#description') } | ||
submitButton(wait: true, required: false) { $('a#role_modal_modal-save-elementBtn') } | ||
|
||
} | ||
|
||
void setName(String value) { | ||
fillInput(name, value) | ||
} | ||
|
||
void setDescription(String value) { | ||
fillInput(description, value) | ||
} | ||
|
||
void submit() { | ||
submitButton.click() | ||
sleep(2000) | ||
} | ||
|
||
void upload(String absolutePath) { | ||
inputFile = absolutePath | ||
} | ||
|
||
} | ||
|
58 changes: 58 additions & 0 deletions
58
...PluginTestApp/test/functional/org/modelcatalogue/core/geb/CreateBusninessRulesPage.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,58 @@ | ||
package org.modelcatalogue.core.geb | ||
|
||
import geb.Page | ||
import geb.module.Checkbox | ||
|
||
class CreateBusninessRulesPages extends Page implements InputUtils { | ||
|
||
static url = '/dataModel/create' | ||
|
||
static at = { $('.modal-dialog').text().contains('New Validation Rule') } | ||
|
||
static content = { | ||
name(wait: true, required: false) { $('input#name') } | ||
component(wait: true, required: false) { $('input#component') } | ||
focus(wait: true, required: false) { $('input#ruleFocus') } | ||
trigger(wait: true, required: false) { $('input#trigger') } | ||
rule(wait: true, required: false) { $('textarea#rule') } | ||
errorCondition(wait: true, required: false) { $('input#errorCondition') } | ||
issueRecord(wait: true, required: false) { $('input#issueRecord') } | ||
notification(wait: true, required: false) { $('input#notification') } | ||
target(wait: true, required: false) { $('input#notificationTarget') } | ||
ICON(wait: true, required: false) { $('div.modal-body>form>div:nth-child(5)>span>span') } | ||
SEARCH(wait: true, required: false) { $('input#value') } | ||
modelCatalogue(wait: true, required: false) { $('span.mc-name') } | ||
table(wait: true, required: false) { $('td.col-md-4') } | ||
businessRule(wait: true, required: false) { $('td.col-md-4>span>span>a') } | ||
deleteButton(wait: true, required: false) { $('a#delete-menu-item-link>span:nth-child(3)') } | ||
measurementUnitButton(wait: true, required: false) { $('a#role_modal_modal-save-elementBtn') } | ||
|
||
} | ||
|
||
void setName(String value) { | ||
fillInput(name, value) | ||
} | ||
|
||
void setComponent(String value) { | ||
fillInput(component, value) | ||
} | ||
|
||
void setFocus(String value) { | ||
fillInput(focus, value) | ||
} | ||
|
||
void setTrigger(String value) { | ||
fillInput(trigger, value) | ||
} | ||
|
||
void setRule(String value) { | ||
fillInput(rule, value) | ||
} | ||
|
||
void submit() { | ||
measurementUnitButton.click() | ||
sleep(2000) | ||
} | ||
|
||
} | ||
|
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
43 changes: 43 additions & 0 deletions
43
...uginTestApp/test/functional/org/modelcatalogue/core/geb/CreateMeasurementUnitsPage.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,43 @@ | ||
package org.modelcatalogue.core.geb | ||
|
||
import geb.Page | ||
import geb.module.Checkbox | ||
|
||
class CreateMeasurementUnitsPage extends Page implements InputUtils { | ||
|
||
static url = '/dataModel/create' | ||
|
||
static at = { $('.modal-dialog').text().contains('Create Measurement Unit') } | ||
|
||
static content = { | ||
name(wait: true, required: false) { $('input#name') } | ||
symbol(wait: true, required: false) { $('input#symbol') } | ||
catalogueId(wait: true, required: false) { $('input#modelCatalogueId') } | ||
description(wait: true, required: false) { $('textarea#description') } | ||
measurementUnitButton(wait: true, required: false) { $('a#role_modal_modal-save-elementBtn') } | ||
} | ||
|
||
|
||
void setSymbol(String value) { | ||
fillInput(symbol, value) | ||
} | ||
|
||
void setName(String value) { | ||
fillInput(name, value) | ||
} | ||
|
||
void setCatalogueId(String value) { | ||
fillInput(catalogueId, value) | ||
} | ||
|
||
void setDescription(String value) { | ||
fillInput(description, value) | ||
} | ||
|
||
void submit() { | ||
measurementUnitButton.click() | ||
sleep(2000) | ||
} | ||
|
||
} | ||
|
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
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
Oops, something went wrong.