Xray
all clusters 1h 6h 24h 48h 3d 5d 7d 14d 30d ‹
Last 6 hours▾
Ends now. Anything up to this cluster's 30-day retention.
Start and end times
Cancel
Interpreted in UTC (change it at the right of this bar). Earliest available: 2026-10-24 12:08:13.
› →|
updated 6d ago
Sample data. This database was generated by scripts/seed_dev_db.py — every service, deploy, person and figure on this page is synthetic. Names are sample.*@seed.invalid and image tags are prefixed SEED-. Nothing here happened.

Sites Page › TC-04: Add, edit and delete site resources

Written to prove TC-SITE-054 A room added to a site appears in its resources and on its overview; TC-SITE-055 A piece of equipment added to a site is kept separate from its rooms; TC-SITE-056 Deleting a resource asks for confirmation and removes it from the overview

sites::TC-04: Add, edit and delete site resources
E2E test in suite sites · first seen 2026-08-11 20:33:04 UTC · last seen 2026-11-17 01:35:54 UTC · ← all runs

flaky
as of #882 · failed 2 of its last 30 counted runs, changed 3 times
flaky
as of #860 · failed 3 of its last 30 counted runs, changed 6 times

Linear issues

e2e-tests-master — its newest 11 runs, oldest first

05010015020025012 Aug 01:3015 Aug 01:3020 Aug 08:4223 Aug 01:3001:30 105.3 s05:23 101.3 s23:01 105.7 s01:30 15.8 s06:22 111 s01:31 123.8 s06:35 190.3 s08:42 201.2 s01:31 170.3 s01:31 137 s01:30 156.2 s

e2e-tests-production — its newest 2 runs, oldest first

Each distinct failure it has had (6)

