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