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
a66da6e7
Unverified
Commit
a66da6e7
authored
2 years ago
by
Nick Fitzpatrick
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Passing dashboard object to isEditing (#29458)
parent
48dcfc92
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
e2e/test/scenarios/dashboard/dashboard.cy.spec.js
+16
-0
16 additions, 0 deletions
e2e/test/scenarios/dashboard/dashboard.cy.spec.js
frontend/src/metabase/dashboard/components/Dashboard/Dashboard.jsx
+2
-1
2 additions, 1 deletion
...src/metabase/dashboard/components/Dashboard/Dashboard.jsx
with
18 additions
and
1 deletion
e2e/test/scenarios/dashboard/dashboard.cy.spec.js
+
16
−
0
View file @
a66da6e7
...
...
@@ -535,6 +535,22 @@ describe("scenarios > dashboard", () => {
cy
.
findAllByText
(
"
18,760
"
).
should
(
"
have.length
"
,
2
);
});
it
(
"
should allow you to add questions using 'Add a saved question' button (metabase#29450)
"
,
()
=>
{
cy
.
createDashboard
({
name
:
"
dash:29450
"
});
cy
.
visit
(
"
/collection/root
"
);
// enter newly created dashboard
cy
.
findByText
(
"
dash:29450
"
).
click
();
cy
.
findByText
(
"
Add a saved question
"
).
click
();
sidebar
().
within
(()
=>
{
cy
.
findByText
(
"
Orders, Count
"
).
click
();
});
saveDashboard
();
});
it
(
"
should show collection breadcrumbs for a dashboard
"
,
()
=>
{
visitDashboard
(
1
);
appbar
().
within
(()
=>
cy
.
findByText
(
"
Our analytics
"
).
click
());
...
...
This diff is collapsed.
Click to expand it.
frontend/src/metabase/dashboard/components/Dashboard/Dashboard.jsx
+
2
−
1
View file @
a66da6e7
...
...
@@ -205,7 +205,8 @@ class Dashboard extends Component {
};
onAddQuestion
=
()
=>
{
this
.
setEditing
(
true
);
const
{
dashboard
}
=
this
.
props
;
this
.
setEditing
(
dashboard
);
this
.
props
.
toggleSidebar
(
SIDEBAR_NAME
.
addQuestion
);
};
...
...
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