mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
Replace @trivago/prettier-plugin-sort-imports with @prettier/plugin-oxc and @ianvs/prettier-plugin-sort-imports for improved performance. Changes: - Add @prettier/plugin-oxc (Rust-based fast parser) - Add @ianvs/prettier-plugin-sort-imports (import sorting compatible with oxc) - Remove @trivago/prettier-plugin-sort-imports - Update .prettierrc to use new plugins and compatible import order config - Reformat all files with new plugin configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
41 lines
868 B
TypeScript
41 lines
868 B
TypeScript
import { test as base, type Page } from '@playwright/test'
|
|
|
|
export class UserSelectPage {
|
|
constructor(
|
|
public readonly url: string,
|
|
public readonly page: Page
|
|
) {}
|
|
|
|
get selectionUrl() {
|
|
return this.url + '/user-select'
|
|
}
|
|
|
|
get container() {
|
|
return this.page.locator('#comfy-user-selection')
|
|
}
|
|
|
|
get newUserInput() {
|
|
return this.container.locator('#new-user-input')
|
|
}
|
|
|
|
get existingUserSelect() {
|
|
return this.container.locator('#existing-user-select')
|
|
}
|
|
|
|
get nextButton() {
|
|
return this.container.getByText('Next')
|
|
}
|
|
}
|
|
|
|
export const userSelectPageFixture = base.extend<{
|
|
userSelectPage: UserSelectPage
|
|
}>({
|
|
userSelectPage: async ({ page }, use) => {
|
|
const userSelectPage = new UserSelectPage(
|
|
process.env.PLAYWRIGHT_TEST_URL || 'http://localhost:8188',
|
|
page
|
|
)
|
|
await use(userSelectPage)
|
|
}
|
|
})
|