From bbfca87ac156963e83d662f36d990dc41286eb0b Mon Sep 17 00:00:00 2001 From: Alphonse Bendt Date: Tue, 30 May 2023 23:32:11 +0200 Subject: [PATCH] record screenshots --- .github/workflows/examples-workflow.yml | 8 ++++++++ .../src/test/resources/fluentlenium.properties | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 examples/quickstart-safari/src/test/resources/fluentlenium.properties diff --git a/.github/workflows/examples-workflow.yml b/.github/workflows/examples-workflow.yml index 770e277308..56d4930269 100644 --- a/.github/workflows/examples-workflow.yml +++ b/.github/workflows/examples-workflow.yml @@ -159,6 +159,14 @@ jobs: - name: Run safari examples with current branch run: ./mvnw -B -nsu -Pexamples -pl examples/quickstart-safari verify -Dfluentlenium.version=$FLUENTLENIUM_VERSION -Dselenium.version=$SELENIUM_VERSION + - name: Archive production artifacts + uses: actions/upload-artifact@v3 + if: always() # always run even if the previous step fails + with: + name: screenshots + path: | + examples/quickstart-safari/target/screenshots + - name: Publish Test reports uses: mikepenz/action-junit-report@v3 if: always() # always run even if the previous step fails diff --git a/examples/quickstart-safari/src/test/resources/fluentlenium.properties b/examples/quickstart-safari/src/test/resources/fluentlenium.properties new file mode 100644 index 0000000000..2df79e7cb7 --- /dev/null +++ b/examples/quickstart-safari/src/test/resources/fluentlenium.properties @@ -0,0 +1,2 @@ +screenshotPath=target/screenshots +screenshotMode=AUTOMATIC_ON_FAIL \ No newline at end of file