Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Engineering Digital Service
Metabase
Commits
7577ebeb
Unverified
Commit
7577ebeb
authored
1 year ago
by
Nemanja Glumac
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[E2E] Re-enable monitoring permissions test (#36050)
* Unskip previously quarantined test * Improve test readability
parent
c06f6d0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
e2e/test/scenarios/permissions/application-permissions.cy.spec.js
+32
-26
32 additions, 26 deletions
.../scenarios/permissions/application-permissions.cy.spec.js
with
32 additions
and
26 deletions
e2e/test/scenarios/permissions/application-permissions.cy.spec.js
+
32
−
26
View file @
7577ebeb
...
...
@@ -9,6 +9,7 @@ import {
setTokenFeatures
,
setupSMTP
,
sidebar
,
popover
,
}
from
"
e2e/support/helpers
"
;
import
{
USERS
}
from
"
e2e/support/cypress_data
"
;
...
...
@@ -133,36 +134,41 @@ describeEE("scenarios > admin > permissions > application", () => {
cy
.
signInAsNormalUser
();
});
// Adding this test to quarantine. When it was failing was making all the subsequents to fail.
// More details can be found on the Thread https://metaboat.slack.com/archives/CKZEMT1MJ/p1649272824618149
it
.
skip
(
"
allows accessing tools, audit, and troubleshooting for non-admins
"
,
()
=>
{
it
(
"
allows accessing tools, audit, and troubleshooting for non-admins
"
,
()
=>
{
cy
.
visit
(
"
/
"
);
cy
.
icon
(
"
gear
"
).
click
();
// eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
cy
.
findByText
(
"
Admin settings
"
).
click
();
popover
().
findByText
(
"
Admin settings
"
).
click
();
// Tools smoke test
cy
.
url
().
should
(
"
include
"
,
"
/admin/tools/errors
"
);
// eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
cy
.
findByText
(
"
Questions that errored when last run
"
);
// eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
cy
.
findByText
(
"
broken_question
"
);
// Audit smoke test
// eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
cy
.
findByText
(
"
Audit
"
).
click
();
cy
.
url
().
should
(
"
include
"
,
"
/admin/audit/members/overview
"
);
// eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
cy
.
findByText
(
"
All members
"
).
click
();
// eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
cy
.
findByText
(
getFullName
(
admin
));
// Troubleshooting smoke test
// eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
cy
.
findByText
(
"
Troubleshooting
"
).
click
();
// eslint-disable-next-line no-unscoped-text-selectors -- deprecated usage
cy
.
findByText
(
"
Diagnostic Info
"
);
cy
.
log
(
"
Tools smoke test
"
);
cy
.
location
(
"
pathname
"
).
should
(
"
eq
"
,
"
/admin/tools/errors
"
);
cy
.
findByRole
(
"
heading
"
,
{
name
:
"
Questions that errored when last run
"
,
});
cy
.
findAllByRole
(
"
cell
"
).
should
(
"
contain
"
,
"
broken_question
"
);
cy
.
log
(
"
Audit smoke test
"
);
cy
.
findByRole
(
"
navigation
"
)
.
findByRole
(
"
link
"
,
{
name
:
"
Audit
"
})
.
click
();
cy
.
location
(
"
pathname
"
).
should
(
"
eq
"
,
"
/admin/audit/members/overview
"
);
cy
.
findByRole
(
"
heading
"
,
{
name
:
"
Team members
"
,
});
cy
.
findByRole
(
"
radiogroup
"
).
contains
(
"
Audit log
"
).
click
();
cy
.
location
(
"
pathname
"
).
should
(
"
eq
"
,
"
/admin/audit/members/log
"
);
cy
.
findAllByRole
(
"
cell
"
)
.
should
(
"
contain
"
,
"
broken_question
"
)
.
and
(
"
contain
"
,
getFullName
(
admin
));
cy
.
log
(
"
Troubleshooting smoke test
"
);
cy
.
findByRole
(
"
navigation
"
)
.
findByRole
(
"
link
"
,
{
name
:
"
Troubleshooting
"
})
.
click
();
cy
.
location
(
"
pathname
"
).
should
(
"
eq
"
,
"
/admin/troubleshooting/help
"
);
cy
.
get
(
"
main
"
)
.
should
(
"
contain
"
,
"
Help
"
)
.
and
(
"
contain
"
,
"
Diagnostic Info
"
);
});
});
...
...
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