Skip to content

Commit

Permalink
[Dashboard] Sample data link does not work (#75262)
Browse files Browse the repository at this point in the history
Closes #74812
  • Loading branch information
alexwizp committed Aug 18, 2020
1 parent 2af2b60 commit 8d85198
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class DashboardListing extends React.Component {
sampleDataInstallLink: (
<EuiLink
onClick={() =>
this.props.core.application.navigateTo('home', {
this.props.core.application.navigateToApp('home', {
path: '#/tutorial_directory/sampleData',
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ describe('after fetch', () => {
getViewUrl={() => {}}
listingLimit={1000}
hideWriteControls={false}
initialPageSize={10}
initialFilter="my dashboard"
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
/>
Expand All @@ -101,6 +102,7 @@ describe('after fetch', () => {
editItem={() => {}}
getViewUrl={() => {}}
listingLimit={1000}
initialPageSize={10}
hideWriteControls={false}
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
/>
Expand All @@ -123,6 +125,7 @@ describe('after fetch', () => {
editItem={() => {}}
getViewUrl={() => {}}
listingLimit={1}
initialPageSize={10}
hideWriteControls={false}
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
/>
Expand All @@ -145,6 +148,7 @@ describe('after fetch', () => {
editItem={() => {}}
getViewUrl={() => {}}
listingLimit={1}
initialPageSize={10}
hideWriteControls={true}
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
/>
Expand All @@ -167,6 +171,7 @@ describe('after fetch', () => {
editItem={() => {}}
getViewUrl={() => {}}
listingLimit={1}
initialPageSize={10}
hideWriteControls={false}
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
/>
Expand Down

0 comments on commit 8d85198

Please sign in to comment.