-
Notifications
You must be signed in to change notification settings - Fork 0
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
Smoke Tests #176
Smoke Tests #176
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
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.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
eslint
🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.
dme-partners/nala/blocks/smoke-test/smoke.test.js
Lines 133 to 134 in 565cda4
features[4].data.expectedPublicPageURL | |
); |
🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.
//@user-redirection-emea-smoke-test |
🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.
dme-partners/nala/blocks/smoke-test/smoke.test.js
Lines 142 to 143 in 565cda4
`${features[5].data.signInButtonInternationalText}` | |
); |
🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.
//click on sign in button |
🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.
dme-partners/nala/blocks/smoke-test/smoke.test.js
Lines 154 to 155 in 565cda4
features[5].data.expectedPublicPageURL | |
); |
🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.
//@user-redirection-jp-smoke-test |
🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.
dme-partners/nala/blocks/smoke-test/smoke.test.js
Lines 163 to 164 in 565cda4
`${features[6].data.signInButtonInternationalText}` | |
); |
🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.
//click on sign in button |
🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.
dme-partners/nala/blocks/smoke-test/smoke.test.js
Lines 174 to 175 in 565cda4
features[6].data.expectedPublicPageURL | |
); |
🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.
//@search-page-validation-smoke-test |
🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.
dme-partners/nala/blocks/smoke-test/smoke.test.js
Lines 183 to 184 in 565cda4
`${features[7].data.signInButtonInternationalText}` | |
); |
🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.
//click on sign in button |
🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.
dme-partners/nala/blocks/smoke-test/smoke.test.js
Lines 194 to 195 in 565cda4
features[7].data.expectedPublicPageURL | |
); |
🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.
//@announcement-page-validation-smoke-test |
🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.
dme-partners/nala/blocks/smoke-test/smoke.test.js
Lines 203 to 204 in 565cda4
`${features[7].data.signInButtonInternationalText}` | |
); |
🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.
//click on sign in button |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## stage #176 +/- ##
==========================================
+ Coverage 81.01% 81.12% +0.10%
==========================================
Files 12 12
Lines 3508 3507 -1
==========================================
+ Hits 2842 2845 +3
+ Misses 666 662 -4 ☔ View full report in Codecov by Sentry. |
nala/blocks/smoke-test/smoke.page.js
Outdated
); | ||
|
||
const downloadButton = await shadowRoot.$( | ||
'sp-action-button[href="https://partners.stage.adobe.com/channelpartnerassets/assets/public/public_1/scanning_documents_into_pdf_files--ar.pdf?download"]', |
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.
change selector to find first a element that has download attribute for example
nala/blocks/smoke-test/smoke.test.js
Outdated
}); | ||
|
||
await test.step('Find a row in assets list and click on download', async () => { | ||
// await smokeTest.searchFirstAsset.click(); |
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.
remove unused comment
nala/blocks/smoke-test/smoke.test.js
Outdated
await test.step('Sing In, verify user redirection', async () => { | ||
// entering user email and password | ||
await signInSmokeTest.signIn(page, `${features[6].data.partnerLevel}`); | ||
await page.waitForTimeout(10000); |
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.
change await function to wait for element on page, or document to be loaded
…tners into MWPW-164551-smoke-tests
nala/blocks/smoke-test/smoke.page.js
Outdated
this.signInButton = page.locator('.feds-signIn'); | ||
this.GNav = page.locator('.feds-topnav'); | ||
this.profileIcon = page.locator('.feds-profile-button'); | ||
this.priceList = page.locator('a[href="https://partners.stage.adobe.com/na/channelpartners/home/pricelists/"]'); |
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.
I don't think this is this going to work on prod, right?
We should find a way that the smoke tests pass on prod and on stage
|
ticket link: https://jira.corp.adobe.com/browse/MWPW-164551
testing url: https://mwpw-164551-smoke-tests--dme-partners--adobecom.hlx.page/channelpartners/