[Dashboard] Sample data link does not work (#75262) (#75300)

Closes #74812
This commit is contained in:
Alexey Antonov 2020-08-18 22:27:37 +03:00 committed by GitHub
parent c07ae97c40
commit 27f124a8c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View file

@ -11,6 +11,7 @@ exports[`after fetch hideWriteControls 1`] = `
findItems={[Function]}
headingId="dashboardListingHeading"
initialFilter=""
initialPageSize={10}
listingLimit={1}
noItemsFragment={
<div>
@ -68,6 +69,7 @@ exports[`after fetch initialFilter 1`] = `
findItems={[Function]}
headingId="dashboardListingHeading"
initialFilter="my dashboard"
initialPageSize={10}
listingLimit={1000}
noItemsFragment={
<div>
@ -169,6 +171,7 @@ exports[`after fetch renders call to action when no dashboards exist 1`] = `
findItems={[Function]}
headingId="dashboardListingHeading"
initialFilter=""
initialPageSize={10}
listingLimit={1}
noItemsFragment={
<div>
@ -270,6 +273,7 @@ exports[`after fetch renders table rows 1`] = `
findItems={[Function]}
headingId="dashboardListingHeading"
initialFilter=""
initialPageSize={10}
listingLimit={1000}
noItemsFragment={
<div>
@ -371,6 +375,7 @@ exports[`after fetch renders warning when listingLimit is exceeded 1`] = `
findItems={[Function]}
headingId="dashboardListingHeading"
initialFilter=""
initialPageSize={10}
listingLimit={1}
noItemsFragment={
<div>

View file

@ -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',
})
}

View file

@ -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) } }}
/>
@ -101,6 +102,7 @@ describe('after fetch', () => {
editItem={() => {}}
getViewUrl={() => {}}
listingLimit={1000}
initialPageSize={10}
hideWriteControls={false}
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
/>
@ -123,6 +125,7 @@ describe('after fetch', () => {
editItem={() => {}}
getViewUrl={() => {}}
listingLimit={1}
initialPageSize={10}
hideWriteControls={false}
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
/>
@ -145,6 +148,7 @@ describe('after fetch', () => {
editItem={() => {}}
getViewUrl={() => {}}
listingLimit={1}
initialPageSize={10}
hideWriteControls={true}
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
/>
@ -167,6 +171,7 @@ describe('after fetch', () => {
editItem={() => {}}
getViewUrl={() => {}}
listingLimit={1}
initialPageSize={10}
hideWriteControls={false}
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
/>