diff --git a/client/cypress/e2e/group3/_02allocationAWOpen.cy.ts b/client/cypress/e2e/group3/_02allocationAWOpen.cy.ts index 59a5acc92..15042f181 100644 --- a/client/cypress/e2e/group3/_02allocationAWOpen.cy.ts +++ b/client/cypress/e2e/group3/_02allocationAWOpen.cy.ts @@ -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(); } @@ -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'); @@ -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); }); @@ -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', ); @@ -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); }); }); }); @@ -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) @@ -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);