mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
Fix apps customization (#10755)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user