mirror of
https://github.com/sartography/spiffworkflow-frontend.git
synced 2025-02-23 19:58:25 +00:00
frontend test fix
This commit is contained in:
parent
0f34698d06
commit
c6d221b9b3
@ -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 "$@"
|
||||
|
@ -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';
|
||||
|
@ -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();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user