mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02:30
Fix existing test failures
This commit is contained in:
@@ -6,23 +6,23 @@ describe('JobStatusIcon', () => {
|
|||||||
test('renders the successful job', () => {
|
test('renders the successful job', () => {
|
||||||
const wrapper = mount(<JobStatusIcon status="successful" />);
|
const wrapper = mount(<JobStatusIcon status="successful" />);
|
||||||
expect(wrapper).toHaveLength(1);
|
expect(wrapper).toHaveLength(1);
|
||||||
expect(wrapper.find('JobStatusIcon__SuccessfulTop')).toHaveLength(1);
|
expect(wrapper.find('StatusIcon__SuccessfulTop')).toHaveLength(1);
|
||||||
expect(wrapper.find('JobStatusIcon__SuccessfulBottom')).toHaveLength(1);
|
expect(wrapper.find('StatusIcon__SuccessfulBottom')).toHaveLength(1);
|
||||||
});
|
});
|
||||||
test('renders running job', () => {
|
test('renders running job', () => {
|
||||||
const wrapper = mount(<JobStatusIcon status="running" />);
|
const wrapper = mount(<JobStatusIcon status="running" />);
|
||||||
expect(wrapper).toHaveLength(1);
|
expect(wrapper).toHaveLength(1);
|
||||||
expect(wrapper.find('JobStatusIcon__RunningJob')).toHaveLength(1);
|
expect(wrapper.find('StatusIcon__RunningJob')).toHaveLength(1);
|
||||||
});
|
});
|
||||||
test('renders waiting job', () => {
|
test('renders waiting job', () => {
|
||||||
const wrapper = mount(<JobStatusIcon status="waiting" />);
|
const wrapper = mount(<JobStatusIcon status="waiting" />);
|
||||||
expect(wrapper).toHaveLength(1);
|
expect(wrapper).toHaveLength(1);
|
||||||
expect(wrapper.find('JobStatusIcon__WaitingJob')).toHaveLength(1);
|
expect(wrapper.find('StatusIcon__WaitingJob')).toHaveLength(1);
|
||||||
});
|
});
|
||||||
test('renders failed job', () => {
|
test('renders failed job', () => {
|
||||||
const wrapper = mount(<JobStatusIcon status="failed" />);
|
const wrapper = mount(<JobStatusIcon status="failed" />);
|
||||||
expect(wrapper).toHaveLength(1);
|
expect(wrapper).toHaveLength(1);
|
||||||
expect(wrapper.find('JobStatusIcon__FailedTop')).toHaveLength(1);
|
expect(wrapper.find('StatusIcon__FailedTop')).toHaveLength(1);
|
||||||
expect(wrapper.find('JobStatusIcon__FailedBottom')).toHaveLength(1);
|
expect(wrapper.find('StatusIcon__FailedBottom')).toHaveLength(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user