-
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.
- Loading branch information
1 parent
00071bb
commit b8059a3
Showing
4 changed files
with
76 additions
and
14 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
55 changes: 55 additions & 0 deletions
55
...alogueCorePluginTestApp/test/functional/org/modelcatalogue/core/geb/NavModuleAdmin.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,55 @@ | ||
package org.modelcatalogue.core.geb | ||
|
||
import geb.Module | ||
|
||
class NavModuleAdmin extends Module { | ||
|
||
static content = { | ||
newRealtionshipButton { $('#role_list_create-catalogue-element-menu-item-link') } | ||
searchButton { $('#role_navigation-right_search-menu-menu-item-link') } | ||
createDataModelButton { $('#role_navigation-right_create-data-model-menu-item-link') } | ||
curatorMenuDropdownLink { $('#role_navigation-right_curator-menu-menu-item-link') } | ||
importExcel { $('#import-excel-menu-item-link') } | ||
importOBO { $('#import-obo-menu-item-link') } | ||
importDSL { $('#import-dsl-menu-item-link') } | ||
importXML { $('#import-xml-menu-item-link') } | ||
adminMenuDropdownLink { $('#role_navigation-right_admin-menu-menu-item-link') } | ||
usersLink { $('#user-super-admin-menu-item-link') } | ||
dataModelPermissionLink { $('#datamodelpermission-admin-menu-item-link') } | ||
codeVersionLink { $('#code-version-menu-item-link') } | ||
mappingUtilityLink { $('#action-batches-menu-item-link') } | ||
activityLink { $('#user-last-seen-menu-item-link') } | ||
reindexCatalogueLink { $('#reindex-catalogue-menu-item-link') } | ||
relationshipTypesLink { $('#relationship-types-menu-item-link') } | ||
dataModelPolicyLink { $('#data-model-policies-menu-item-link') } | ||
monitoringLink { $('#monitoring-menu-item-link') } | ||
logsLink { $('#logs-archive-menu-item-link') } | ||
feedbackLink { $('#feedbacks-menu-item') } | ||
userMenuDropdownLink { $('#role_navigation-right_user-menu-menu-item-link') } | ||
userInfoLink { $('#user-info-menu-item-link') } | ||
favouritesLink { $('#user-favorites-menu-item') } | ||
apiKeyLink { $('#user-api-key-menu-item-link') } | ||
logoutLink { $('#user-login-right-menu-item-link') } | ||
} | ||
|
||
|
||
void adminMenu() { | ||
adminMenuDropdownLink.click() | ||
} | ||
|
||
void dataModelPolicies() { | ||
dataModelPolicyLink.click() | ||
} | ||
|
||
void monitoring() { | ||
monitoringLink.click() | ||
} | ||
|
||
void logs() { | ||
logsLink.click() | ||
} | ||
|
||
void feedbacks() { | ||
feedbackLink.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