Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CC firefly product page UI, search integration with firefly web tests #361

Merged
merged 33 commits into from
Jun 5, 2024

Conversation

sigadamvenkata
Copy link
Collaborator

CC firefly product page UI, search integration with firefly web tests

sigadamvenkata and others added 29 commits January 22, 2024 17:11
CC Merchtable block automation (JIra: MWPW-140978)
CC sticky promo bar, promo with close action automated test cases
Jira : MWPW-140982, MWPW-142252
…eatures

CC Regression automated cases for media rounded corners, breadcrumb features (MWPW-140976, MWPW-142543)
removed the lengthy URL
removed tailing spaces from given lines
corrected the typo
fixed indentations issue at line 14,15,16

Also removed wait from line number 81
CC firefly product page UI & integration with FF web
@sigadamvenkata sigadamvenkata requested a review from skumar09 June 3, 2024 17:55
@sigadamvenkata sigadamvenkata requested a review from JackySun9 June 3, 2024 17:55
await expect(page).toHaveURL(`${baseURL}${features[0].path}`);
});
await test.step('search term take use to IMS and post login to FF product page', async () => {
await page.waitForLoadState();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're waiting for loadstate on line 14, you probably don't need another one.

expect(await firefly.searchPromptBox).toBeTruthy();
expect(await firefly.generateCTA).toBeTruthy();
await firefly.searchPromptBox.fill(features[0].term);
// await page.waitForTimeout(2000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can probably remove this comment if not needed.

await expect(page).toHaveURL(`${baseURL}${features[1].path}`);
});
await test.step('user hits serach CTA with out search prompt', async () => {
await page.waitForLoadState();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're waiting for loadstate on line 35, you probably don't need another one.

await page.waitForLoadState('domcontentloaded');
await expect(page).toHaveURL(`${baseURL}${features[2].path}`);
});
await test.step('user hits serach CTA with out search prompt', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

await test.step('user hits search CTA with out search prompt', async () => {
Typo fix.

await expect(page).toHaveURL(`${baseURL}${features[2].path}`);
});
await test.step('user hits serach CTA with out search prompt', async () => {
await page.waitForLoadState();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're waiting for loadstate on line 51, you probably don't need another one.

removed unwanted wait
removed commented line
removed wait for load state line
@sigadamvenkata sigadamvenkata merged commit 76dc322 into adobecom:main Jun 5, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants