chore(NA): move missing canvas plugin tests out of __tests__ folder (#87898)
This commit is contained in:
parent
44ccf285e5
commit
47cac6c401
|
@ -6,11 +6,11 @@
|
|||
|
||||
import { mount } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { JestContext } from '../../../test/context_jest';
|
||||
import { getScrubber as scrubber, getPageControlsCenter as center } from '../../../test/selectors';
|
||||
import { Footer } from '../footer';
|
||||
import { JestContext } from '../../test/context_jest';
|
||||
import { getScrubber as scrubber, getPageControlsCenter as center } from '../../test/selectors';
|
||||
import { Footer } from './footer';
|
||||
|
||||
jest.mock('../../../supported_renderers');
|
||||
jest.mock('../../supported_renderers');
|
||||
|
||||
describe('<Footer />', () => {
|
||||
test('null workpad renders nothing', () => {
|
|
@ -6,15 +6,15 @@
|
|||
|
||||
import { mount } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { JestContext } from '../../../test/context_jest';
|
||||
import { JestContext } from '../../test/context_jest';
|
||||
import {
|
||||
getPageControlsPrevious as previous,
|
||||
getPageControlsCenter as current,
|
||||
getPageControlsNext as next,
|
||||
} from '../../../test/selectors';
|
||||
import { PageControls } from '../page_controls';
|
||||
} from '../../test/selectors';
|
||||
import { PageControls } from './page_controls';
|
||||
|
||||
jest.mock('../../../supported_renderers');
|
||||
jest.mock('../../supported_renderers');
|
||||
|
||||
describe('<PageControls />', () => {
|
||||
test('null workpad renders nothing', () => {
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
import { mount } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { JestContext } from '../../../test/context_jest';
|
||||
import { PagePreview } from '../page_preview';
|
||||
import { getRenderedElement as element } from '../../../test/selectors';
|
||||
import { JestContext } from '../../test/context_jest';
|
||||
import { PagePreview } from './page_preview';
|
||||
import { getRenderedElement as element } from '../../test/selectors';
|
||||
|
||||
jest.mock('../../../supported_renderers');
|
||||
jest.mock('../../supported_renderers');
|
||||
|
||||
describe('<PagePreview />', () => {
|
||||
test('null workpad renders nothing', () => {
|
|
@ -6,14 +6,14 @@
|
|||
|
||||
import { mount } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { JestContext } from '../../../test/context_jest';
|
||||
import { Scrubber } from '../scrubber';
|
||||
import { JestContext } from '../../test/context_jest';
|
||||
import { Scrubber } from './scrubber';
|
||||
import {
|
||||
getScrubberSlideContainer as container,
|
||||
getRenderedElement as element,
|
||||
} from '../../../test/selectors';
|
||||
} from '../../test/selectors';
|
||||
|
||||
jest.mock('../../../supported_renderers');
|
||||
jest.mock('../../supported_renderers');
|
||||
|
||||
describe('<Scrubber />', () => {
|
||||
test('null workpad renders nothing', () => {
|
|
@ -6,15 +6,15 @@
|
|||
|
||||
import { mount } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { JestContext } from '../../../../test/context_jest';
|
||||
import { JestContext } from '../../../test/context_jest';
|
||||
import {
|
||||
getAutoplayTextField as input,
|
||||
getAutoplayCheckbox as checkbox,
|
||||
getAutoplaySubmit as submit,
|
||||
} from '../../../../test/selectors';
|
||||
import { AutoplaySettings } from '../autoplay_settings';
|
||||
} from '../../../test/selectors';
|
||||
import { AutoplaySettings } from './autoplay_settings';
|
||||
|
||||
jest.mock('../../../../supported_renderers');
|
||||
jest.mock('../../../supported_renderers');
|
||||
|
||||
describe('<AutoplaySettings />', () => {
|
||||
const wrapper = mount(
|
|
@ -6,18 +6,18 @@
|
|||
|
||||
import { mount, ReactWrapper } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { JestContext } from '../../../../test/context_jest';
|
||||
import { takeMountedSnapshot } from '../../../../test';
|
||||
import { openSettings, selectMenuItem } from '../../../../test/interactions';
|
||||
import { JestContext } from '../../../test/context_jest';
|
||||
import { takeMountedSnapshot } from '../../../test';
|
||||
import { openSettings, selectMenuItem } from '../../../test/interactions';
|
||||
import {
|
||||
getSettingsTrigger as trigger,
|
||||
getPopover as popover,
|
||||
getPortal as portal,
|
||||
getContextMenuItems as menuItems,
|
||||
} from '../../../../test/selectors';
|
||||
import { Settings } from '../settings';
|
||||
} from '../../../test/selectors';
|
||||
import { Settings } from './settings';
|
||||
|
||||
jest.mock('../../../../supported_renderers');
|
||||
jest.mock('../../../supported_renderers');
|
||||
jest.mock(`@elastic/eui/lib/components/form/form_row/make_id`, () => () => `generated-id`);
|
||||
jest.mock('@elastic/eui/lib/services/accessibility', () => {
|
||||
return {
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
import { mount } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { JestContext } from '../../../../test/context_jest';
|
||||
import { getToolbarCheckbox as checkbox } from '../../../../test/selectors';
|
||||
import { ToolbarSettings } from '../toolbar_settings';
|
||||
import { JestContext } from '../../../test/context_jest';
|
||||
import { getToolbarCheckbox as checkbox } from '../../../test/selectors';
|
||||
import { ToolbarSettings } from './toolbar_settings';
|
||||
|
||||
jest.mock('../../../../supported_renderers');
|
||||
jest.mock('../../../supported_renderers');
|
||||
|
||||
describe('<ToolbarSettings />', () => {
|
||||
const wrapper = mount(
|
|
@ -6,10 +6,10 @@
|
|||
|
||||
import { mount } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { JestContext } from '../../../test/context_jest';
|
||||
import { Title } from '../title';
|
||||
import { JestContext } from '../../test/context_jest';
|
||||
import { Title } from './title';
|
||||
|
||||
jest.mock('../../../supported_renderers');
|
||||
jest.mock('../../supported_renderers');
|
||||
|
||||
describe('<Title />', () => {
|
||||
test('null workpad renders nothing', () => {
|
Loading…
Reference in a new issue