frontend test fix

This commit is contained in:
burnettk 2022-09-15 14:19:44 -04:00
parent 0f34698d06
commit c6d221b9b3
3 changed files with 6 additions and 5 deletions

View File

@ -12,4 +12,6 @@ if [[ -z "$command" ]]; then
command=open
fi
./node_modules/.bin/cypress "$command" --e2e --browser chrome
shift
./node_modules/.bin/cypress "$command" --e2e --browser chrome "$@"

View File

@ -44,7 +44,8 @@ const updateBpmnPythonScriptWithMonaco = (
cy.get('.monaco-editor textarea:first')
.click()
.focused() // change subject to currently focused element
.type('{ctrl}a')
// .type('{ctrl}a') // had been doing it this way, but it turns out to be flaky relative to clear()
.clear()
.type(pythonScript);
cy.contains('Close').click();
@ -108,8 +109,6 @@ describe('process-instances', () => {
});
it('can create a new instance and can modify with monaco text editor', () => {
const dmnOutputForKevin = 'Very wonderful';
const dmnOutputForMike = 'Powerful wonderful';
const originalPythonScript = 'person = "Kevin"';
const newPythonScript = 'person = "Mike"';
const bpmnFile = 'process_model_one.bpmn';

View File

@ -13,7 +13,7 @@ const checkTaskHasClass = (taskName, className) => {
cy.get(`g[data-element-id=${taskName}]`).should('have.class', className);
};
describe('process-models', () => {
describe('tasks', () => {
beforeEach(() => {
cy.login();
});