diff --git a/apps/blog/playwright/tests/e2e/mainTimeline.spec.ts b/apps/blog/playwright/tests/e2e/mainTimeline.spec.ts index c64cfa9b84f5d88f38cf1c2705cb0c6bce4643f1..69380082564d536db1bbe661755df9f1312ffb08 100644 --- a/apps/blog/playwright/tests/e2e/mainTimeline.spec.ts +++ b/apps/blog/playwright/tests/e2e/mainTimeline.spec.ts @@ -757,7 +757,7 @@ test.describe('Home page tests', () => { // Wait for tooltip to be visible instead of fixed timeout await expect(homePage.getFirstPostUpvoteButtonTooltip).toBeVisible({ timeout: 15000 }); // Validate the tooltip message - expect(await homePage.getFirstPostUpvoteButtonTooltip.textContent()).toBe('UpvoteUpvote'); + expect(await homePage.getFirstPostUpvoteButtonTooltip.textContent()).toContain('Upvote'); // Upvote icon color expect( await homePage.getElementCssPropertyValue( @@ -804,7 +804,7 @@ test.describe('Home page tests', () => { // Wait for tooltip to be visible instead of fixed timeout await expect(homePage.getFirstPostUpvoteButtonTooltip).toBeVisible({ timeout: 15000 }); // Validate the tooltip message - expect(await homePage.getFirstPostUpvoteButtonTooltip.textContent()).toBe('UpvoteUpvote'); + expect(await homePage.getFirstPostUpvoteButtonTooltip.textContent()).toContain('Upvote'); // Upvote icon color expect( await homePage.getElementCssPropertyValue( @@ -858,7 +858,7 @@ test.describe('Home page tests', () => { // Wait for tooltip to be visible instead of fixed timeout await expect(homePage.getFirstPostDownvoteButtonTooltip).toBeVisible({ timeout: 15000 }); // Validate the tooltip message - expect(await homePage.getFirstPostDownvoteButtonTooltip.textContent()).toBe('DownvoteDownvote'); + expect(await homePage.getFirstPostDownvoteButtonTooltip.textContent()).toContain('Downvote'); // Downvote icon color expect( await homePage.getElementCssPropertyValue( @@ -905,7 +905,7 @@ test.describe('Home page tests', () => { // Wait for tooltip to be visible instead of fixed timeout await expect(homePage.getFirstPostDownvoteButtonTooltip).toBeVisible({ timeout: 15000 }); // Validate the tooltip message - expect(await homePage.getFirstPostDownvoteButtonTooltip.textContent()).toBe('DownvoteDownvote'); + expect(await homePage.getFirstPostDownvoteButtonTooltip.textContent()).toContain('Downvote'); // Downvote icon color expect( await homePage.getElementCssPropertyValue( diff --git a/apps/blog/playwright/tests/e2e/profileRepliesPage.spec.ts b/apps/blog/playwright/tests/e2e/profileRepliesPage.spec.ts index 5c14daa2793aaf33327c197a346b0573173f8459..72be98af803f4aa13b526de5535d64bee9873a6a 100644 --- a/apps/blog/playwright/tests/e2e/profileRepliesPage.spec.ts +++ b/apps/blog/playwright/tests/e2e/profileRepliesPage.spec.ts @@ -238,8 +238,8 @@ test.describe('Replies Tab in Profile page of @gtg', () => { // Hover upvote button await profilePage.postUpvoteButton.first().hover(); await profilePage.page.waitForTimeout(1000); - // Validate the tooltip message - expect(await profilePage.postUpvoteTooltip.textContent()).toBe('UpvoteUpvote'); + // Validate the tooltip message (may include payout warning for old posts) + expect(await profilePage.postUpvoteTooltip.textContent()).toContain('Upvote'); // Upvote icon color expect( await profilePage.getElementCssPropertyValue( @@ -270,8 +270,8 @@ test.describe('Replies Tab in Profile page of @gtg', () => { // Hover Downvote button await profilePage.postDownvoteButton.first().hover(); await profilePage.page.waitForTimeout(1000); - // Validate the tooltip message - expect(await profilePage.postDownvoteTooltip.textContent()).toBe('DownvoteDownvote'); + // Validate the tooltip message (may include payout warning for old posts) + expect(await profilePage.postDownvoteTooltip.textContent()).toContain('Downvote'); // Upvote icon color expect( await profilePage.getElementCssPropertyValue(