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
e15ed55a
Unverified
Commit
e15ed55a
authored
2 years ago
by
Ryan Laurie
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Reproduce issue 22206 (#22349)
* reproduce issue 22206
parent
dcdb8055
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
frontend/test/metabase/scenarios/visualizations/reproductions/22206-add-remove-column.cy.spec.js
+44
-0
44 additions, 0 deletions
...izations/reproductions/22206-add-remove-column.cy.spec.js
with
44 additions
and
0 deletions
frontend/test/metabase/scenarios/visualizations/reproductions/22206-add-remove-column.cy.spec.js
0 → 100644
+
44
−
0
View file @
e15ed55a
import
{
restore
,
openOrdersTable
}
from
"
__support__/e2e/cypress
"
;
describe
(
"
#22206 adding and removing columns doesn't duplicate columns
"
,
()
=>
{
beforeEach
(()
=>
{
restore
();
cy
.
signInAsNormalUser
();
openOrdersTable
();
cy
.
findByTestId
(
"
loading-spinner
"
).
should
(
"
not.exist
"
);
});
it
(
"
should not duplicate column in settings when removing and adding it back
"
,
()
=>
{
cy
.
findByText
(
"
Settings
"
).
click
();
// remove column
cy
.
findByTestId
(
"
sidebar-content
"
)
.
findByText
(
"
Subtotal
"
)
.
parent
()
.
find
(
"
.Icon-close
"
)
.
click
();
// rerun query
cy
.
get
(
"
.RunButton
"
)
.
first
()
.
click
();
cy
.
wait
(
"
@dataset
"
);
cy
.
findByTestId
(
"
loading-spinner
"
).
should
(
"
not.exist
"
);
// add column back again
cy
.
findByTestId
(
"
sidebar-content
"
)
.
findByText
(
"
Subtotal
"
)
.
parent
()
.
find
(
"
.Icon-add
"
)
.
click
();
cy
.
wait
(
"
@dataset
"
);
cy
.
findByTestId
(
"
loading-spinner
"
).
should
(
"
not.exist
"
);
// fails because there are 2 columns, when there should be one
cy
.
findByTestId
(
"
sidebar-content
"
).
findByText
(
"
Subtotal
"
);
// if you add it back again it crashes the question
});
});
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