Add cancel button to workflow job output (#12338)

Add cancel button to workflow job output

See: https://github.com/ansible/awx/issues/10514
This commit is contained in:
Kersom
2022-06-09 20:16:07 -04:00
committed by GitHub
parent a3e86dcd73
commit 23aaf5b3ad
3 changed files with 24 additions and 3 deletions

View File

@@ -10,7 +10,12 @@ let wrapper;
const dispatch = jest.fn();
const job = {
id: 1,
status: 'successful',
status: 'running',
summary_fields: {
user_capabilities: {
start: true,
},
},
};
const workflowContext = {
nodes: [],
@@ -49,6 +54,7 @@ describe('WorkflowOutputToolbar', () => {
shouldFind('Button#workflow-output-toggle-legend');
shouldFind('Badge');
shouldFind('Button#workflow-output-toggle-tools');
shouldFind('JobCancelButton');
});
test('Shows correct number of nodes', () => {