Skip to content

Conversation

@antonbsa
Copy link
Member

@antonbsa antonbsa commented Apr 9, 2025

What does this PR do?

This PR introduces the setup with E2E tests for the Actions button dropdown and Actions bar samples using Playwright:

  • Action button dropdown:
    • should display and log when clicked
  • Action bar:
    • should log expected message when custom SVG button is clicked
    • should handle selector button click and log expected values
    • should verify selector icon has correct class
    • should handle toggle group button click and log expected values

In addition:

  • Creates Playwright configuration globally (extended in the samples folder);
  • Adds core constants and helper functions for managing test parameters and settings;
  • Updates the package.json files to include new dependencies and test scripts;
  • Modifies .eslintrc to include overrides for test files and samples, allowing specific rules to be turned off for these files;
  • Adds /scripts/copy-sample-to-container.sh script file to facilitate testing in a development environment;

More

  • A BBB server running is required as the plugin is injected through the pluginManifests create parameter into a session;
  • The plugins tests require BBB credentials (server and secret), the same ones used in BBB core testing - can be copied and pasted from the core testing folder to the root SDK directory (see .env.template);

@welcome
Copy link

welcome bot commented Apr 9, 2025

Thank you for this contribution! Could you please confirm if you already sent in the signed Contributor License Agreement? See https://docs.bigbluebutton.org/support/faq.html#why-do-i-need-to-sign-a-contributor-license-agreement-to-contribute-source-code Thanks in advance!

- Created Playwright configuration globally (extended in the samples folder)
- Implemented test for the action button dropdown functionality, including visibility and logging on click.
- Introduced core constants and helper functions for managing test parameters and settings.
- Updated the package.json files to include new dependencies and test scripts.
@antonbsa antonbsa force-pushed the plugin-tests-setup branch from 8784529 to 5bc7e0c Compare April 9, 2025 20:03
@GuiLeme GuiLeme self-requested a review May 20, 2025 14:29
@GuiLeme GuiLeme self-requested a review May 27, 2025 21:15
Copy link
Collaborator

@GuiLeme GuiLeme left a comment

Choose a reason for hiding this comment

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

LGTM!

@antobinary antobinary requested a review from GuiLeme May 28, 2025 18:47
@antobinary antobinary merged commit d920477 into bigbluebutton:v0.0.x May 28, 2025
3 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.

3 participants