fix label and comment artificial slowdown
This commit is contained in:
parent
05ada1591d
commit
4079c75b34
|
@ -30,7 +30,7 @@ describe('process-groups', () => {
|
||||||
newGroupDisplayName
|
newGroupDisplayName
|
||||||
);
|
);
|
||||||
|
|
||||||
cy.contains('Delete Process Group').click();
|
cy.contains('Delete').click();
|
||||||
cy.contains('Are you sure');
|
cy.contains('Are you sure');
|
||||||
cy.getBySel('modal-confirmation-dialog').find('.cds--btn--danger').click();
|
cy.getBySel('modal-confirmation-dialog').find('.cds--btn--danger').click();
|
||||||
cy.url().should('include', `process-groups`);
|
cy.url().should('include', `process-groups`);
|
||||||
|
|
|
@ -43,6 +43,13 @@ const updateBpmnPythonScriptWithMonaco = (
|
||||||
cy.contains('Launch Editor').click();
|
cy.contains('Launch Editor').click();
|
||||||
// sometimes, Loading... appears for more than 4 seconds. not sure why.
|
// sometimes, Loading... appears for more than 4 seconds. not sure why.
|
||||||
cy.contains('Loading...').should('not.exist');
|
cy.contains('Loading...').should('not.exist');
|
||||||
|
|
||||||
|
// the delay 30 is because, at some point, monaco started automatically
|
||||||
|
// adding a second double quote when we type a double quote. when it does
|
||||||
|
// that, there is a race condition where it sometimes gets in more text
|
||||||
|
// before the second double quote appears because the robot is typing faster
|
||||||
|
// than a human being could, so we artificially slow it down to make it more
|
||||||
|
// human.
|
||||||
cy.get('.monaco-editor textarea:first')
|
cy.get('.monaco-editor textarea:first')
|
||||||
.click()
|
.click()
|
||||||
.focused() // change subject to currently focused element
|
.focused() // change subject to currently focused element
|
||||||
|
|
|
@ -162,7 +162,7 @@ export default function ProcessGroupForm({
|
||||||
<ButtonWithConfirmation
|
<ButtonWithConfirmation
|
||||||
description={`Delete Process Group ${processGroup.id}?`}
|
description={`Delete Process Group ${processGroup.id}?`}
|
||||||
onConfirmation={deleteProcessGroup}
|
onConfirmation={deleteProcessGroup}
|
||||||
buttonLabel="Delete Process Group"
|
buttonLabel="Delete"
|
||||||
confirmButtonLabel="Delete"
|
confirmButtonLabel="Delete"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue