mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Remove plus button job output
Remove plus button job output since this feature was not implemented yet. And it will be evaluated for a future release. See: https://github.com/ansible/awx/issues/6613
This commit is contained in:
@@ -4,7 +4,6 @@ import React from 'react';
|
|||||||
import { t } from '@lingui/macro';
|
import { t } from '@lingui/macro';
|
||||||
import { Button as PFButton } from '@patternfly/react-core';
|
import { Button as PFButton } from '@patternfly/react-core';
|
||||||
import {
|
import {
|
||||||
PlusIcon,
|
|
||||||
AngleDoubleUpIcon,
|
AngleDoubleUpIcon,
|
||||||
AngleDoubleDownIcon,
|
AngleDoubleDownIcon,
|
||||||
AngleUpIcon,
|
AngleUpIcon,
|
||||||
@@ -17,6 +16,7 @@ const Wrapper = styled.div`
|
|||||||
height: 35px;
|
height: 35px;
|
||||||
outline: 1px solid #d7d7d7;
|
outline: 1px solid #d7d7d7;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
justify-content: flex-end;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Button = styled(PFButton)`
|
const Button = styled(PFButton)`
|
||||||
@@ -31,14 +31,6 @@ const PageControls = ({
|
|||||||
onScrollPrevious,
|
onScrollPrevious,
|
||||||
}) => (
|
}) => (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
<Button
|
|
||||||
ouiaId="job-output-expand-collapse-lines-button"
|
|
||||||
aria-label={t`Toggle expand/collapse event lines`}
|
|
||||||
variant="plain"
|
|
||||||
css="margin-right: auto"
|
|
||||||
>
|
|
||||||
<PlusIcon />
|
|
||||||
</Button>
|
|
||||||
<Button
|
<Button
|
||||||
ouiaId="job-output-scroll-previous-button"
|
ouiaId="job-output-scroll-previous-button"
|
||||||
aria-label={t`Scroll previous`}
|
aria-label={t`Scroll previous`}
|
||||||
|
|||||||
@@ -3,14 +3,12 @@ import { mountWithContexts } from '../../../../testUtils/enzymeHelpers';
|
|||||||
import PageControls from './PageControls';
|
import PageControls from './PageControls';
|
||||||
|
|
||||||
let wrapper;
|
let wrapper;
|
||||||
let PlusIcon;
|
|
||||||
let AngleDoubleUpIcon;
|
let AngleDoubleUpIcon;
|
||||||
let AngleDoubleDownIcon;
|
let AngleDoubleDownIcon;
|
||||||
let AngleUpIcon;
|
let AngleUpIcon;
|
||||||
let AngleDownIcon;
|
let AngleDownIcon;
|
||||||
|
|
||||||
const findChildren = () => {
|
const findChildren = () => {
|
||||||
PlusIcon = wrapper.find('PlusIcon');
|
|
||||||
AngleDoubleUpIcon = wrapper.find('AngleDoubleUpIcon');
|
AngleDoubleUpIcon = wrapper.find('AngleDoubleUpIcon');
|
||||||
AngleDoubleDownIcon = wrapper.find('AngleDoubleDownIcon');
|
AngleDoubleDownIcon = wrapper.find('AngleDoubleDownIcon');
|
||||||
AngleUpIcon = wrapper.find('AngleUpIcon');
|
AngleUpIcon = wrapper.find('AngleUpIcon');
|
||||||
@@ -26,7 +24,6 @@ describe('PageControls', () => {
|
|||||||
test('should render menu control icons', () => {
|
test('should render menu control icons', () => {
|
||||||
wrapper = mountWithContexts(<PageControls />);
|
wrapper = mountWithContexts(<PageControls />);
|
||||||
findChildren();
|
findChildren();
|
||||||
expect(PlusIcon.length).toBe(1);
|
|
||||||
expect(AngleDoubleUpIcon.length).toBe(1);
|
expect(AngleDoubleUpIcon.length).toBe(1);
|
||||||
expect(AngleDoubleDownIcon.length).toBe(1);
|
expect(AngleDoubleDownIcon.length).toBe(1);
|
||||||
expect(AngleUpIcon.length).toBe(1);
|
expect(AngleUpIcon.length).toBe(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user