Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
roleassign
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
roleassign
Commits
81bd7066
Commit
81bd7066
authored
2 years ago
by
Elber Rodrigues
Committed by
Joseph Olstad
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3348176
: Fix automated test fails on HEAD
parent
7704f153
No related branches found
No related tags found
1 merge request
!4
Issue #3348176: Fix automated test fails on HEAD
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Functional/RoleAssignPermissionTest.php
+4
-4
4 additions, 4 deletions
tests/src/Functional/RoleAssignPermissionTest.php
with
4 additions
and
4 deletions
tests/src/Functional/RoleAssignPermissionTest.php
+
4
−
4
View file @
81bd7066
...
...
@@ -106,7 +106,7 @@ class RoleAssignPermissionTest extends BrowserTestBase {
// Assign the role "editor" to the account.
$this
->
submitForm
([
"roles[editor]"
=>
"editor"
],
'Save'
);
$this
->
assertSession
()
->
pageTextContains
(
'The changes have been saved.'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-roles-editor'
,
'Role editor is assigned.'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-roles-editor'
);
$this
->
assertSession
()
->
checkboxNotChecked
(
'edit-roles-webmaster'
);
$this
->
assertSession
()
->
fieldNotExists
(
'edit-roles-siteadmin'
);
$this
->
userLoadAndCheckRoleAssigned
(
$this
->
testAccount
,
'editor'
);
...
...
@@ -116,7 +116,7 @@ class RoleAssignPermissionTest extends BrowserTestBase {
// Remove the role "editor" from the account.
$this
->
submitForm
([
"roles[editor]"
=>
FALSE
],
'Save'
);
$this
->
assertSession
()
->
pageTextContains
(
'The changes have been saved.'
);
$this
->
assertSession
()
->
checkboxNotChecked
(
'edit-roles-editor'
,
'Role editor is removed.'
);
$this
->
assertSession
()
->
checkboxNotChecked
(
'edit-roles-editor'
);
$this
->
assertSession
()
->
checkboxNotChecked
(
'edit-roles-webmaster'
);
$this
->
assertSession
()
->
fieldNotExists
(
'edit-roles-siteadmin'
);
$this
->
userLoadAndCheckRoleAssigned
(
$this
->
testAccount
,
'editor'
,
FALSE
);
...
...
@@ -155,7 +155,7 @@ class RoleAssignPermissionTest extends BrowserTestBase {
// Assign the role "SiteAdmin" to the account.
$this
->
submitForm
([
"roles[siteadmin]"
=>
"siteadmin"
],
'Save'
);
$this
->
assertSession
()
->
pageTextContains
(
'The changes have been saved.'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-roles-siteadmin'
,
'Role siteadmin is assigned.'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-roles-siteadmin'
);
$this
->
userLoadAndCheckRoleAssigned
(
$this
->
testAccount
,
'siteadmin'
);
$this
->
userLoadAndCheckRoleAssigned
(
$this
->
testAccount
,
RoleInterface
::
AUTHENTICATED_ID
);
...
...
@@ -167,7 +167,7 @@ class RoleAssignPermissionTest extends BrowserTestBase {
// "siteadmin" role doesn't get lost.
$this
->
submitForm
([
"roles[editor]"
=>
"editor"
],
'Save'
);
$this
->
assertSession
()
->
pageTextContains
(
'The changes have been saved.'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-roles-editor'
,
'Role editor is assigned.'
);
$this
->
assertSession
()
->
checkboxChecked
(
'edit-roles-editor'
);
$this
->
assertSession
()
->
fieldNotExists
(
'edit-roles-siteadmin'
);
$this
->
userLoadAndCheckRoleAssigned
(
$this
->
testAccount
,
'editor'
);
$this
->
userLoadAndCheckRoleAssigned
(
$this
->
testAccount
,
RoleInterface
::
AUTHENTICATED_ID
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment