Apply new code format standard (#217)

This commit is contained in:
Chenlei Hu
2024-07-25 10:10:18 -04:00
committed by GitHub
parent 19c70d95d3
commit e179f75387
121 changed files with 11898 additions and 11983 deletions

View File

@@ -1,28 +1,28 @@
import { expect } from "@playwright/test";
import { comfyPageFixture as test } from "./ComfyPage";
import { expect } from '@playwright/test'
import { comfyPageFixture as test } from './ComfyPage'
test.describe("Combo text widget", () => {
test("Truncates text when resized", async ({ comfyPage }) => {
await comfyPage.resizeLoadCheckpointNode(0.2, 1);
test.describe('Combo text widget', () => {
test('Truncates text when resized', async ({ comfyPage }) => {
await comfyPage.resizeLoadCheckpointNode(0.2, 1)
await expect(comfyPage.canvas).toHaveScreenshot(
"load-checkpoint-resized-min-width.png"
);
await comfyPage.closeMenu();
await comfyPage.resizeKsamplerNode(0.2, 1);
'load-checkpoint-resized-min-width.png'
)
await comfyPage.closeMenu()
await comfyPage.resizeKsamplerNode(0.2, 1)
await expect(comfyPage.canvas).toHaveScreenshot(
`ksampler-resized-min-width.png`
);
});
)
})
test("Doesn't truncate when space still available", async ({ comfyPage }) => {
await comfyPage.resizeEmptyLatentNode(0.8, 0.8);
await comfyPage.resizeEmptyLatentNode(0.8, 0.8)
await expect(comfyPage.canvas).toHaveScreenshot(
"empty-latent-resized-80-percent.png"
);
});
'empty-latent-resized-80-percent.png'
)
})
test("Can revert to full text", async ({ comfyPage }) => {
await comfyPage.resizeLoadCheckpointNode(0.8, 1, true);
await expect(comfyPage.canvas).toHaveScreenshot("resized-to-original.png");
});
});
test('Can revert to full text', async ({ comfyPage }) => {
await comfyPage.resizeLoadCheckpointNode(0.8, 1, true)
await expect(comfyPage.canvas).toHaveScreenshot('resized-to-original.png')
})
})