Skip to content

Commit 44abed6

Browse files
committed
test: use pinned node matcher
Amp-Thread-ID: https://ampcode.com/threads/T-01a003b4-7345-762b-880b-558d03a3c45b
1 parent 36588fc commit 44abed6

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

browser_tests/tests/copyPaste.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { expect } from '@playwright/test'
2-
3-
import { comfyPageFixture as test } from '@e2e/fixtures/ComfyPage'
1+
import {
2+
comfyExpect as expect,
3+
comfyPageFixture as test
4+
} from '@e2e/fixtures/ComfyPage'
45
import { DefaultGraphPositions } from '@e2e/fixtures/constants/defaultGraphPositions'
56

67
test.beforeEach(async ({ comfyPage }) => {
@@ -25,7 +26,7 @@ test.describe(
2526
await node.centerOnNode()
2627
await node.clickContextMenuOption('Pin')
2728
await comfyPage.contextMenu.waitForHidden()
28-
await expect.poll(() => node.isPinned()).toBe(true)
29+
await expect(node).toBePinned()
2930

3031
const nodeType = await node.getType()
3132
const originalNodes = await comfyPage.nodeOps.getNodeRefsByType(nodeType)

0 commit comments

Comments
 (0)