Skip to content

Commit

Permalink
#2490: removed test
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-may committed Jul 9, 2024
1 parent c4000de commit 59325f8
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions e2e-tests/cypress/e2e/approver/approver_conf_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,4 @@ describe('Approver Config Tests', () => {
});
});

it('only one row can be expanded', function () {
cy.request('POST', `/admin/projects/proj1/users/user1/roles/ROLE_PROJECT_APPROVER`);
cy.request('POST', `/admin/projects/proj1/users/user2/roles/ROLE_PROJECT_APPROVER`);

cy.visit('/administrator/projects/proj1/self-report/configure');
const user1 = 'user1'
const user2 = 'user2'
cy.get(`[data-cy="workloadCell_${user1}"] [data-cy="editApprovalBtn"]`).click()
cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="noUserConf"]`).should('exist')

cy.get(`[data-cy="workloadCell_${user2}"] [data-cy="editApprovalBtn"]`).click()
cy.get(`[data-cy="expandedChild_${user2}"] [data-cy="noUserConf"]`).should('exist')
cy.get(`[data-cy="expandedChild_${user1}"] [data-cy="noUserConf"]`).should('not.exist')
});
});

0 comments on commit 59325f8

Please sign in to comment.