Skip to content

Commit

Permalink
vp test: modifying test steps description based on review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayLevi committed Dec 24, 2024
1 parent 50580bb commit 009145a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/specs/colorsApiPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ vpTest(`Test if 3 videos on colors API page are playing as expected`, async ({ p
await pomPages.mainPage.clickLinkByName(link.name);
await waitForPageToLoadWithTimeout(page, 5000);
});
await test.step('Validating that the first video is playing (in case isPause is false)', async () => {
await test.step('Validating that modified color video is playing (in case isPause is false)', async () => {
expect(await pomPages.colorsApiPage.colorsApiColorSkinVideoComponent.validateVideoPaused(false));
});
await test.step('Validating that the second video is playing (in case isPause is false)', async () => {
await test.step('Validating that dark skin video video is playing (in case isPause is false)', async () => {
expect(await pomPages.colorsApiPage.colorsApiDarkSkinVideoComponent.validateVideoPaused(false));
});
await test.step('Scroll until the third video element is visible', async () => {
await test.step('Scroll until light skin video element is visible', async () => {
await pomPages.colorsApiPage.colorsApiLightSkinVideoComponent.locator.scrollIntoViewIfNeeded();
});
await test.step('Validating that the third video is playing (in case isPause is false)', async () => {
await test.step('Validating that light skin video is playing (in case isPause is false)', async () => {
await expect(async () => {
expect(await pomPages.colorsApiPage.colorsApiLightSkinVideoComponent.validateVideoPaused(false));
}).toPass({ intervals: [500], timeout: 3000 });
Expand Down

0 comments on commit 009145a

Please sign in to comment.