Skip to content

Commit

Permalink
fix(drawerMenu): increase swip area width
Browse files Browse the repository at this point in the history
  • Loading branch information
Clm-Roig committed Dec 11, 2023
1 parent 31949d3 commit be99ea5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/trackers/selectedDate.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ context('Trackers', () => {
const todayString =
`${today.getDate()}`.padStart(2, '0') + '/' + todayMonth + '/' + today.getFullYear();
cy.get('input').should('have.value', todayString);
cy.get('[data-testid="ChevronLeftIcon"]').click();
cy.get('[data-testid="ChevronLeftIcon"]').click();
cy.get('[data-testid="ChevronLeftIcon"]').click({ force: true });
cy.get('[data-testid="ChevronLeftIcon"]').click({ force: true });
cy.reload();
cy.get('input').should('have.value', todayString);
});
Expand All @@ -30,9 +30,9 @@ context('Trackers', () => {
});
it('has one tracker created and visible today and yesterday only', () => {
cy.get('.tracker-card').should('have.length', 1);
cy.get('[data-testid="ChevronLeftIcon"]').click();
cy.get('[data-testid="ChevronLeftIcon"]').click({ force: true });
cy.get('.tracker-card').should('have.length', 1);
cy.get('[data-testid="ChevronLeftIcon"]').click();
cy.get('[data-testid="ChevronLeftIcon"]').click({ force: true });
cy.get('.tracker-card').should('have.length', 0);
});
});
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/trackers/validateTracker.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ context('Trackers', () => {
describe('validate tracker', () => {
it('validates a tracker when clicking on the "complete validate" button', () => {
cy.get('.tracker-card').first().as('card');
cy.get('@card').find('[data-testid="TaskAltIcon"]').click();
cy.get('@card').find('[data-testid="TaskAltIcon"]').click({ force: true });
cy.contains('Valider').click();
cy.get('.tracker-card').should('have.length', 0);

Expand Down
1 change: 1 addition & 0 deletions src/app/DrawerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const DrawerMenu: FC<Props> = ({ open, toggleDrawerMenu, toggleThemeMode, width
onClose={toggleDrawerMenu}
onOpen={toggleDrawerMenu}
open={open}
swipeAreaWidth={70}
sx={{
width: width,
flexShrink: 0,
Expand Down

0 comments on commit be99ea5

Please sign in to comment.