Skip to content

Commit

Permalink
oct-2130: cr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikolajczyk committed Dec 19, 2024
1 parent b835fb1 commit 06c95c2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
32 changes: 19 additions & 13 deletions client/cypress/e2e/_16allocationAWOpen.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ Object.values(viewports).forEach(
// TODO: Run for all devices after OCT-2283 (https://linear.app/golemfoundation/issue/OCT-2283/personal-allocation-arent-available-to-withdraw-in-pr-e2e-environment)
if (idx === 0) {
it('User doesn`t have personal rewards, can`t witdraw and can check pending tooltip', () => {
cy.get('[data-test=HomeGridPersonalAllocation--current]').should('be.visible');
cy.get('[data-test=HomeGridPersonalAllocation--current__primary]')
cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current]').should(
'be.visible',
);
cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current__primary]')
.invoke('text')
.should('eq', '0 ETH');

Expand Down Expand Up @@ -67,8 +69,10 @@ Object.values(viewports).forEach(
connectWallet({ isPatronModeEnabled: false });
cy.wait(5000);

cy.get('[data-test=HomeGridPersonalAllocation--current]').should('be.visible');
cy.get('[data-test=HomeGridPersonalAllocation--current__primary]')
cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current]').should(
'be.visible',
);
cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current__primary]')
.invoke('text')
.should('eq', '0 ETH');

Expand Down Expand Up @@ -514,8 +518,8 @@ Object.values(viewports).forEach(
connectWallet({ isPatronModeEnabled: false });
cy.wait(5000);

cy.get('[data-test=HomeGridPersonalAllocation--current]').should('be.visible');
cy.get('[data-test=HomeGridPersonalAllocation--current__primary]')
cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current]').should('be.visible');
cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current__primary]')
.invoke('text')
.should('eq', '0 ETH');

Expand Down Expand Up @@ -686,8 +690,10 @@ Object.values(viewports).forEach(
connectWallet({ isPatronModeEnabled: false });
cy.wait(5000);

cy.get('[data-test=HomeGridPersonalAllocation--current]').should('be.visible');
cy.get('[data-test=HomeGridPersonalAllocation--current__primary]')
cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current]').should(
'be.visible',
);
cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current__primary]')
.invoke('text')
.should('eq', '0 ETH');

Expand Down Expand Up @@ -757,8 +763,8 @@ Object.values(viewports).forEach(
// connectWallet({ isPatronModeEnabled: false });
// cy.wait(5000);

// cy.get('[data-test=HomeGridPersonalAllocation--current]').should('be.visible');
// cy.get('[data-test=HomeGridPersonalAllocation--current__primary]')
// cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current]').should('be.visible');
// cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current__primary]')
// .invoke('text')
// .should('not.eq', '0 ETH');

Expand Down Expand Up @@ -788,7 +794,7 @@ Object.values(viewports).forEach(
// cy.confirmMetamaskTransaction({ gasConfig: 'aggressive' });
// cy.wait(2500);

// cy.get('[data-test=HomeGridPersonalAllocation--current__DoubleValueSkeleton]').should(
// cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current__DoubleValueSkeleton]').should(
// 'not.exist',
// );
// cy.get('[data-test=HomeGridPersonalAllocation--pending__DoubleValueSkeleton]').should(
Expand All @@ -797,8 +803,8 @@ Object.values(viewports).forEach(

// cy.wait(1000);

// cy.get('[data-test=HomeGridPersonalAllocation--current]').should('be.visible');
// cy.get('[data-test=HomeGridPersonalAllocation--current__primary]')
// cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current]').should('be.visible');
// cy.get('[data-test=HomeGridPersonalAllocation__DoubleValue--current__primary]')
// .invoke('text')
// .should('eq', '0 ETH');

Expand Down
2 changes: 0 additions & 2 deletions client/cypress/utils/moveTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ export const moveTime = (
waitForLoadersToDisappear();
// reload is needed to get updated data in the app
cy.reload();
} else if (moveTo === 'decisionWindowClosed') {
return cy.reload();
}

if (moveTo === 'nextEpochDecisionWindowOpen') {
Expand Down

0 comments on commit 06c95c2

Please sign in to comment.