Skip to content

Commit

Permalink
#2517 - fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rmmayo committed Jan 9, 2025
1 parent 65cfb22 commit 778e978
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions e2e-tests/cypress/e2e/approver/approver_role_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ describe('Approver Role Tests', () => {
const approvalHistoryTableSelector = '[data-cy="selfReportApprovalHistoryTable"]';

cy.get('[data-cy="skillsReportApprovalTable"] [data-p-index="0"] [data-pc-name="rowcheckbox"]').click()
cy.get('[data-cy="approveBtn"]')
.click();
cy.get('[data-cy="approveBtn"]').click();
cy.get('[data-cy="saveDialogBtn"]').click();
cy.validateTable(approvalHistoryTableSelector, [
[{
colIndex: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -886,8 +886,8 @@ describe('Self Report Approval History Tests', () => {
.contains(('There are no records to show'));

cy.get('[data-p-index="0"] [data-pc-name="rowcheckbox"]').click()
cy.get('[data-cy="approveBtn"]')
.click();
cy.get('[data-cy="approveBtn"]').click();
cy.get('[data-cy="saveDialogBtn"]').click();
cy.validateTable(approvalHistoryTableSelector, [
[{
colIndex: 0,
Expand Down Expand Up @@ -923,9 +923,8 @@ describe('Self Report Approval History Tests', () => {
cy.wait(1000);

cy.get('[data-p-index="0"] [data-pc-name="rowcheckbox"]').click()
cy.get('[data-cy="approveBtn"]')
.click();

cy.get('[data-cy="approveBtn"]').click();
cy.get('[data-cy="saveDialogBtn"]').click();

cy.validateTable(approvalHistoryTableSelector, [
[{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ describe('Modifications not permitted when upgrade in progress is configured', (

cy.get('[data-cy="skillsReportApprovalTable"] [data-p-index="1"] [data-pc-name="rowcheckbox"]').click()
cy.get('[data-cy="approveBtn"]').click();
cy.get('[data-cy="saveDialogBtn"]').click();

cy.wait('@saveEndpoint')

Expand Down

0 comments on commit 778e978

Please sign in to comment.