Skip to content

Commit

Permalink
Merge branch 'develop' into dependabot/npm_and_yarn/tough-cookie-and-…
Browse files Browse the repository at this point in the history
…cypress/request-4.1.3
  • Loading branch information
Clm-Roig authored Feb 6, 2024
2 parents 66858b0 + 5d6a117 commit 94a905b
Show file tree
Hide file tree
Showing 15 changed files with 247 additions and 229 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.3.10](https://github.com/clm-roig/suivie/compare/v0.3.9...v0.3.10) (2024-02-06)


### Features

* **customCompletion:** automatically select & focus the only completion if unique when opening dialogue ([f72e82c](https://github.com/clm-roig/suivie/commit/f72e82c88c08de5ce0bea820bb7a946814199b69))


### Bug Fixes

* **animatedBox:** remove now useless hack ([40b951f](https://github.com/clm-roig/suivie/commit/40b951f5bc1b11a90268fab7dd59ae0602cf5522))
* **drawerMenu:** increase swip area width ([39584fe](https://github.com/clm-roig/suivie/commit/39584fe19e094d0545ae9f78006eca50e713280f))
* **trackerCard:** fix dndrop issue ([130dd08](https://github.com/clm-roig/suivie/commit/130dd08163797a395c16284ba3adc7a606ceccff))

### [0.3.9](https://github.com/clm-roig/suivie/compare/v0.3.8...v0.3.9) (2023-12-08)


Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/trackers/hideTracker.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ context('Trackers', () => {
cy.get('.tracker-card').should('have.length', 0);

// Navigate back to todo tab and find the tracker
cy.get('.MuiTab-root').filter(':contains("À FAIRE")').click();
cy.get('.MuiTab-root').filter(':contains("À FAIRE")').click({ force: true });
cy.get('.tracker-card').should('have.length', 1);
});
});
Expand Down
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
12 changes: 0 additions & 12 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,3 @@ Cypress.Commands.add('createTracker', (trackerValues?: Partial<Tracker>) => {
const tracker = makeFakeTracker(trackerValues);
cy.window().its('store').invoke('dispatch', createTracker(tracker));
});

Cypress.Commands.add('getAttached', (selector: string) => {
const getElement = typeof selector === 'function' ? selector : ($d) => $d.find(selector);
let $el = null;
return cy
.document()
.should(($d) => {
$el = getElement(Cypress.$($d));
expect(Cypress.dom.isDetached($el)).to.be.false;
})
.then(() => cy.wrap($el));
});
10 changes: 0 additions & 10 deletions cypress/support/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ declare global {
* @example cy.createTracker({ name: 'my tracker' })
*/
createTracker(trackerValues?: Partial<Tracker>): Chainable<Element>;
/**
* get() command for detached element from here => https://github.com/cypress-io/cypress/issues/5743#issuecomment-650421731
* Waits until the selector finds an attached element, then yields it (wrapped).
* selectorFn, if provided, is passed $(document). Don't use cy methods inside selectorFn.
*
* Workaround of this issue: https://github.com/cypress-io/cypress/issues/7306
* Remove it when the issue is solved.
* @example cy.getAttached('#myButton')
*/
getAttached(selector: string): Chainable<unknown>;
}
}
}
Expand Down
Loading

0 comments on commit 94a905b

Please sign in to comment.