Skip to content

Commit

Permalink
Final EuiDataGrid VRT updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Sep 10, 2024
1 parent 6e15e64 commit 34eb709
Show file tree
Hide file tree
Showing 22 changed files with 4 additions and 3 deletions.
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.
2 changes: 1 addition & 1 deletion packages/eui/.storybook/loki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const LOKI_SELECTORS = {
/**
* Portal element content selector
*/
portal: '#storybook-root',
portal: '#storybook-root > *',
} as const;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import React, { useState } from 'react';
import { fireEvent, within } from '@storybook/test';
import { fireEvent, waitFor, within } from '@storybook/test';
import type { Meta, StoryObj, ReactRenderer } from '@storybook/react';
import type { PlayFunctionContext } from '@storybook/csf';
import { LOKI_SELECTORS } from '../../../../.storybook/loki';
Expand Down Expand Up @@ -47,7 +47,7 @@ const dataGridProps: EuiDataGridProps = {
export const FullScreenWithHeader: Story = {
tags: ['vrt-only'],
parameters: {
loki: { chromeSelector: LOKI_SELECTORS.body },
loki: { chromeSelector: LOKI_SELECTORS.portal },
},
render: () => (
<>
Expand All @@ -59,6 +59,7 @@ export const FullScreenWithHeader: Story = {
),
play: async ({ canvasElement }: PlayFunctionContext<ReactRenderer>) => {
const canvas = within(canvasElement);
await waitFor(() => canvas.getByLabelText('Enter fullscreen'));
await fireEvent.click(canvas.getByLabelText('Enter fullscreen'));
},
};
Expand Down

0 comments on commit 34eb709

Please sign in to comment.