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

Feature/playwright module #1288

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

alimahboubi
Copy link

What does this PR do?

This pull request introduces a new module to the Testcontainers for .NET library, enabling support for Playwright-based browser testing within Docker containers. The module allows users to run Playwright tests in isolated environments, facilitating consistent and reproducible end-to-end testing scenarios.

Why is it important?

Integrating Playwright into Testcontainers for .NET addresses the growing demand for modern, reliable browser automation tools in testing workflows. Playwright offers robust features for cross-browser testing, and its inclusion enhances the library's capabilities, providing developers with a comprehensive solution for containerized testing environments.

Related issues

Follow-ups

  • Update the official documentation to include usage guidelines and examples for the Playwright module.

  • Monitor community feedback to identify potential enhancements or issues related to the new module.

Implemented the initial version of the Testcontainers.Playwright library. This includes the PlaywrightBuilder, PlaywrightContainer, PlaywrightConfiguration, PlaywrightBrowser classes, and the project file setup. The changes also integrate the new project into the solution file.
Introduce a new Playwright test project with necessary configurations and dependencies. Implement initial container setup and a test to validate the integration with a sample "hello world" application.
Copy link

netlify bot commented Nov 5, 2024

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 26c6749
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/6738ff8195a0860008708a7e
😎 Deploy Preview https://deploy-preview-1288--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Removed the specific version number from the xunit package reference in the project file. This change allows the project to always use the latest compatible version of xunit.
Removed unnecessary properties and updated package order in the test project file. This cleanup improves readability and aligns the project with current standards, ensuring consistent behavior.
Include System for fundamental classes and base classes, and threading for asynchronous operations. This ensures that the components used in the TestInitializer are properly referenced and compiled.
Move common usings to GlobalUsings.cs for better maintainability and cleaner code in TestInitializer.cs. This enhances code organization and reduces redundancy.
@HofmeisterAn HofmeisterAn added enhancement New feature or request module An official Testcontainers module labels Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module An official Testcontainers module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants