fixed cypress tests for tasks

This commit is contained in:
jasquat 2023-03-24 09:21:23 -04:00
parent 6f062de22f
commit 037d287f4f
No known key found for this signature in database
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.getBySel('form-nav-form2').click();
checkFormFieldIsReadOnly(
'get_user_generated_number_two',
'#root_user_generated_number_2'
);
cy.getBySel('form-nav-form1').click();
checkFormFieldIsReadOnly(
'get_user_generated_number_one',
'#root_user_generated_number_1'
);
cy.getBySel('form-nav-form3').click();
// TODO: remove this if we decide to completely kill form navigation
// cy.getBySel('form-nav-form2').click();
// checkFormFieldIsReadOnly(
// 'get_user_generated_number_two',
// '#root_user_generated_number_2'
// );
// cy.getBySel('form-nav-form1').click();
// checkFormFieldIsReadOnly(
// 'get_user_generated_number_one',
// '#root_user_generated_number_1'
// );
//
// cy.getBySel('form-nav-form3').click();
submitInputIntoFormField(
'get_user_generated_number_three',
'#root_user_generated_number_3',

View File

@ -141,7 +141,7 @@ export default function TaskListTable({
rowElements.push(
<td>
<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}`}
title={`View process instance ${processInstanceTask.process_instance_id}`}
>