Skip to content

Commit

Permalink
fix CI/headless test
Browse files Browse the repository at this point in the history
  • Loading branch information
flacoman91 committed Sep 30, 2024
1 parent d38c14f commit 4810d80
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 42 deletions.
14 changes: 12 additions & 2 deletions cypress/e2e/common/filters.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ describe('Filter Panel', () => {
cy.log('apply dates');

cy.get('#date_received-from').clear();
cy.get('#date_received-from').type('2015-09-11');

// TODO: this fails in headless mode for some reason without force:true but it works fine in
// electron / chrome headed version
cy.get('#date_received-from').type('2015-09-11', {
force: true,
});
cy.get('#date_received-from').blur();

cy.wait('@getComplaintsDateFrom');
Expand All @@ -62,7 +67,12 @@ describe('Filter Panel', () => {
cy.log('apply a through date');

cy.get('#date_received-through').clear();
cy.get('#date_received-through').type('2020-10-31');

// TODO: this fails in headless mode for some reason without force:true but it works fine in
// electron / chrome headed version
cy.get('#date_received-through').type('2020-10-31', {
force: true,
});
cy.get('#date_received-through').blur();

cy.url().should('include', 'date_received_max=2020-10-31');
Expand Down
74 changes: 37 additions & 37 deletions dist/ccdb5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ccdb5.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/components/Filters/DateFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const DateFilter = () => {
className="a-label a-label__heading body-copy"
htmlFor={`${fieldName}-from`}
>
From
Date From
</label>
<div className="o-search-input">
<div className="o-search-input__input">
Expand Down Expand Up @@ -180,7 +180,7 @@ export const DateFilter = () => {
className="a-label a-label__heading body-copy"
htmlFor={`${fieldName}-through`}
>
Through
Date Through
</label>
<div className="o-search-input">
<div className="o-search-input__input">
Expand Down

0 comments on commit 4810d80

Please sign in to comment.