mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-22 07:19:41 +00:00
[automated] Apply ESLint and Oxfmt fixes
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
import { expect } from "@playwright/test";
|
||||
import { expect } from '@playwright/test'
|
||||
|
||||
import { comfyPageFixture as test } from "../fixtures/ComfyPage";
|
||||
import { TestIds } from "../fixtures/selectors";
|
||||
import { comfyPageFixture as test } from '../fixtures/ComfyPage'
|
||||
import { TestIds } from '../fixtures/selectors'
|
||||
|
||||
test.describe("Cloud distribution UI @cloud", () => {
|
||||
test("subscribe button is attached in cloud mode @cloud", async ({
|
||||
comfyPage,
|
||||
test.describe('Cloud distribution UI @cloud', () => {
|
||||
test('subscribe button is attached in cloud mode @cloud', async ({
|
||||
comfyPage
|
||||
}) => {
|
||||
const subscribeButton = comfyPage.page.getByTestId(
|
||||
TestIds.topbar.subscribeButton,
|
||||
);
|
||||
await expect(subscribeButton).toBeAttached();
|
||||
});
|
||||
TestIds.topbar.subscribeButton
|
||||
)
|
||||
await expect(subscribeButton).toBeAttached()
|
||||
})
|
||||
|
||||
test("bottom panel toggle is hidden in cloud mode @cloud", async ({
|
||||
comfyPage,
|
||||
test('bottom panel toggle is hidden in cloud mode @cloud', async ({
|
||||
comfyPage
|
||||
}) => {
|
||||
const sideToolbar = comfyPage.page.getByTestId(TestIds.sidebar.toolbar);
|
||||
await expect(sideToolbar).toBeVisible();
|
||||
const sideToolbar = comfyPage.page.getByTestId(TestIds.sidebar.toolbar)
|
||||
await expect(sideToolbar).toBeVisible()
|
||||
|
||||
// In cloud mode, the bottom panel toggle button should not be rendered
|
||||
const bottomPanelToggle = sideToolbar.getByRole("button", {
|
||||
name: /bottom panel|terminal/i,
|
||||
});
|
||||
await expect(bottomPanelToggle).toHaveCount(0);
|
||||
});
|
||||
});
|
||||
const bottomPanelToggle = sideToolbar.getByRole('button', {
|
||||
name: /bottom panel|terminal/i
|
||||
})
|
||||
await expect(bottomPanelToggle).toHaveCount(0)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user