From 9e4566dfaa6bb0c3dc82abb2a961f9677be7492a Mon Sep 17 00:00:00 2001 From: "mohammadfaisalkhatri@gmail.com" Date: Sun, 1 Sep 2024 11:28:28 +0300 Subject: [PATCH] removed screenshot tests from running in CI env --- .github/workflows/maven.yml | 8 -------- .../tests/screenshottests/FullPageScreenshotTest.java | 2 ++ test-suite/testng.xml | 1 - 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0d60fbe..5481d69 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -41,10 +41,6 @@ jobs: - name: Install Firefox uses: browser-actions/setup-firefox@latest - - name: Create screenshots dir - working-directory: ${{ github.workspace }} - run: mkdir screenshots - - name: Build the Project run: mvn clean install -DskipTests @@ -98,10 +94,6 @@ jobs: - name: Install Firefox uses: browser-actions/setup-firefox@latest - - name: Create screenshots dir - working-directory: ${{ github.workspace }} - run: mkdir screenshots - - name: Cache SonarCloud packages uses: actions/cache@v2 with: diff --git a/src/test/java/io/github/mfaisalkhatri/tests/screenshottests/FullPageScreenshotTest.java b/src/test/java/io/github/mfaisalkhatri/tests/screenshottests/FullPageScreenshotTest.java index 3c07405..b91d019 100644 --- a/src/test/java/io/github/mfaisalkhatri/tests/screenshottests/FullPageScreenshotTest.java +++ b/src/test/java/io/github/mfaisalkhatri/tests/screenshottests/FullPageScreenshotTest.java @@ -23,8 +23,10 @@ public class FullPageScreenshotTest { @Test public void testTakeFullPageScreenshotFirefox() { + driver = new FirefoxDriver(); + driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(30)); driver.manage().window().maximize(); diff --git a/test-suite/testng.xml b/test-suite/testng.xml index d49a160..1e318ce 100644 --- a/test-suite/testng.xml +++ b/test-suite/testng.xml @@ -7,7 +7,6 @@ -