Files
514917d232 feat(e2e): add and fix spaces e2e cases (#7548)
* feat(e2e): add and fix spaces e2e cases

* fix(e2e): add account widget test cases

* fix(e2e): add navigation info

* fix(e2e): formating

* fix(e2e): comment unfinish cases

* fix(e2e): fix data-testid and change the test accordingly

* fix(e2e): buttons data-testids

* fix(e2e): wait after sign in

* fix(e2e): add function to verify sign in

* fix(e2e): fix index handling

* fix: add data-testid attributes to SpaceSelectorDropdown for E2E tests

The Cypress spaces tests expected data-testid="space-selector-button"
and data-testid="space-selector-menu" on the space selector component,
but these attributes were missing from the rendered elements.

* tests(e2e): fix space selector dropdown assertion to use text matching

The DropdownMenuItem component renders as div[role="menuitem"], not <li>.
Replace find('li') with contains() assertions that verify both space
names are visible in the dropdown menu.

* fix(e2e): update spaces tests

* fix(e2e): refactoring

* fix(e2e): add correct numbers and remove unused function

* fix(e2e): update skills and add correct function for account information

* fix(e2e): update skills for cypress

* fix(e2e): fix safe-basicflow

* fix(e2e): fix number of elements and remove step from basicflow

* fix(e2e): fix disconnect from space

* fix(e2e): add new navigation function for the wallets

* fix(e2e): fix create space button data-testid

* fix(e2e): add delete spaces function

* fix(e2e): update remove spaces function

* fix(e2e): update because of race condition with create button before redirect

* fix(e2e): remove legacyData comment

---------

Co-authored-by: Hanzo Dev <[email protected]>
2026-04-02 13:56:45 +02:00

22 lines
549 B
JavaScript

/**
* CGW-shaped payload for **visual** E2E intercepts only (`e2e/visual/spaces.cy.js`).
* Not used for staging regression — see `staticSpaces.js` for real space id + name.
*/
export const visualSpacesApiMockSpace = {
id: 1,
name: 'Test Space',
status: 'ACTIVE',
members: [
{
id: 1,
role: 'ADMIN',
name: 'Admin User',
invitedBy: 'system',
status: 'ACTIVE',
createdAt: '2025-01-01T00:00:00.000Z',
updatedAt: '2025-01-01T00:00:00.000Z',
user: { id: 1, status: 'ACTIVE' },
},
],
}