Skip to content

Commit

Permalink
Merge pull request #72 from adobecom/triggernala
Browse files Browse the repository at this point in the history
fix timings
  • Loading branch information
SonjaPopovic authored Feb 21, 2025
2 parents 663cf72 + 44c04b3 commit f8d4ee2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nala/blocks/news/news.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ test.describe('Validate news block', () => {

await newsPage.clearSearchSelector.click();
await page.reload();
await page.waitForLoadState('domcontentloaded');
await page.waitForSelector('.partner-cards-cards-results', { state: 'visible' });
});

await test.step('Find platinum automation regression cards', async () => {
Expand Down Expand Up @@ -352,6 +352,7 @@ test.describe('Validate news block', () => {
const newTab = await context.newPage();
await newTab.goto(`${path}`);
const newTabPage = new NewsPage(newTab);
await newTab.waitForSelector('.partner-cards-cards-results', { state: 'visible' });
const resultCards = await newTabPage.resultNumber.textContent();
await expect(parseInt(resultCards.split(' ')[0], 10)).toBe(data.numberOfPublicCards);
});
Expand Down

0 comments on commit f8d4ee2

Please sign in to comment.