-->

Hemant Vishwakarma: Cypress tests Material-UI data selector, not working on Github actions

We have a strange behavior when running our cypress tests on a github action. The MUI data picker is in read-only mode and we can’t enter any dates (other environments are fine).

Error in Cypress

CypressError: Retry timed out after 4000 ms: cy.clear() failed because this element is read-only:

Visually the date picker doesn’t have any buttons (something is going on):

enter image description here

Console logs show no errors or warnings

In other environments, on windows/linux, the tests run fine even though we started the test in headless mode (all desktops with a UI). The MUI data picker looks just as nice as in the MUI documentation (link).

Github action looks like this:

on: workflow_dispatch: defaults: run: working directory: ic3-test jobs: build: running: ubuntu-latest container: cypress/included:8.6.0 steps: – uses: actions/checkout@v2 – uses: actions/ setup- Via node@v2: node-version: ’16’ – name: Run setup dependencies: npm setup working directory: ic3-test — run with name: Cypress env uses: Via cypress-io/github-action@v2: # headless: real browser: chrome registry: real working directory: ic3-test

Some tips are welcomed

A Material-UI data selector from Cypress test not working on Github actions