7ebaa31da947 in 4 runs · first e2e-tests-production jenkins-740 (2026-08-13 17:51:30 UTC) · last e2e-tests-production jenkins-824 (2026-10-30 12:57:59 UTC)
why locator.click: Timeout 50000ms exceeded.
traceback
[main] › tests/sites/sites.spec.js:154:3 › Sites Page › TC-04: Add, edit and delete site resources 

    TimeoutError: locator.click: Timeout 50000ms exceeded.
    Call log:
      - waiting for getByTestId('more-menu-edit')
        - locator resolved to <div data-rac="" tabindex="-1" role="menuitem" data-key="edit" class="_item_16809_86" data-testid="more-menu-edit" id="react-aria2861860946-_r_p6_" data-react-aria-pressable="true" data-collection="react-aria2861860946-_r_p1_">…</div>
      - attempting click action
        - waiting for element to be visible, enabled and stable
        - element is visible, enabled and stable
        - scrolling into view if needed
        - done scrolling
      - element was detached from the DOM, retrying


       at pages/sites/createSite.page.js:280

      278 |     logger.info(`Renaming resource ${oldResourceName} to ${newResourceName}`);
      279 |     await this.openResourceRowMenu(oldResourceName);
    > 280 |     await this.editResourceButton.click();
          |                                   ^
      281 |     // The modal first renders an empty Add form, then the loaded resource — see knowledge/sites.md.
      282 |     await expect(this.enterResourcesName).toHaveValue(oldResourceName);
      283 |     await this.enterResourcesName.fill(newResourceName);
        at SitesPage.editResourceName (/tests/pages/sites/createSite.page.js:280:35)
        at /tests/tests/sites/sites.spec.js:180:5

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main/error-context.md

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    TimeoutError: locator.click: Timeout 50000ms exceeded.
    Call log:
      - waiting for getByTestId('more-menu-edit')
        - locator resolved to <div data-rac="" tabindex="-1" role="menuitem" data-key="edit" class="_item_16809_86" data-testid="more-menu-edit" id="react-aria599357548-_r_p1_" data-react-aria-pressable="true" data-collection="react-aria599357548-_r_os_">…</div>
      - attempting click action
        - waiting for element to be visible, enabled and stable
      - element was detached from the DOM, retrying


       at pages/sites/createSite.page.js:280

      278 |     logger.info(`Renaming resource ${oldResourceName} to ${newResourceName}`);
      279 |     await this.openResourceRowMenu(oldResourceName);
    > 280 |     await this.editResourceButton.click();
          |                                   ^
      281 |     // The modal first renders an empty Add form, then the loaded resource — see knowledge/sites.md.
      282 |     await expect(this.enterResourcesName).toHaveValue(oldResourceName);
      283 |     await this.enterResourcesName.fill(newResourceName);
        at SitesPage.editResourceName (/tests/pages/sites/createSite.page.js:280:35)
        at /tests/tests/sites/sites.spec.js:180:5

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main-retry1/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main-retry1/error-context.md
a3307cf4ab2c in 2 runs · first e2e-tests-master jenkins-718 (2026-08-20 06:35:05 UTC) · last e2e-tests-master jenkins-831 (2026-10-16 01:32:50 UTC)
why expect(locator).toHaveCount(expected) failed
traceback
[main] › tests/sites/sites.spec.js:154:3 › Sites Page › TC-04: Add, edit and delete site resources 

    Error: expect(locator).toHaveCount(expected) failed

    Locator:  getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1792115635667' })
    Expected: 1
    Received: 0
    Timeout:  50000ms

    Call log:
      - Expect "toHaveCount" getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1792115635667' }) with timeout 50000ms
      - waiting for getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1792115635667' })
        98 × locator resolved to 0 elements
           - unexpected value "0"


      179 |
      180 |     await sitePage.editResourceName(room.name, renamedRoom);
    > 181 |     await expect(sitePage.resourceRow(renamedRoom)).toHaveCount(1);
          |                                                     ^
      182 |     await expect(sitePage.resourceRow(room.name)).toHaveCount(0);
      183 |
      184 |     await sitePage.deleteResource(equipment.name);
        at /tests/tests/sites/sites.spec.js:181:53

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main/test-failed-2.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: screenshot (image/png) ──────────────────────────────────────────────────────────
    reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main/error-context.md

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Error: expect(locator).toHaveCount(expected) failed

    Locator:  getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1792115736143' })
    Expected: 1
    Received: 0
    Timeout:  50000ms

    Call log:
      - Expect "toHaveCount" getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1792115736143' }) with timeout 50000ms
      - waiting for getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1792115736143' })
        100 × locator resolved to 0 elements
            - unexpected value "0"


      179 |
      180 |     await sitePage.editResourceName(room.name, renamedRoom);
    > 181 |     await expect(sitePage.resourceRow(renamedRoom)).toHaveCount(1);
          |                                                     ^
      182 |     await expect(sitePage.resourceRow(room.name)).toHaveCount(0);
      183 |
      184 |     await sitePage.deleteResource(equipment.name);
        at /tests/tests/sites/sites.spec.js:181:53

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main-retry1/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main-retry1/error-context.md
38ba23b81c36 in 1 run · first e2e-tests-master jenkins-705 (2026-08-12 23:01:20 UTC) · last e2e-tests-master jenkins-705 (2026-08-12 23:01:20 UTC)
why Create Minimal Site API call failed with error: {"message":"Could not add site: CreateSiteMemberInTx failed: Either object does not exist OR object has been updated since last read"}
traceback
[main] › tests/sites/sites.spec.js:154:3 › Sites Page › TC-04: Add, edit and delete site resources 

    Error: Create Minimal Site API call failed with error: {"message":"Could not add site: CreateSiteMemberInTx failed: Either object does not exist OR object has been updated since last read"}

    expect(received).toBeTruthy()

    Received: false

       at helpers/functionHelper.js:337

      335 |         isSuccess,
      336 |         `${operationName} API call failed with error: ${responseBody}`
    > 337 |       ).toBeTruthy();
          |         ^
      338 |     }
      339 |     return response;
      340 |   }
        at FunctionHelper.handleApiResponse (/tests/helpers/functionHelper.js:337:9)
        at SiteApiUtil.createMinimalSite (/tests/utils/apiUtility/siteApiUtility.js:40:5)
        at /tests/tests/sites/sites.spec.js:161:24

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main/error-context.md

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Error: expect(locator).toHaveCount(expected) failed

    Locator:  getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1786586307029' })
    Expected: 1
    Received: 0
    Timeout:  50000ms

    Call log:
      - Expect "toHaveCount" with timeout 50000ms
      - waiting for getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1786586307029' })
        99 × locator resolved to 0 elements
           - unexpected value "0"


      179 |
      180 |     await sitePage.editResourceName(room.name, renamedRoom);
    > 181 |     await expect(sitePage.resourceRow(renamedRoom)).toHaveCount(1);
          |                                                     ^
      182 |     await expect(sitePage.resourceRow(room.name)).toHaveCount(0);
      183 |
      184 |     await sitePage.deleteResource(equipment.name);
        at /tests/tests/sites/sites.spec.js:181:53

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main-retry1/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: reports/sites-sites-Sites-Page-TC--9ba79-t-and-delete-site-resources-main-retry1/error-context.md
26fb591654b4 in 1 run · first e2e-tests-master jenkins-702 (2026-08-12 05:23:14 UTC) · last e2e-tests-master jenkins-702 (2026-08-12 05:23:14 UTC)
why Error: expect(locator).toHaveCount(expected) failed Locator: getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1786513244583' }) Expected: 1 Received: 0 Timeout: 50000ms Call log:  - Expect "toHaveCount" with timeout 50000ms  - waiting for getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1786513244583' })  100 × locator resolved t
traceback
Error: expect(locator).toHaveCount(expected) failed

