Skip to content

Commit

Permalink
oct-2229: e2e update
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikolajczyk committed Jan 15, 2025
1 parent 621660a commit f4d26af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
8 changes: 0 additions & 8 deletions client/cypress/e2e/_15metrics.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ Object.values(viewports).forEach(
cy.get('[data-test=MetricsEpochHeader__title]')
.invoke('text')
.should('eq', isMobile || isTablet ? 'E3 Allocation' : 'Epoch 3 Allocation Window');
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__rightArrow]').click();
cy.get('[data-test=MetricsEpochHeader__title]')
.invoke('text')
.should('eq', isMobile || isTablet ? 'E3 Allocation' : 'Epoch 3 Allocation Window');
},
);

Expand Down Expand Up @@ -129,10 +125,6 @@ Object.values(viewports).forEach(
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__leftArrowSvg] path')
.then($el => $el.css('fill'))
.should('be.colored', '#ebebeb');
cy.get('[data-test=MetricsEpochHeader__NavigationArrows__leftArrow]').click();
cy.get('[data-test=MetricsEpochHeader__title]')
.invoke('text')
.should('eq', isMobile || isTablet ? 'E1 Allocation' : 'Epoch 1 Allocation Window');
},
);

Expand Down
4 changes: 3 additions & 1 deletion client/src/hooks/queries/donors/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { ProjectDonor } from './types';
export function mapDataToProjectDonors(data: Response): ProjectDonor[] {
return data
.reduce((acc, { address, amount }) => {
if (amount === '0') {return acc;}
if (amount === '0') {
return acc;
}
acc.push({ address, amount: parseUnitsBigInt(amount, 'wei') });
return acc;
}, [] as ProjectDonor[])
Expand Down
5 changes: 3 additions & 2 deletions client/synpress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import path from 'path';
export default defineConfig({
e2e: {
baseUrl: process.env.OCTANT_BASE_URL || 'http://localhost:5173',
defaultCommandTimeout: 60 * 1000,
defaultCommandTimeout: 30 * 1000,
setupNodeEvents(on, config) {
// eslint-disable-next-line no-param-reassign
config.env = { ...config.env, CI: process.env.CI };
Expand All @@ -29,7 +29,8 @@ export default defineConfig({
},
supportFile: 'cypress/support/index.ts',
},
numTestsKeptInMemory: 6,
experimentalMemoryManagement: true,
numTestsKeptInMemory: 2,
video: true,
viewportHeight: 1080,
viewportWidth: 1920,
Expand Down

0 comments on commit f4d26af

Please sign in to comment.