Skip to content

java/playwright examples updated#273

Open
padmavemulapati wants to merge 3 commits into
mainfrom
Java_PlaywrightExamples
Open

java/playwright examples updated#273
padmavemulapati wants to merge 3 commits into
mainfrom
Java_PlaywrightExamples

Conversation

@padmavemulapati

Copy link
Copy Markdown
Contributor

No description provided.

@padmavemulapati padmavemulapati requested a review from a team as a code owner June 18, 2026 06:35
Copilot AI review requested due to automatic review settings June 18, 2026 06:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds three new Java Playwright example modules (basic, manual-mode, multi-page) demonstrating how to run Playwright tests with axe-core Watcher integration.

Changes:

  • Added Playwright-based JUnit tests for basic login, manual analysis mode, and multi-page navigation.
  • Added per-module Maven configuration (Surefire + Ant-run) intended to install Playwright browsers for test runs.
  • Added placeholder main classes for each module.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
java/playwright/basic/src/test/java/com/deque/watcher_examples/playwright/BasicTest.java Adds basic Playwright + Watcher JUnit test.
java/playwright/basic/src/main/java/com/deque/watcher_examples/playwright/Basic.java Adds placeholder entrypoint class.
java/playwright/basic/pom.xml Adds Playwright/JUnit/Watcher deps and browser-install plugin wiring.
java/playwright/manual-mode/src/test/java/com/deque/watcher_examples/playwright/ManualModeTest.java Adds manual analysis mode Playwright + Watcher JUnit test.
java/playwright/manual-mode/src/main/java/com/deque/watcher_examples/playwright/ManualMode.java Adds placeholder entrypoint class.
java/playwright/manual-mode/pom.xml Adds Playwright/JUnit/Watcher deps and browser-install plugin wiring.
java/playwright/multi-page/src/test/java/com/deque/watcher_examples/playwright/MultiPageTest.java Adds multi-page Playwright + Watcher JUnit tests with shared context.
java/playwright/multi-page/src/main/java/com/deque/watcher_examples/playwright/MultiPage.java Adds placeholder entrypoint class.
java/playwright/multi-page/pom.xml Adds Playwright/JUnit/Watcher deps and browser-install plugin wiring.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +11 to +16
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<skip.browser.install>false</skip.browser.install>
</properties>
Comment on lines +11 to +16
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<skip.browser.install>false</skip.browser.install>
</properties>
Comment on lines +11 to +16
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<skip.browser.install>false</skip.browser.install>
</properties>
Comment on lines +49 to +50
// An empty user-data dir lets Playwright create a fresh temporary profile.
browserContext = playwright.chromium().launchPersistentContext(Paths.get(""), launchOptions);
.setArgs(List.of("--no-sandbox", "--disable-dev-shm-usage")));

playwright = Playwright.create();
browserContext = playwright.chromium().launchPersistentContext(Paths.get(""), launchOptions);
.setArgs(List.of("--no-sandbox", "--disable-dev-shm-usage")));

playwright = Playwright.create();
browserContext = playwright.chromium().launchPersistentContext(Paths.get(""), launchOptions);

@Nested
@DisplayName("Forgot password page")
class MultiPageForgotPasswordTest {
then turn on auto-analysis.
We click the button,
causing an auto-analysis (+1),
then assure the element appears.
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