Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VRT] Add reference images for recently added stories #7730

Merged
merged 4 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/components/datagrid/data_grid.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import type {
} from './data_grid_types';
import { EuiDataGrid } from './data_grid';

faker.seed(42);
mgadewoll marked this conversation as resolved.
Show resolved Hide resolved

const dataKeys = [
'name',
'email',
Expand All @@ -36,6 +38,7 @@ const dataKeys = [
const raw_data = Array.from({ length: 10 }).map(() => {
const email = faker.internet.email();
const name = `${faker.person.lastName()}, ${faker.person.firstName()}`;
const date = faker.date.past().toDateString();
mgadewoll marked this conversation as resolved.
Show resolved Hide resolved
const suffix = faker.person.suffix();
return {
name: {
Expand All @@ -52,7 +55,7 @@ const raw_data = Array.from({ length: 10 }).map(() => {
<EuiLink href="https://google.com">{faker.location.country()}</EuiLink>
</>
),
date: `${faker.date.past()}`,
date: `${date}`,
account: faker.finance.accountNumber(),
version: faker.system.semver(),
};
Expand Down
7 changes: 7 additions & 0 deletions src/components/portal/portal.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@
import React, { useState } from 'react';
import type { Meta, StoryObj } from '@storybook/react';

import { LOKI_SELECTORS } from '../../../.storybook/loki';
import { EuiButton } from '../button';
import { EuiSpacer } from '../spacer';
import { EuiPortal, EuiPortalProps } from './portal';

const meta: Meta<EuiPortalProps> = {
title: 'Utilities/EuiPortal',
component: EuiPortal,
parameters: {
loki: {
// content rendered in portal
chromeSelector: LOKI_SELECTORS.portal,
},
},
argTypes: {
children: { control: 'text' },
},
Expand Down
7 changes: 7 additions & 0 deletions src/components/responsive/show_for.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ import { EuiShowFor, EuiShowForProps } from './show_for';
const meta: Meta<EuiShowForProps> = {
title: 'Utilities/EuiShowFor',
component: EuiShowFor,
parameters: {
loki: {
// EuiShowFor may render null resulting in Loki failing
// to find an element to snapshot
skip: true,
},
},
};

export default meta;
Expand Down
Loading