diff --git a/cypress/e2e/account/settings/preferences.cy.ts b/cypress/e2e/account/settings/preferences.cy.ts index 571904090..11c1e147e 100644 --- a/cypress/e2e/account/settings/preferences.cy.ts +++ b/cypress/e2e/account/settings/preferences.cy.ts @@ -12,7 +12,7 @@ import { PREFERENCES_LANGUAGE_SWITCH_ID, PREFERENCES_SAVE_BUTTON_ID, } from '../../../../src/config/selectors'; -import { BOB, CURRENT_MEMBER } from '../../../fixtures/members'; +import { CURRENT_MEMBER, MEMBERS } from '../../../fixtures/members'; describe('Display preferences', () => { describe('Language', () => { @@ -203,7 +203,7 @@ describe('Edit preferences', () => { describe('Cancel should not update preferences', () => { beforeEach(() => { cy.setUpApi({ - currentMember: BOB, + currentMember: MEMBERS.BOB, }); cy.visit(ACCOUNT_SETTINGS_PATH); cy.wait('@getCurrentMember'); diff --git a/cypress/e2e/account/settings/publicProfile.cy.ts b/cypress/e2e/account/settings/publicProfile.cy.ts index ef2330b9a..6beba69e1 100644 --- a/cypress/e2e/account/settings/publicProfile.cy.ts +++ b/cypress/e2e/account/settings/publicProfile.cy.ts @@ -8,7 +8,7 @@ import { PUBLIC_PROFILE_TWITTER_ID, } from '../../../../src/config/selectors'; import { - BOB, + MEMBERS, MEMBER_EMPTY_PUBLIC_PROFILE, MEMBER_PUBLIC_PROFILE, } from '../../../fixtures/members'; @@ -23,7 +23,7 @@ describe('Display public profile', () => { describe('Completed public profile', () => { beforeEach(() => { cy.setUpApi({ - currentMember: BOB, + currentMember: MEMBERS.BOB, currentProfile: MEMBER_PUBLIC_PROFILE, }); cy.visit(ACCOUNT_SETTINGS_PATH); @@ -78,7 +78,7 @@ describe('Display public profile', () => { describe('Empty public profile', () => { beforeEach(() => { cy.setUpApi({ - currentMember: BOB, + currentMember: MEMBERS.BOB, currentProfile: MEMBER_EMPTY_PUBLIC_PROFILE, }); cy.visit(ACCOUNT_SETTINGS_PATH); @@ -116,7 +116,7 @@ describe('Display public profile', () => { describe('Edit public profile', () => { beforeEach(() => { cy.setUpApi({ - currentMember: BOB, + currentMember: MEMBERS.BOB, currentProfile: MEMBER_PUBLIC_PROFILE, }); cy.visit(ACCOUNT_SETTINGS_PATH); diff --git a/cypress/fixtures/useCases/staticElectricity.ts b/cypress/fixtures/useCases/staticElectricity.ts index 4ecc09f4a..47985a259 100644 --- a/cypress/fixtures/useCases/staticElectricity.ts +++ b/cypress/fixtures/useCases/staticElectricity.ts @@ -27,14 +27,7 @@ export const STATIC_ELECTRICITY: { description: '', creator: CURRENT_MEMBER, extra: { - [ItemType.FOLDER]: { - childrenOrder: [ - 'gcafbd2a-5688-11eb-ae92-0242ac130015', - 'gcafbd2a-4218-31eb-fe32-0542bc120002', - 'gcbffd2a-4218-31eb-fe32-0542bc120002', - 'gfbfed2a-4218-31eb-fe32-0542bc120002', - ], - }, + [ItemType.FOLDER]: {}, }, }), FolderItemFactory({ @@ -43,15 +36,7 @@ export const STATIC_ELECTRICITY: { name: 'Causes and experiences', creator: CURRENT_MEMBER, extra: { - [ItemType.FOLDER]: { - childrenOrder: [ - 'gcefbd2a-5688-11eb-ae92-0542bc120002', - 'gcefbd2a-5688-11eb-fe32-0542bc120002', - 'gcefbd2a-5648-31eb-fe32-0542bc120002', - 'gcefbd4e-5688-11eb-fe32-0542bc120002', - 'gceffe4e-5688-11eb-fe32-0542bc120002', - ], - }, + [ItemType.FOLDER]: {}, }, }), DocumentItemFactory({ @@ -119,12 +104,7 @@ export const STATIC_ELECTRICITY: { description: '', creator: CURRENT_MEMBER, extra: { - [ItemType.FOLDER]: { - childrenOrder: [ - 'gcafbd2a-4118-31eb-fe32-0542bc120002', - 'gcafbd2a-4118-31eb-fe32-1542bc120002', - ], - }, + [ItemType.FOLDER]: {}, }, }), AppItemFactory({ @@ -158,12 +138,7 @@ export const STATIC_ELECTRICITY: { description: '', creator: CURRENT_MEMBER, extra: { - [ItemType.FOLDER]: { - childrenOrder: [ - 'gcbffd2a_4218_31eb_fe32_0542bc121102', - 'gcbffd2a_4218_31eb_fe32_0542bc121145', - ], - }, + [ItemType.FOLDER]: {}, }, }), DocumentItemFactory({ @@ -195,13 +170,7 @@ export const STATIC_ELECTRICITY: { name: 'Static Discharge: Lightning', creator: CURRENT_MEMBER, extra: { - [ItemType.FOLDER]: { - childrenOrder: [ - 'gfbfed2a_4218_31eb_fe32_0522bc120002', - 'gfbfed2a_4218_31eb_fe32_0522bc120065', - 'gfbfed2a_4218_31eb_fe32_0522bc120265', - ], - }, + [ItemType.FOLDER]: {}, }, }), { diff --git a/package.json b/package.json index 1d2529c4f..d7efa4936 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "start:test": "vite --mode test", "build": "tsc -b && vite build", "build:dev": "tsc -b && vite build --mode development", - "build:test": "tsc -b vite build --mode test", + "build:test": "tsc -b && vite build --mode test", "preview": "vite preview", "preview:dev": "vite preview --mode development", "preview:test": "vite preview --mode test",