Sha256: 742d299ec9e85e3f10347fe8cdf834860ee25d7bd419c516e874dbb4afd5779c

Contents?: true

Size: 1010 Bytes

Versions: 59

Compression:

Stored size: 1010 Bytes

Contents

import React from 'react';
import { render, screen } from '@testing-library/react';
import '@testing-library/jest-dom';
import ImportRolesAndVariablesTable from '../AnsibleRolesAndVariables';

const rowsData = [
  {
    cells: [
      'bennojoy.ntp',
      'Update Role Variables',
      'Add: 1 Remove: 2 ',
      '',
      '',
    ],
    kind: 'old',
    id: 'bennojoy.ntp',
  },
  {
    cells: ['0ta2.git_role', 'Import Role ', 'Add: 5 ', '', ''],
    kind: 'new',
    id: '0ta2.git_role',
  },
];

const columnsData = [
  { title: 'Name' },
  { title: 'Operation' },
  { title: 'Variables' },
  { title: 'Hosts Count' },
  { title: 'Hostgroups count' },
];

describe('ImportRolesAndVariablesTable', () => {
  it('should render', () => {
    render(
      <ImportRolesAndVariablesTable
        rowsData={rowsData}
        columnsData={columnsData}
      />
    );
    expect(screen.getByText('bennojoy.ntp')).toBeInTheDocument();
    expect(screen.getByText('0ta2.git_role')).toBeInTheDocument();
  });
});

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
foreman_ansible-15.0.3 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-15.0.2 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-15.0.1 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-15.0.0 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-14.2.2 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-14.2.1 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-13.0.7 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-14.2.0 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-14.1.1 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-14.1.0 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-13.0.5 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-14.0.0 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-13.0.4 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-13.0.3 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-13.0.2 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-13.0.1 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-13.0.0 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-12.0.7 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-10.4.4 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js
foreman_ansible-7.1.8 webpack/components/AnsibleRolesAndVariables/__test__/AnsibleRolesAndVariablesImport.test.js