mirror of
https://github.com/AppFlowy-IO/AppFlowy-Web.git
synced 2025-11-30 11:27:55 +08:00
chore: update test
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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'));
|
||||||
|
|||||||
Reference in New Issue
Block a user