From cc4198ba542f80ca9906afc83d2e217023dbc2c7 Mon Sep 17 00:00:00 2001 From: Abhishek Fatate Date: Mon, 27 Oct 2025 12:17:45 +0530 Subject: [PATCH 1/9] Add Node.js setup and Percy CLI to workflow --- .github/workflows/test.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6e5381..75e9fcf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,12 +10,23 @@ jobs: with: distribution: 'temurin' java-version: 17 + - name: ⚙️ Setup Node.js for Percy CLI + uses: actions/setup-node@v4 + with: + node-version: '20' # Use a recent stable version + - uses: actions/cache@v3 with: path: ~/.npm key: v1/${{ runner.os }}/java-8/${{ hashFiles('**/package-lock.json') }} restore-keys: v1/${{ runner.os }}/java-8/ - run: make install - - run: make test + + - name: 🛠️ Install Percy CLI + run: npm install --save-dev @percy/cli + + - name: 📸 Run Tests with Percy + # 'make test' is your existing command. We wrap it with 'npx percy exec --' + run: npx percy exec -- make test env: PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} From 7c00a0d31dbcc6d4972bc8f67222ccc477e73996 Mon Sep 17 00:00:00 2001 From: Abhishek Fatate Date: Mon, 27 Oct 2025 12:26:28 +0530 Subject: [PATCH 2/9] Fix formatting issues in README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 92ce987..9f61ceb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ + # example-percy-java-selenium Example app used by the [Percy Java Selenium tutorial](https://docs.percy.io/docs/java-selenium-testing-tutorial) demonstrating Percy's Java Selenium integration. From f611b2d428c07ba40e77f3e8618d1a0caba6e693 Mon Sep 17 00:00:00 2001 From: Abhishek Fatate Date: Mon, 27 Oct 2025 12:37:29 +0530 Subject: [PATCH 3/9] Combine Percy CLI installation and test execution --- .github/workflows/test.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75e9fcf..ab726cc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,11 +22,9 @@ jobs: restore-keys: v1/${{ runner.os }}/java-8/ - run: make install - - name: 🛠️ Install Percy CLI - run: npm install --save-dev @percy/cli - - - name: 📸 Run Tests with Percy - # 'make test' is your existing command. We wrap it with 'npx percy exec --' - run: npx percy exec -- make test + - name: 📸 Install CLI and Run Tests with Percy + run: | + npm install --save-dev @percy/cli + npx percy exec -- make test env: PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} From 39321cfc331f5ce334430a06536dbfc8ad1d9be5 Mon Sep 17 00:00:00 2001 From: Abhishek Fatate Date: Mon, 27 Oct 2025 12:47:54 +0530 Subject: [PATCH 4/9] Update Maven compiler source and target to 21 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3ef362b..544030f 100644 --- a/pom.xml +++ b/pom.xml @@ -61,8 +61,8 @@ maven-compiler-plugin 3.11.0 - 1.8 - 1.8 + 21 + 21 From 0b5c7c4f098b09e8dadeaff524a4b655b43eaeaa Mon Sep 17 00:00:00 2001 From: Abhishek Fatate Date: Mon, 27 Oct 2025 12:51:13 +0530 Subject: [PATCH 5/9] Change Java source and target version to 1.8 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 544030f..3ef362b 100644 --- a/pom.xml +++ b/pom.xml @@ -61,8 +61,8 @@ maven-compiler-plugin 3.11.0 - 21 - 21 + 1.8 + 1.8 From 1a02eb51d09b0d2619546348595e55512a832c48 Mon Sep 17 00:00:00 2001 From: Abhishek Fatate Date: Mon, 27 Oct 2025 12:59:21 +0530 Subject: [PATCH 6/9] Refactor test workflow for Percy CLI and dependencies Updated the GitHub Actions workflow to improve the setup and testing steps. --- .github/workflows/test.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab726cc..2a0cc64 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,25 +6,34 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: 17 + - name: ⚙️ Setup Node.js for Percy CLI uses: actions/setup-node@v4 with: node-version: '20' # Use a recent stable version - + - uses: actions/cache@v3 with: path: ~/.npm key: v1/${{ runner.os }}/java-8/${{ hashFiles('**/package-lock.json') }} restore-keys: v1/${{ runner.os }}/java-8/ - - run: make install - - name: 📸 Install CLI and Run Tests with Percy + # 🚨 REMOVE line 24: run: make install + + - name: 📸 Install CLI, Install Dependencies, and Run Tests with Percy run: | + # 1. Install Java dependencies (if not done by setup-java caching) + make install + + # 2. Install the Percy CLI npm install --save-dev @percy/cli + + # 3. Use npx to launch Percy server AND run the tests npx percy exec -- make test env: PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} From 565fae855de6e493da35b17c180c400445f723f3 Mon Sep 17 00:00:00 2001 From: Abhishek Fatate Date: Mon, 27 Oct 2025 13:09:38 +0530 Subject: [PATCH 7/9] Remove empty line from README.md Removed an empty line at the beginning of the README. --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 9f61ceb..92ce987 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ - # example-percy-java-selenium Example app used by the [Percy Java Selenium tutorial](https://docs.percy.io/docs/java-selenium-testing-tutorial) demonstrating Percy's Java Selenium integration. From 88331f710a5327d39c2e394972664010cc22ea7b Mon Sep 17 00:00:00 2001 From: Abhishek Fatate Date: Mon, 27 Oct 2025 13:39:07 +0530 Subject: [PATCH 8/9] Fix formatting issues in README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 92ce987..9f61ceb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ + # example-percy-java-selenium Example app used by the [Percy Java Selenium tutorial](https://docs.percy.io/docs/java-selenium-testing-tutorial) demonstrating Percy's Java Selenium integration. From 25444df84808baddf9c9a5af98816d1eaa68ca9a Mon Sep 17 00:00:00 2001 From: Abhishek Fatate Date: Mon, 27 Oct 2025 13:53:57 +0530 Subject: [PATCH 9/9] Change body text color from #111111 to #0000FF --- src/main/resources/css/index.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/css/index.css b/src/main/resources/css/index.css index bf7410e..66ba243 100644 --- a/src/main/resources/css/index.css +++ b/src/main/resources/css/index.css @@ -24,7 +24,7 @@ body { font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 1.4em; background: #f5f5f5; - color: #111111; + color: #0000FF; min-width: 230px; max-width: 550px; margin: 0 auto;