Bug #23060
closedWorkbench project.cy.js test fails because it targets a disabled element
Description
Two failures last night with some overlap. run-tests-services-workbench2-integration: #589 is from run-tests on current main:
Running: project.cy.js (16 of 24)
Project tests
✓ creates a new project with multiple properties (15349ms)
✓ creates a project without and with description (23727ms)
✓ creates a project from the context menu in the correct subfolder (12697ms)
✓ creates new project on home project and then a subproject inside it (12313ms)
✓ attempts to use a preexisting name creating a project (7034ms)
✓ navigates to the parent project after trashing the one being displayed (6727ms)
✓ resets the search box only when navigating out of the current project (4574ms)
✓ navigates to the root project after trashing the parent of the one being displayed (6834ms)
1) clears search input when changing project
✓ opens advanced popup for project with username (3878ms)
✓ copies project URL to clipboard (7338ms)
✓ sorts displayed items correctly (7968ms)
Frozen projects
✓ should be able to freeze own project (3590ms)
2) should not be able to modify items within the frozen project
✓ should be able to freeze not owned project (2967ms)
✓ should be able to unfreeze project if user is an admin (5756ms)
14 passing (2m)
2 failing
1) Project tests
clears search input when changing project:
CypressError: `cy.type()` failed because it targeted a disabled element.
The element typed into was:
> <input aria-invalid="false" type="text" class="MuiInputBase-input MuiInput-input MuiInputBase-inputAdornedEnd css-15e8ec1-MuiInputBase-input-MuiInput-input" value="">
Ensure the element does not have an attribute named `disabled` before typing into it.
https://on.cypress.io/type
at <unknown> (https://127.0.0.1:38040/__cypress/runner/cypress_runner.js:114790:78)
at tryCatcher (https://127.0.0.1:38040/__cypress/runner/cypress_runner.js:1807:23)
at Promise._settlePromiseFromHandler (https://127.0.0.1:38040/__cypress/runner/cypress_runner.js:1519:31)
at Promise._settlePromise (https://127.0.0.1:38040/__cypress/runner/cypress_runner.js:1576:18)
at Promise._settlePromise0 (https://127.0.0.1:38040/__cypress/runner/cypress_runner.js:1621:10)
at Promise._settlePromises (https://127.0.0.1:38040/__cypress/runner/cypress_runner.js:1701:18)
at _drainQueueStep (https://127.0.0.1:38040/__cypress/runner/cypress_runner.js:2407:12)
at _drainQueue (https://127.0.0.1:38040/__cypress/runner/cypress_runner.js:2400:9)
at Async._drainQueues (https://127.0.0.1:38040/__cypress/runner/cypress_runner.js:2416:5)
at Async.drainQueues (https://127.0.0.1:38040/__cypress/runner/cypress_runner.js:2286:14)
From Your Spec Code:
at Context.eval (webpack://arvados-workbench-2/./cypress/e2e/project.cy.js:442:51)
2) Project tests
Frozen projects
should not be able to modify items within the frozen project:
AssertionError: Timed out retrying after 4000ms: Expected to find element: `[data-cy=data-table]`, but never found it.
at Context.eval (webpack://arvados-workbench-2/./cypress/e2e/project.cy.js:552:47)
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 16 │
│ Passing: 14 │
│ Failing: 2 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 2 │
│ Video: false │
│ Duration: 2 minutes, 16 seconds │
│ Spec Ran: project.cy.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
run-tests-services-workbench2-integration: #586 is a developer-run-tests run that included current main and also failed on "should not be able to modify items within the frozen project," though not "clears search input when changing project."
Files
Updated by Brett Smith 8 months ago
- Target version set to Development 2025-08-06
Updated by Brett Smith 8 months ago
Stephen has a fix for the second failure (which is more common) in #22831, e5a17ecc7eea79ba90a9627b921ce7869c389faf.
Updated by Brett Smith 8 months ago
- Assigned To set to Stephen Smith
Brett Smith wrote in #note-2:
Stephen has a fix for the second failure (which is more common) in #22831, e5a17ecc7eea79ba90a9627b921ce7869c389faf.
Please do a timeboxed investigation (2-3 hours) of the first failure. If you find the bug, please put up a branch to fix it. If not, please leave notes about what you investigated so we have those if this continues to come up, but that's an acceptable outcome of this ticket for now.
Updated by Brett Smith 8 months ago
Brett Smith wrote in #note-2:
Stephen has a fix for the second failure (which is more common) in #22831, e5a17ecc7eea79ba90a9627b921ce7869c389faf.
If the test fix passes review but #22831 has a lot of other work going on, it is okay to cherry-pick the test fix onto main before the larger branch is merged.
Updated by Brett Smith 8 months ago
- Status changed from In Progress to Closed
Have not seen this failure recently across several test runs so we'll defer for now.
Updated by Brett Smith 7 months ago
- Release set to 82
- Target version deleted (
Development 2025-08-06) - Assigned To deleted (
Stephen Smith) - Status changed from Closed to New
- Subject changed from Workbench project.cy.js tests failing to Workbench project.cy.js test fails because it targets a disabled element
This happened again in run-tests-services-workbench2-integration: #712
Updated by Brett Smith 6 months ago
- Target version set to Development 2025-10-01
- Assigned To set to Stephen Smith
Updated by Brett Smith 6 months ago
- File workbench-712.txt workbench-712.txt added
Updated by Brett Smith 6 months ago
- Target version deleted (
Development 2025-10-01)
Updated by Brett Smith 5 months ago
- Target version set to Development 2025-10-15
- Assigned To changed from Stephen Smith to Lisa Knox
Updated by Brett Smith 5 months ago
- Target version changed from Development 2025-10-15 to Development 2025-10-29