-
Notifications
You must be signed in to change notification settings - Fork 35
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 regression - accordion feature #334
Conversation
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)
CC home page tabs, fragment reference , merch pod AU tests Jiras: https://jira.corp.adobe.com/browse/MWPW-143230 https://jira.corp.adobe.com/browse/MWPW-142599 https://jira.corp.adobe.com/browse/MWPW-143231
Key CC , CCT product pages sanity checks automation for EN https://jira.corp.adobe.com/browse/MWPW-146289
CC Tier1 locales production sanity tests https://jira.corp.adobe.com/browse/MWPW-146289
removed the lengthy URL
removed the space
removed tailing spaces from given lines
CC page Accordion features regression automated cases https://jira.corp.adobe.com/browse/MWPW-147151 https://jira.corp.adobe.com/browse/MWPW-147152 https://jira.corp.adobe.com/browse/MWPW-147153 https://jira.corp.adobe.com/browse/MWPW-147154
@sigadamvenkata could you fix the eslint warnings? |
@sigadamvenkata Do you only run your tests on chrome? |
Does CC have their own unique accordion block? @sigadamvenkata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good, like everyone else said handle the ESLint errors, I also added a small grammar fix and a recommendation to do instead of having a waitfor timeout call before checking the url link switch.
tests/cc/accordion.test.js
Outdated
test.beforeEach(async ({ page }) => { | ||
accordion = new Accordion(page); | ||
}); | ||
// erify accordion showing up with authored question and answers and UI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing 'V' in Verify within comment.
tests/cc/accordion.test.js
Outdated
await accordion.accordionQuestion1.click(); | ||
expect(await accordion.accordexpanded).toBeTruthy(); | ||
await accordion.firstQuestionLink.click(); | ||
await page.waitForTimeout(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a recommendation I would look for a way to wait for an element on the subsequent page or it's load state to finish before checking the url since waiting for timeouts aren't very reliable since network or CI/CD pipeline issues could cause it to take longer than just a second.
@sigadamvenkata if you clone this from milo to cc, we might no need to do this, are you cloning the tests from milo? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving,
Please fix the comments from @amauch-adobe
corrected the typo
fixed indentations issue at line 14,15,16 Also removed wait from line number 81
@amauch-adobe made the changes mentioned by you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. Thanks for addressing the fixes.
CC regression - accordion feature
https://jira.corp.adobe.com/browse/MWPW-147151
https://jira.corp.adobe.com/browse/MWPW-147152
https://jira.corp.adobe.com/browse/MWPW-147153
https://jira.corp.adobe.com/browse/MWPW-147154
test case report from local: