fix: use tag annotations and document free-tier precondition

Addresses review feedback:
https://github.com/Comfy-Org/ComfyUI_frontend/pull/10546#discussion_r3003514189
https://github.com/Comfy-Org/ComfyUI_frontend/pull/10546#discussion_r2999007426
This commit is contained in:
bymyself
2026-03-28 14:12:08 -07:00
parent 3a57c4d394
commit 3f0be1b9c2

View File

@@ -3,17 +3,17 @@ import { expect } from '@playwright/test'
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', { tag: '@cloud' }, () => {
// Precondition: cloud test environment must have a free-tier user authenticated.
// The subscribe button only renders when isCloud && isFreeTier.
test('subscribe button is attached in cloud mode', async ({ comfyPage }) => {
const subscribeButton = comfyPage.page.getByTestId(
TestIds.topbar.subscribeButton
)
await expect(subscribeButton).toBeAttached()
})
test('bottom panel toggle is hidden in cloud mode @cloud', async ({
test('bottom panel toggle is hidden in cloud mode', async ({
comfyPage
}) => {
const sideToolbar = comfyPage.page.getByTestId(TestIds.sidebar.toolbar)