Skip to content

chore : verify e2e tests in CI#709

Closed
riteshfyi wants to merge 4 commits into
webex:temp_test_e2efrom
riteshfyi:meetings-upgrade
Closed

chore : verify e2e tests in CI#709
riteshfyi wants to merge 4 commits into
webex:temp_test_e2efrom
riteshfyi:meetings-upgrade

Conversation

@riteshfyi

Copy link
Copy Markdown
Contributor

COMPLETES #NA

i made some changes to the CI config for playwright, verifying if the tests work after the changes.

< DESCRIBE THE CONTEXT OF THE ISSUE >

by making the following changes

< DESCRIBE YOUR CHANGES >

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Tooling change
  • Internal code refactor

The following scenarios were tested

  • The testing is done with the amplify link
    < ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >

The GAI Coding Policy And Copyright Annotation Best Practices

  • GAI was not used (or, no additional notation is required)
  • Code was generated entirely by GAI
  • GAI was used to create a draft that was subsequently customized or modified
  • Coder created a draft manually that was non-substantively modified by GAI (e.g., refactoring was performed by GAI on manually written code)
  • Tool used for AI assistance (GitHub Copilot / Other - specify)
    • Github Copilot
    • Other - Please Specify
  • This PR is related to
    • Feature
    • Defect fix
    • Tech Debt
    • Automation

Checklist before merging

  • I have not skipped any automated checks
  • All existing and new tests passed
  • I have updated the testing document
  • I have tested the functionality with amplify link

Make sure to have followed the contributing guidelines before submitting.

riteshfyi and others added 4 commits March 10, 2026 12:33
The previous merge commit included generated docs/ sample build output
(bundles and SVG assets). Remove them from version control; they remain
on disk and are regenerated by `yarn samples:build`.
This changelog source file was inadvertently removed in the docs build
artifact cleanup. It is a real source file and belongs in version control.
@riteshfyi riteshfyi requested a review from a team as a code owner June 29, 2026 06:27
@riteshfyi riteshfyi added validated Indicates that the PR is ready for actions run_e2e Add this label to run E2E test for meeting and CC widgets labels Jun 29, 2026
@riteshfyi riteshfyi closed this Jun 29, 2026
@riteshfyi riteshfyi reopened this Jun 29, 2026
@riteshfyi riteshfyi closed this Jun 29, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5fb20e33f5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

await page.waitForURL(/idbroker.*webex\.com/);
await page.getByRole('textbox', { name: /^Welcome / }).waitFor({ state: 'visible', timeout: 30000 });
await page.getByRole('textbox', { name: /^Welcome / }).fill(process.env.PW_MEETING_PASSWORD);
await page.getByRole('button', { name: 'Sign In' }).click();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Match the post-login URL with a glob or slash

When the Webex login redirects back to the developer portal, the browser URL is serialized as https://developer.webex.com/, but Playwright treats a string without wildcards as an exact URL match. This setup step waits for https://developer.webex.com without the trailing slash, so the meetings setup can time out before it ever copies the token; use a glob/regex or the trailing-slash URL for the navigation wait.

Useful? React with 👍 / 👎.

this.unmuteAudioBtn = this.controls.getByRole('button', { name: 'Unmute' });
this.muteVideoBtn = this.controls.getByRole('button', { name: 'Stop video' });
this.unmuteVideoBtn = this.controls.getByRole('button', { name: 'Start video' });
this.joinMeetingBtn = this.controls.getByRole('button', { name: /^(Muted, video off|Unmuted, video on)$/ });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Select the actual join button label

The widget code itself looks up the join control as button[aria-label="Join meeting"], and the previous WDIO page object also clicked the Join meeting control. This locator instead waits for Muted, video off or Unmuted, video on, so every test that calls joinMeetingBtn.click() will time out before joining a meeting.

Useful? React with 👍 / 👎.

Comment thread playwright.config.ts
Comment on lines +94 to +96
const projects = testScope === 'cc' ? ccProjects
: testScope === 'meetings' ? meetingsProjects
: [...ccProjects, ...meetingsProjects];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the CC workflow scoped to CC tests

I checked the e2e_test_cc_widgets workflow step and it still runs yarn run test:e2e; with this new unscoped default it now starts and runs both the CC projects and the meetings projects. That makes the non-continue-on-error CC job duplicate the dedicated meetings job and block on meetings auth/selectors whenever run_e2e is used, so either the workflow should use the new test:e2e:cc script or the default should remain CC-only for existing callers.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run_e2e Add this label to run E2E test for meeting and CC widgets validated Indicates that the PR is ready for actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant