oppia: [Flake]: Cannot read properties of undefined (reading 'waitForDisplayed') in contributorAdminDashboard

CI Test Type

E2E

Stacktrace

� /core/tests/webdriverio_desktop/contributorAdminDashboard.js
Contributor Admin Dashboard
   ��� "before all" hook
   ��� <unknown test>

2 failing (3m 48.5s)

1) Contributor Admin Dashboard "before all" hook
Cannot read properties of undefined (reading 'waitForDisplayed')
TypeError: Cannot read properties of undefined (reading 'waitForDisplayed')
    at Object.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:130:17)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:20:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:16:12)
    at Object.visibilityOf (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:138:12)
    at Object.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/action.js:36:17)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/action.js:20:71
    at new Promise (<anonymous>)

2) Contributor Admin Dashboard <unknown test>
TypeError: Cannot read properties of undefined (reading 'waitForDisplayed')
TypeError: Cannot read properties of undefined (reading 'waitForDisplayed')
    at Object.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:130:17)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:20:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:16:12)
    at Object.visibilityOf (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/waitFor.js:138:12)
    at Object.<anonymous> (/home/runner/work/oppia/oppia/core/tests/webdriverio_utils/action.js:36:17)
    at Generator.next (<anonymous>)
    at /home/runner/work/oppia/oppia/core/tests/webdriverio_utils/action.js:20:71
    at new Promise (<anonymous>)


Spec Files:	 0 passed, 1 failed, 1 total (100% completed) in 00:03:54

Additional Information

No response

Occurrences

Occurred at: https://github.com/oppia/oppia/actions/runs/10772344989/job/29871174298

Debugging document link

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 35 (35 by maintainers)

Commits related to this issue

Most upvoted comments

Hello @Akhilesh-max, I will try my best. Actually, for most of the last week I was blocked by https://github.com/oppia/oppia/discussions/21064. And only this morning I managed to find a way around this blocker. I will update you of the progress on this issue and will try to open PR within a day or two. Thanks

@masterboy376 Thanks for looking into this. Could you please check and see whether this issue is reproducible outside the CI test framework (i.e. start a local server, turn the dashboard on, and see if the option is visible or not after manually performing the actions in the test?)

Thanks!