Skip to content

Commit

Permalink
add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
hadobe committed Oct 29, 2024
1 parent f2120fb commit a3af3db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/express/image-list.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { features } from '../../features/express/image-list.spec.js';
import ImageList from '../../selectors/express/image-list.page.js';

let imageList;
const prodURL = 'https://www.adobe.com/express/';
const prodHomePage = 'https://www.adobe.com/express/';

test.describe('Image List Block Test Suite', () => {
// before each test block
Expand All @@ -30,7 +30,7 @@ test.describe('Image List Block Test Suite', () => {
await test.step('On click, goes to homepage ', async () => {
await page.waitForLoadState();
await imageList.imageListXSmall.click();
await expect(page).toHaveURL(`${prodURL}`);
await expect(page).toHaveURL(`${prodHomePage}`);
});
});

Expand All @@ -52,7 +52,7 @@ test.describe('Image List Block Test Suite', () => {
await test.step('On click, goes to homepage ', async () => {
await page.waitForLoadState();
await imageList.imageListSmall.click();
await expect(page).toHaveURL(`${prodURL}`);
await expect(page).toHaveURL(`${prodHomePage}`);
});
});

Expand All @@ -74,7 +74,7 @@ test.describe('Image List Block Test Suite', () => {
await test.step('On click, goes to homepage ', async () => {
await page.waitForLoadState();
await imageList.imageList.click();
await expect(page).toHaveURL(`${prodURL}`);
await expect(page).toHaveURL(`${prodHomePage}`);
});
});

Expand All @@ -96,7 +96,7 @@ test.describe('Image List Block Test Suite', () => {
await test.step('On click, goes to homepage ', async () => {
await page.waitForLoadState();
await imageList.imageListLarge.click();
await expect(page).toHaveURL(`${prodURL}`);
await expect(page).toHaveURL(`${prodHomePage}`);
});
});

Expand All @@ -118,7 +118,7 @@ test.describe('Image List Block Test Suite', () => {
await test.step('On click, goes to homepage ', async () => {
await page.waitForLoadState();
await imageList.imageListXLarge.click();
await expect(page).toHaveURL(`${prodURL}`);
await expect(page).toHaveURL(`${prodHomePage}`);
});
});
});

0 comments on commit a3af3db

Please sign in to comment.