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

chore(NA): move missing canvas plugin tests out of __tests__ folder #87898

Merged
merged 1 commit into from
Jan 12, 2021
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
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down