Skip to content

Commit af4859d

Browse files
committed
test: Update selectors for help button and refresh button in tests
1 parent 6fa7b9e commit af4859d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

browser_tests/tests/nodeHelp.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ test.describe('Node Help', () => {
4646

4747
// Click the help button in the selection toolbox
4848
const helpButton = comfyPage.selectionToolbox.locator(
49-
'button:has(.pi-question-circle)'
49+
'button:has(.help-button)'
5050
)
5151
await expect(helpButton).toBeVisible()
5252
await helpButton.click()

browser_tests/tests/remoteWidgets.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ test.describe('Remote COMBO Widget', () => {
190190
await comfyPage.page.keyboard.press('Control+A')
191191

192192
await expect(
193-
comfyPage.page.locator('.selection-toolbox .pi-refresh')
193+
comfyPage.page.locator(
194+
'.selection-toolbox button[data-testid="refresh-button"]'
195+
)
194196
).toBeVisible()
195197
})
196198

src/components/graph/selectionToolbox/RefreshSelectionButton.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
v-tooltip.top="t('g.refreshNode')"
55
severity="secondary"
66
text
7+
data-testid="refresh-button"
78
@click="refreshSelected"
89
>
910
<i-lucide:refresh-cw class="w-4 h-4" />

0 commit comments

Comments
 (0)