Skip to content

Commit d9eef91

Browse files
fix test locator
1 parent 27f94a0 commit d9eef91

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

browser_tests/tests/releaseNotifications.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test.describe('Release Notifications', () => {
5050
await expect(helpMenu).toBeVisible()
5151

5252
// Verify "What's New?" section shows the release
53-
const whatsNewSection = comfyPage.page.locator('.whats-new-section')
53+
const whatsNewSection = comfyPage.page.getByTestId('whats-new-section')
5454
await expect(whatsNewSection).toBeVisible()
5555

5656
// Should show the release version
@@ -79,7 +79,7 @@ test.describe('Release Notifications', () => {
7979
await expect(helpMenu).toBeVisible()
8080

8181
// Verify "What's New?" section shows no releases
82-
const whatsNewSection = comfyPage.page.locator('.whats-new-section')
82+
const whatsNewSection = comfyPage.page.getByTestId('whats-new-section')
8383
await expect(whatsNewSection).toBeVisible()
8484

8585
// Should show "No recent releases" message
@@ -125,7 +125,7 @@ test.describe('Release Notifications', () => {
125125
await expect(helpMenu).toBeVisible()
126126

127127
// Should show no releases due to error
128-
const whatsNewSection = comfyPage.page.locator('.whats-new-section')
128+
const whatsNewSection = comfyPage.page.getByTestId('whats-new-section')
129129
await expect(
130130
whatsNewSection.locator('text=No recent releases')
131131
).toBeVisible()
@@ -175,7 +175,7 @@ test.describe('Release Notifications', () => {
175175
await expect(helpMenu).toBeVisible()
176176

177177
// Verify "What's New?" section is hidden
178-
const whatsNewSection = comfyPage.page.locator('.whats-new-section')
178+
const whatsNewSection = comfyPage.page.getByTestId('whats-new-section')
179179
await expect(whatsNewSection).not.toBeVisible()
180180

181181
// Should not show any popups or toasts
@@ -263,7 +263,7 @@ test.describe('Release Notifications', () => {
263263
await expect(helpMenu).toBeVisible()
264264

265265
// Verify "What's New?" section is visible
266-
const whatsNewSection = comfyPage.page.locator('.whats-new-section')
266+
const whatsNewSection = comfyPage.page.getByTestId('whats-new-section')
267267
await expect(whatsNewSection).toBeVisible()
268268

269269
// Should show the release
@@ -311,7 +311,7 @@ test.describe('Release Notifications', () => {
311311
await helpCenterButton.click()
312312

313313
// Verify "What's New?" section is visible
314-
const whatsNewSection = comfyPage.page.locator('.whats-new-section')
314+
const whatsNewSection = comfyPage.page.getByTestId('whats-new-section')
315315
await expect(whatsNewSection).toBeVisible()
316316

317317
// Close help center
@@ -362,7 +362,7 @@ test.describe('Release Notifications', () => {
362362
await expect(helpMenu).toBeVisible()
363363

364364
// Section should be hidden regardless of empty releases
365-
const whatsNewSection = comfyPage.page.locator('.whats-new-section')
365+
const whatsNewSection = comfyPage.page.getByTestId('whats-new-section')
366366
await expect(whatsNewSection).not.toBeVisible()
367367
})
368368
})

src/components/helpcenter/HelpCenterMenuContent.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@
8484
</Teleport>
8585

8686
<!-- What's New Section -->
87-
<section v-if="showVersionUpdates" class="w-full">
87+
<section
88+
v-if="showVersionUpdates"
89+
class="w-full"
90+
data-testid="whats-new-section"
91+
>
8892
<h3
8993
class="section-description flex items-center gap-2.5 self-stretch px-8 pt-2 pb-2"
9094
>

0 commit comments

Comments
 (0)