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
caf42840
Unverified
Commit
caf42840
authored
5 months ago
by
Uladzimir Havenchyk
Committed by
GitHub
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
chore: more another flaky test to jail (#48677)
parent
46af3b4c
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/sharing/public-question.cy.spec.js
+29
-25
29 additions, 25 deletions
e2e/test/scenarios/sharing/public-question.cy.spec.js
with
29 additions
and
25 deletions
e2e/test/scenarios/sharing/public-question.cy.spec.js
+
29
−
25
View file @
caf42840
...
...
@@ -65,39 +65,43 @@ describe("scenarios > public > question", () => {
updateSetting
(
"
enable-public-sharing
"
,
true
);
});
it
(
"
adds filters to url as get params and renders the results correctly (metabase#7120, metabase#17033, metabase#21993)
"
,
()
=>
{
cy
.
createNativeQuestion
(
questionData
).
then
(({
body
:
{
id
}
})
=>
{
visitQuestion
(
id
);
it
(
"
adds filters to url as get params and renders the results correctly (metabase#7120, metabase#17033, metabase#21993)
"
,
{
tags
:
"
@flaky
"
},
()
=>
{
cy
.
createNativeQuestion
(
questionData
).
then
(({
body
:
{
id
}
})
=>
{
visitQuestion
(
id
);
// Make sure metadata fully loaded before we continue
cy
.
get
(
"
[data-testid=cell-data]
"
).
contains
(
"
Winner
"
);
// Make sure metadata fully loaded before we continue
cy
.
get
(
"
[data-testid=cell-data]
"
).
contains
(
"
Winner
"
);
openNewPublicLinkDropdown
(
"
card
"
);
openNewPublicLinkDropdown
(
"
card
"
);
// Although we already have API helper `visitPublicQuestion`,
// it makes sense to use the UI here in order to check that the
// generated url originally doesn't include query params
visitPublicURL
();
// Although we already have API helper `visitPublicQuestion`,
// it makes sense to use the UI here in order to check that the
// generated url originally doesn't include query params
visitPublicURL
();
// On page load, query params are added
cy
.
location
(
"
search
"
).
should
(
"
eq
"
,
EXPECTED_QUERY_PARAMS
);
// On page load, query params are added
cy
.
location
(
"
search
"
).
should
(
"
eq
"
,
EXPECTED_QUERY_PARAMS
);
filterWidget
().
contains
(
"
Previous 30 Years
"
);
filterWidget
().
contains
(
"
Affiliate
"
);
filterWidget
().
contains
(
"
Previous 30 Years
"
);
filterWidget
().
contains
(
"
Affiliate
"
);
cy
.
wait
(
"
@publicQuery
"
);
// Name of a city from the expected results
cy
.
get
(
"
[data-testid=cell-data]
"
).
contains
(
"
Winner
"
);
cy
.
wait
(
"
@publicQuery
"
);
// Name of a city from the expected results
cy
.
get
(
"
[data-testid=cell-data]
"
).
contains
(
"
Winner
"
);
// Make sure we can download the public question (metabase#21993)
cy
.
get
(
"
@uuid
"
).
then
(
publicUuid
=>
{
downloadAndAssert
(
{
fileType
:
"
xlsx
"
,
questionId
:
id
,
publicUuid
},
assertSheetRowsCount
(
5
),
);
// Make sure we can download the public question (metabase#21993)
cy
.
get
(
"
@uuid
"
).
then
(
publicUuid
=>
{
downloadAndAssert
(
{
fileType
:
"
xlsx
"
,
questionId
:
id
,
publicUuid
},
assertSheetRowsCount
(
5
),
);
});
});
}
);
}
);
}
,
);
it
(
"
should only allow non-admin users to see a public link if one has already been created
"
,
()
=>
{
cy
.
createNativeQuestion
(
questionData
).
then
(({
body
:
{
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