Skip to content

Commit

Permalink
oct-2136: unnecessary code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikolajczyk committed Jan 19, 2025
1 parent 5e6fb87 commit 0b042b2
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions client/cypress/e2e/group3/_02allocationAWOpen.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,9 @@ Object.values(viewports).forEach(
cy.get('[data-test=ProjectsListItem__ButtonAddToAllocate]').eq(2).click();
if (isLargeDesktop || isDesktop) {
cy.get('[data-test=LayoutTopBar__numberOfAllocations]').should('be.visible');
// cy.get('[data-test=LayoutTopBar__numberOfAllocations]').invoke('text').should('eq', '3');
cy.get('[data-test=LayoutTopBar__allocationButton]').click();
} else {
cy.get('[data-test=LayoutNavbar__numberOfAllocations]').should('be.visible');
// cy.get('[data-test=LayoutNavbar__numberOfAllocations]').invoke('text').should('eq', '3');
cy.get('[data-test=LayoutNavbar__Button--allocate]').click();
}

Expand Down Expand Up @@ -206,7 +204,6 @@ Object.values(viewports).forEach(
cy.confirmMetamaskDataSignatureRequest();
cy.wait(1000);
cy.get('[data-test=AllocationSummary]').should('exist');
// cy.get('[data-test=AllocationSummaryProject]').should('have.length', 3);
cy.wait(1000);
cy.get('[data-test=AllocationSummary__totalDonated]').scrollIntoView();
cy.get('[data-test=AllocationSummary__totalDonated]').should('be.visible');
Expand Down Expand Up @@ -245,14 +242,10 @@ Object.values(viewports).forEach(
}
cy.wait(1000);
cy.get('[data-test=HomeGridDonations__numberOfAllocations]').should('be.visible');
// cy.get('[data-test=HomeGridDonations__numberOfAllocations]')
// .invoke('text')
// .should('eq', '3');

cy.get('[data-test=HomeGridDonations__noDonationsYet]').should('not.exist');
cy.get('[data-test=HomeGridDonations__Button--edit]').should('be.visible');
cy.get('[data-test=DonationsList]').should('be.visible');
// cy.get('[data-test=DonationsList__item]').should('have.length', 3);
cy.get('[data-test=DonationsList__item__value]').each($donationListItemValue => {
expect(parseFloat(`${$donationListItemValue.text()}`.replace('<', ''))).to.be.gt(0);
});
Expand All @@ -272,8 +265,7 @@ Object.values(viewports).forEach(
cy.get('[data-test=TransactionDetailsAllocation__allocationProjects__label]').should(
'be.visible',
);
// .invoke('text')
// .should('eq', 'Projects (3)');

cy.get('[data-test=TransactionDetailsAllocation__allocationProjects]').should(
'be.visible',
);
Expand All @@ -287,7 +279,6 @@ Object.values(viewports).forEach(
cy.get('[data-test=TransactionDetailsAllocation__projects]').scrollIntoView();
cy.get('[data-test=TransactionDetailsAllocation__projects]').should('be.visible');
cy.get('[data-test=TransactionDetailsAllocation__when]').should('be.visible');
// cy.get('[data-test=ProjectAllocationDetailRow]').should('have.length', 3);
});
});
});
Expand All @@ -297,14 +288,10 @@ Object.values(viewports).forEach(
cy.wait(5000);

cy.get('[data-test=HomeGridDonations__numberOfAllocations]').should('be.visible');
// cy.get('[data-test=HomeGridDonations__numberOfAllocations]')
// .invoke('text')
// .should('eq', '3');

cy.get('[data-test=HomeGridDonations__noDonationsYet]').should('not.exist');
cy.get('[data-test=HomeGridDonations__Button--edit]').should('be.visible');
cy.get('[data-test=DonationsList]').should('be.visible');
// cy.get('[data-test=DonationsList__item]').should('have.length', 3);

cy.get('[data-test=TransactionsListItem__title]')
.eq(0)
Expand All @@ -313,11 +300,9 @@ Object.values(viewports).forEach(

if (isLargeDesktop || isDesktop) {
cy.get('[data-test=LayoutTopBar__numberOfAllocations]').should('be.visible');
// cy.get('[data-test=LayoutTopBar__numberOfAllocations]').invoke('text').should('eq', '3');
cy.get('[data-test=LayoutTopBar__allocationButton]').click();
} else {
cy.get('[data-test=LayoutNavbar__numberOfAllocations]').should('be.visible');
// cy.get('[data-test=LayoutNavbar__numberOfAllocations]').invoke('text').should('eq', '3');
cy.get('[data-test=LayoutNavbar__Button--allocate]').click();
}
cy.wait(1000);
Expand Down

0 comments on commit 0b042b2

Please sign in to comment.