Locator:  getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1786513244583' })
Expected: 1
Received: 0
Timeout:  50000ms

Call log:
  - Expect "toHaveCount" with timeout 50000ms
  - waiting for getByTestId('resources-table').getByRole('row').filter({ hasText: 'Updated Room 1786513244583' })
    100 × locator resolved to 0 elements
        - unexpected value "0"

    at /tests/tests/sites/sites.spec.js:181:53
7c22d8180bc6 in 1 run · first e2e-tests-master jenkins-701 (2026-08-12 01:30:37 UTC) · last e2e-tests-master jenkins-701 (2026-08-12 01:30:37 UTC)
why TimeoutError: locator.click: Timeout 50000ms exceeded. Call log:  - waiting for getByTestId('more-menu-edit')
traceback
TimeoutError: locator.click: Timeout 50000ms exceeded.
Call log:
  - waiting for getByTestId('more-menu-edit')

    at SitesPage.editResourceName (/tests/pages/sites/createSite.page.js:245:35)
    at /tests/tests/sites/sites.spec.js:180:5
a2da56a9bfc4 in 1 run · first e2e-tests-production jenkins-738 (2026-08-11 20:33:04 UTC) · last e2e-tests-production jenkins-738 (2026-08-11 20:33:04 UTC)
why Error: Create Minimal Site API call failed with error: {"message":"Could not add site: CreateSiteMemberInTx failed: Either object does not exist OR object has been updated since last read"} expect(received).toBeTruthy() Received: false
traceback
Error: Create Minimal Site API call failed with error: {"message":"Could not add site: CreateSiteMemberInTx failed: Either object does not exist OR object has been updated since last read"}

expect(received).toBeTruthy()

Received: false
    at FunctionHelper.handleApiResponse (/tests/helpers/functionHelper.js:337:9)
    at SiteApiUtil.createMinimalSite (/tests/utils/apiUtility/siteApiUtility.js:40:5)
    at /tests/tests/sites/sites.spec.js:161:24