-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into dev
- Loading branch information
Showing
9 changed files
with
124 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div data-bind="with:${bindingProperty}" class="input-group species-select"> | ||
<select class="form-control form-control-sm" data-bind="speciesSelect2:$data"></select> | ||
<div class="input-group-append"> | ||
<span class="input-group-text" data-bind="visible:name(), popover: {title: transients.speciesTitle, content: transients.speciesInformation}"><i class="fa fa-info-circle"></i></span> | ||
</div> | ||
</div> |
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 |
---|---|---|
|
@@ -59,9 +59,9 @@ class ManagementUnitPermissionSpec extends StubbedCasSpec { | |
|
||
def "an admin cannot add a user as a grant manager, but change change an editor to an admin"() { | ||
|
||
setup: | ||
setup: "Login as user 1 who is an admin of the 'test_mu' management unit" | ||
String projectId = '1' | ||
loginAsMeritAdmin(browser) | ||
loginAsUser('1', browser) | ||
|
||
when: | ||
to ManagementUnitPage, "test_mu" | ||
|
@@ -71,19 +71,19 @@ class ManagementUnitPermissionSpec extends StubbedCasSpec { | |
then: | ||
adminTabPane.permissionAccess.permissions.size() == 3 | ||
|
||
when: "We try and add a grant manager (user with id = 1001) as a grant manager to the project" | ||
when: "We try and add a grant manager (user with id = 1001) as a grant manager to the MU" | ||
adminTabPane.permissionAccess.addPermission("[email protected]", "caseManager") | ||
|
||
then: "we cannot because the 'Grant Manager' option is disabled" | ||
thrown(ElementNotInteractableException) | ||
thrown(Exception) // The type of exception thrown has changed, but the element should be disabled and not clickable | ||
|
||
when: "We change user 4 to an admin" | ||
adminTabPane.permissionAccess.findPermissionForUser('4').updateRole('admin') | ||
adminTabPane.permissionAccess.findPermissionForDisplayName('First 4 Last 4').updateRole('admin') | ||
okBootbox() | ||
|
||
then: | ||
waitFor { | ||
adminTabPane.permissionAccess.findPermissionForUser('4').roleText == "Admin" | ||
adminTabPane.permissionAccess.findPermissionForDisplayName('First 4 Last 4').roleText == "Admin" | ||
} | ||
|
||
} | ||
|
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