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
dc4d78f1
Unverified
Commit
dc4d78f1
authored
11 months ago
by
Kamil Mielnik
Committed by
GitHub
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add a repro for #36508 (#43002)
parent
59859a16
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
e2e/test/scenarios/filters/reproductions/36508-number-of-distinct-values.cy.spec.ts
+44
-0
44 additions, 0 deletions
.../reproductions/36508-number-of-distinct-values.cy.spec.ts
with
44 additions
and
0 deletions
e2e/test/scenarios/filters/reproductions/36508-number-of-distinct-values.cy.spec.ts
0 → 100644
+
44
−
0
View file @
dc4d78f1
import
{
SAMPLE_DATABASE
}
from
"
e2e/support/cypress_sample_database
"
;
import
{
createQuestion
,
modal
,
popover
,
restore
}
from
"
e2e/support/helpers
"
;
const
{
PEOPLE
,
PEOPLE_ID
}
=
SAMPLE_DATABASE
;
describe
(
"
issue 36508
"
,
()
=>
{
beforeEach
(()
=>
{
restore
();
cy
.
signInAsAdmin
();
});
it
(
"
should treat 'Number of distinct values' aggregation as numerical (metabase#36508)
"
,
()
=>
{
createQuestion
(
{
query
:
{
"
source-table
"
:
PEOPLE_ID
,
aggregation
:
[
[
"
distinct
"
,
[
"
field
"
,
PEOPLE
.
EMAIL
,
{
"
base-type
"
:
"
type/Text
"
}]],
],
breakout
:
[[
"
field
"
,
PEOPLE
.
SOURCE
,
{
"
base-type
"
:
"
type/Text
"
}]],
limit
:
5
,
},
},
{
visitQuestion
:
true
},
);
cy
.
button
(
"
Filter
"
).
click
();
modal
().
within
(()
=>
{
cy
.
findByText
(
"
Summaries
"
).
click
();
cy
.
findByTestId
(
"
filter-column-Distinct values of Email
"
)
.
findByText
(
"
between
"
)
.
should
(
"
exist
"
)
.
click
();
});
popover
().
within
(()
=>
{
cy
.
findByText
(
"
Equal to
"
).
should
(
"
exist
"
);
cy
.
findByText
(
"
Greater than
"
).
should
(
"
exist
"
);
cy
.
findByText
(
"
Less than
"
).
should
(
"
exist
"
);
});
});
});
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