Page MenuHomePhabricator

EntitySchema selenium tests fail: element (".entityschema-description[lang=de]") still not existing after 5000ms
Closed, ResolvedPublic2 Estimated Story Points

Description

Consistent test failures observed on four consecutive test builds (two for a real Gerrit change and two for an empty no-op change):

[0-3] Error in "SetEntitySchemaLabelDescriptionAliasesPage:Page.is possible to edit Schema in another language"
Error: element (".entityschema-description[lang=de]") still not existing after 5000ms
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at ViewSchemaPage.getDescription (/workspace/src/extensions/EntitySchema/tests/selenium/pageobjects/view.schema.page.js:33:85)
    at Context.<anonymous> (/workspace/src/extensions/EntitySchema/tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js:64:38)
[0-3] RETRYING in chrome - /tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js
[0-3] RUNNING in chrome - /tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js
[0-3] Error in "SetEntitySchemaLabelDescriptionAliasesPage:Page.is possible to edit Schema in another language"
Error: element (".entityschema-description[lang=de]") still not existing after 5000ms
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at ViewSchemaPage.getDescription (/workspace/src/extensions/EntitySchema/tests/selenium/pageobjects/view.schema.page.js:33:85)
    at Context.<anonymous> (/workspace/src/extensions/EntitySchema/tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js:64:38)
[0-3] FAILED in chrome - /tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js (1 retries)

Two different gate-and-submit selenium jobs also failed, but with a different error (both on the real Gerrit change, so these could in theory be due to that change):

[0-3] AssertionError in "SetEntitySchemaLabelDescriptionAliasesPage:Page.limits the input length"
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:

100 !== 250

    at Context.<anonymous> (/workspace/src/extensions/EntitySchema/tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js:98:10)
[0-3] RETRYING in chrome - /tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js
[0-3] RUNNING in chrome - /tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js
[0-3] Error in "SetEntitySchemaLabelDescriptionAliasesPage:Page.is possible to edit Schema in another language"
Error: element (".entityschema-description[lang=de]") still not existing after 5000ms
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at ViewSchemaPage.getDescription (/workspace/src/extensions/EntitySchema/tests/selenium/pageobjects/view.schema.page.js:33:85)
    at Context.<anonymous> (/workspace/src/extensions/EntitySchema/tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js:64:38)
[0-3] FAILED in chrome - /tests/selenium/specs/special/setEntitySchemaLabelDescriptionAliases.js (1 retries)

Event Timeline

Change 840137 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] Wait for inputs existing before trying to set a value in test

https://gerrit.wikimedia.org/r/840137

Change 840137 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] Wait for inputs existing before trying to set a value in test

https://gerrit.wikimedia.org/r/840137

Selenium on this change still fails, but it fails with the same error as the gate-and-submit builds before (and not with the “still not existing” error), so I guess that’s progress?

Okay, with patch set 2 CI is green again (I added the second fix to the same change because it’s basically the same thing).

Change 840137 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Wait for inputs existing before trying to set a value in test

https://gerrit.wikimedia.org/r/840137