fixed cypress tests for tasks

This commit is contained in:
jasquat 2023-03-24 09:21:23 -04:00
parent c47f53d25f
commit a6e7678a1d
2 changed files with 14 additions and 13 deletions

View File

@ -50,18 +50,19 @@ describe('tasks', () => {
); );
cy.contains('Task: get_user_generated_number_three'); cy.contains('Task: get_user_generated_number_three');
cy.getBySel('form-nav-form2').click(); // TODO: remove this if we decide to completely kill form navigation
checkFormFieldIsReadOnly( // cy.getBySel('form-nav-form2').click();
'get_user_generated_number_two', // checkFormFieldIsReadOnly(
'#root_user_generated_number_2' // 'get_user_generated_number_two',
); // '#root_user_generated_number_2'
cy.getBySel('form-nav-form1').click(); // );
checkFormFieldIsReadOnly( // cy.getBySel('form-nav-form1').click();
'get_user_generated_number_one', // checkFormFieldIsReadOnly(
'#root_user_generated_number_1' // 'get_user_generated_number_one',
); // '#root_user_generated_number_1'
// );
cy.getBySel('form-nav-form3').click(); //
// cy.getBySel('form-nav-form3').click();
submitInputIntoFormField( submitInputIntoFormField(
'get_user_generated_number_three', 'get_user_generated_number_three',
'#root_user_generated_number_3', '#root_user_generated_number_3',

View File

@ -141,7 +141,7 @@ export default function TaskListTable({
rowElements.push( rowElements.push(
<td> <td>
<Link <Link
data-qa="process-instance-show-link" data-qa="process-instance-show-link-id"
to={`/admin/process-instances/for-me/${modifiedProcessModelIdentifier}/${processInstanceTask.process_instance_id}`} to={`/admin/process-instances/for-me/${modifiedProcessModelIdentifier}/${processInstanceTask.process_instance_id}`}
title={`View process instance ${processInstanceTask.process_instance_id}`} title={`View process instance ${processInstanceTask.process_instance_id}`}
> >