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

Smoke Tests #176

Merged
merged 16 commits into from
Jan 13, 2025
Merged

Smoke Tests #176

merged 16 commits into from
Jan 13, 2025

Conversation

sashaCodeTest
Copy link
Collaborator

@sashaCodeTest sashaCodeTest commented Jan 9, 2025

Copy link

aem-code-sync bot commented Jan 9, 2025

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

Copy link
Contributor

@github-actions github-actions bot left a 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.

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.

`${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.

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.

`${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.

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.

`${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.

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.

`${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-commenter
Copy link

codecov-commenter commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.12%. Comparing base (b42c8e3) to head (077e1ec).
Report is 8 commits behind head on stage.

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.
📢 Have feedback on the report? Share it here.

@aem-code-sync aem-code-sync bot temporarily deployed to MWPW-164551-smoke-tests January 9, 2025 09:42 Inactive
@cod17828 cod17828 self-requested a review January 9, 2025 10:16
);

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"]',
Copy link
Collaborator

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

});

await test.step('Find a row in assets list and click on download', async () => {
// await smokeTest.searchFirstAsset.click();
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove unused comment

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);
Copy link
Collaborator

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

@aem-code-sync aem-code-sync bot temporarily deployed to MWPW-164551-smoke-tests January 9, 2025 13:19 Inactive
@cod17828 cod17828 self-requested a review January 9, 2025 13:24
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/"]');
Copy link
Collaborator

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

Copy link

aem-code-sync bot commented Jan 13, 2025

Page Scores Audits
📱 /channelpartners/ PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS
🖥️ /channelpartners/ PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS

@sashaCodeTest sashaCodeTest merged commit c973b78 into stage Jan 13, 2025
11 checks passed
@sashaCodeTest sashaCodeTest deleted the MWPW-164551-smoke-tests branch January 13, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants