Skip to content

Commit

Permalink
fixed dataview e2e tests #1562
Browse files Browse the repository at this point in the history
  • Loading branch information
kaperoo committed Aug 31, 2023
1 parent 830982b commit 1393cf2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ describe('Datafiles Table', () => {

cy.get('.MuiPickersCalendarHeader-label').click();
cy.contains('2020').click();
// A weird bug where the calendar jumps out from under the cursor on first click
// second click works fine
cy.get('.MuiPickersDay-root[type="button"]').first().click();
cy.get('.MuiPickersDay-root[type="button"]').first().click();

cy.get('input[id="Modified Time filter to"]').should(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ describe('Datasets Table', () => {
cy.get('.MuiPickersCalendarHeader-label').click();
cy.contains('2020').click();

// same bug with moving calendar as in datafiles.cy.ts
cy.get('.MuiPickersDay-root[type="button"]').first().click();
cy.get('.MuiPickersDay-root[type="button"]').first().click();

cy.get('input[id="Create Time filter to"]').should(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,10 @@ describe('Admin Download Status', () => {
const toDate = new Date(now + 5000);

cy.get('input[id="Requested Date filter from"]').type(
fromDate.toLocaleString('sv')
fromDate.toLocaleString('sv').split(' ').join('')
);

cy.get('input[id="Requested Date filter to"]').type(
toDate.toLocaleString('sv')
toDate.toLocaleString('sv').split(' ').join('')
);

cy.get('@initialRowCount').then((initialRowCount) => {
Expand Down

0 comments on commit 1393cf2

Please sign in to comment.