Fix apps customization (#10755)

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2026-04-13 00:15:21 +05:00
committed by GitHub
parent c9c84764ff
commit 0bb53c0643
5 changed files with 61 additions and 13 deletions
@@ -0,0 +1,34 @@
import { expect, test } from '@playwright/test'
import { PlatformSetting, PlatformURI } from '../utils'
test.use({
storageState: PlatformSetting
})
test.describe('Customize sidebar applications', () => {
test.beforeEach(async ({ page }) => {
await page.goto(`${PlatformURI}/workbench/sanity-ws/recruit`)
})
test('sidebar apps match Customize visibility toggles', async ({ page }) => {
const recruitSidebar = page.getByTestId('app-sidebar-recruit')
const customize = page.getByTestId('workbench-app-customize')
const recruitRow = page.getByTestId('app-switcher-row-recruit')
await expect(recruitSidebar).toBeVisible()
await customize.click()
await expect(recruitRow).toBeVisible()
await recruitRow.click()
await page.keyboard.press('Escape')
await expect(recruitSidebar).toHaveCount(0)
await customize.click()
await expect(recruitRow).toBeVisible()
await recruitRow.click()
await page.keyboard.press('Escape')
await expect(recruitSidebar).toBeVisible()
})
})