console: remove the interaction tests for FiltersSection

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5811
GitOrigin-RevId: 59e2e483cee5eb1273d4251c01f76552d289de4f
This commit is contained in:
Luca Restagno 2022-09-08 10:40:39 +02:00 committed by hasura-bot
parent e1b1bd0fd4
commit 527fc826e6

View File

@ -2,9 +2,6 @@ import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import { SelectItem } from '@/components/Common/SelectInputSplitField/SelectInputSplitField';
import { action } from '@storybook/addon-actions';
import { userEvent } from '@storybook/testing-library';
import { within } from '@testing-library/react';
import { expect } from '@storybook/jest';
import { FiltersSection } from './FiltersSection';
import { OperatorItem } from './FilterRow';
import { SortItem } from './SortRow';
@ -72,11 +69,15 @@ export const Primary: ComponentStory<typeof FiltersSection> = () => (
columns={columnOptions}
operators={operatorOptions}
orders={sortOptions}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
onExport={action('onExport') as any}
onSubmit={action('onSubmit')}
/>
);
// NOTE: Chromatic raises an error when this interaction tests are in place
/*
Primary.play = async ({ canvasElement }) => {
const canvas = within(canvasElement);
@ -157,4 +158,4 @@ Primary.play = async ({ canvasElement }) => {
// select asc order on the second row
userEvent.selectOptions(await canvas.findByDisplayValue('--'), 'asc');
};
}; */