mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
[automated] Apply ESLint and Oxfmt fixes
This commit is contained in:
@@ -13,7 +13,7 @@ test.describe('Curve Widget', () => {
|
||||
function getCurveWidgetLocators(comfyPage: ComfyPage) {
|
||||
const node = comfyPage.vueNodes.getNodeLocator('1')
|
||||
const svg = node.locator('svg')
|
||||
const curvePath = node.getByTestId("curve-path")
|
||||
const curvePath = node.getByTestId('curve-path')
|
||||
const controlPoints = svg.locator('circle')
|
||||
return { node, svg, curvePath, controlPoints }
|
||||
}
|
||||
@@ -137,7 +137,7 @@ test.describe('Curve Widget', () => {
|
||||
const pathBefore = await curvePath.getAttribute('d')
|
||||
|
||||
const node = comfyPage.vueNodes.getNodeLocator('1')
|
||||
const select = node.getByRole("combobox")
|
||||
const select = node.getByRole('combobox')
|
||||
await select.click()
|
||||
await comfyPage.page.getByRole('option', { name: /linear/i }).click()
|
||||
await comfyPage.nextFrame()
|
||||
|
||||
@@ -76,7 +76,7 @@ test.describe('Image Crop', () => {
|
||||
async ({ comfyPage }) => {
|
||||
const node = comfyPage.vueNodes.getNodeLocator('1')
|
||||
|
||||
const trigger = node.getByRole("combobox")
|
||||
const trigger = node.getByRole('combobox')
|
||||
await trigger.click()
|
||||
|
||||
const expectedRatios = ['1:1', '3:4', '4:3', '16:9', '9:16', 'Custom']
|
||||
|
||||
@@ -257,7 +257,7 @@ test.describe('Painter', () => {
|
||||
expect(initialSize?.trim()).toBe('20')
|
||||
|
||||
// Drag the slider thumb to the right to increase size
|
||||
const slider = sizeRow.getByRole("slider")
|
||||
const slider = sizeRow.getByRole('slider')
|
||||
const sliderBox = await slider.boundingBox()
|
||||
if (!sliderBox) throw new Error('Slider thumb not found')
|
||||
|
||||
@@ -313,7 +313,7 @@ test.describe('Painter', () => {
|
||||
// Set brush size to a larger value by dragging the slider far right
|
||||
const sizeLabel = painterWidget.getByText('Cursor Size')
|
||||
const sizeRow = sizeLabel.locator('~ div').first()
|
||||
const slider = sizeRow.getByRole("slider")
|
||||
const slider = sizeRow.getByRole('slider')
|
||||
const sliderBox = await slider.boundingBox()
|
||||
if (!sliderBox) throw new Error('Slider thumb not found')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user