chore: update test

This commit is contained in:
Richard Shiue
2025-09-09 15:02:55 +08:00
parent 3449f41fe7
commit fcbb83bff8
2 changed files with 1 additions and 2 deletions

View File

@@ -87,7 +87,6 @@ describe('Update User Profile', () => {
// Re-open to verify settings were saved // Re-open to verify settings were saved
cy.log('Step 10: Re-opening Account Settings to verify changes'); cy.log('Step 10: Re-opening Account Settings to verify changes');
cy.get('[data-testid="workspace-dropdown-trigger"]').click();
cy.get('[data-testid="workspace-dropdown-content"]', { timeout: 5000 }).should('be.visible'); cy.get('[data-testid="workspace-dropdown-content"]', { timeout: 5000 }).should('be.visible');
cy.get('[data-testid="account-settings-button"]').click(); cy.get('[data-testid="account-settings-button"]').click();
cy.wait(1000); cy.wait(1000);

View File

@@ -361,7 +361,7 @@ export class AFClientService implements AFService {
const token = getTokenParsed(); const token = getTokenParsed();
const userId = token?.user?.id; const userId = token?.user?.id;
const user = await getUser(() => APIService.getCurrentUser(), userId, StrategyType.CACHE_AND_NETWORK); const user = await getUser(() => APIService.getCurrentUser(), userId, StrategyType.NETWORK_ONLY);
if (!user) { if (!user) {
return Promise.reject(new Error('User not found')); return Promise.reject(new Error('User not found'));