fix label and comment artificial slowdown

This commit is contained in:
burnettk 2022-11-04 17:37:32 -04:00
parent a9449cf7ec
commit 6f0a50b60c
3 changed files with 9 additions and 2 deletions

View File

@ -30,7 +30,7 @@ describe('process-groups', () => {
newGroupDisplayName
);
cy.contains('Delete Process Group').click();
cy.contains('Delete').click();
cy.contains('Are you sure');
cy.getBySel('modal-confirmation-dialog').find('.cds--btn--danger').click();
cy.url().should('include', `process-groups`);

View File

@ -43,6 +43,13 @@ const updateBpmnPythonScriptWithMonaco = (
cy.contains('Launch Editor').click();
// sometimes, Loading... appears for more than 4 seconds. not sure why.
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')
.click()
.focused() // change subject to currently focused element

View File

@ -162,7 +162,7 @@ export default function ProcessGroupForm({
<ButtonWithConfirmation
description={`Delete Process Group ${processGroup.id}?`}
onConfirmation={deleteProcessGroup}
buttonLabel="Delete Process Group"
buttonLabel="Delete"
confirmButtonLabel="Delete"
/>
);