-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Run QueryClient.clear() on logout (#32587)
- Loading branch information
1 parent
a8cce0d
commit 8fd70bb
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rocket.chat/meteor": patch | ||
--- | ||
|
||
Fixes issues with loading license modules when loading the page while logged out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
apps/meteor/tests/e2e/omnichannel/omnichannel-enterprise-menus-logout.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { Page } from '@playwright/test'; | ||
|
||
import { ADMIN_CREDENTIALS, IS_EE } from '../config/constants'; | ||
import injectInitialData from '../fixtures/inject-initial-data'; | ||
import { test, expect } from '../utils/test'; | ||
|
||
test.describe('OC - Enterprise Menu Items After Relogin', () => { | ||
// Create page object and redirect to home | ||
test.beforeEach(async ({ page }: { page: Page }) => { | ||
await page.goto('/omnichannel/current'); | ||
|
||
await page.locator('role=textbox[name=/username/i]').waitFor({ state: 'visible' }); | ||
await page.locator('role=textbox[name=/username/i]').fill(ADMIN_CREDENTIALS.email); | ||
await page.locator('[name=password]').fill(ADMIN_CREDENTIALS.password); | ||
await page.locator('role=button[name="Login"]').click(); | ||
|
||
await page.locator('.main-content').waitFor(); | ||
}); | ||
|
||
// Delete all data | ||
test.afterAll(async () => { | ||
await injectInitialData(); | ||
}); | ||
|
||
test('OC - Enterprise Menu Items - Logout & Login', async ({ page }) => { | ||
test.skip(!IS_EE); | ||
await test.step('expect EE menu items to be visible', async () => { | ||
await expect(page.locator('a[href="/omnichannel/tags"]')).toBeVisible(); | ||
}); | ||
}); | ||
}); |