upload playwright artifacts on test failure to help debug what went wrong

This commit is contained in:
Athou
2024-06-14 07:59:26 +02:00
parent 24943b868c
commit b3651f3fba
2 changed files with 9 additions and 1 deletions

View File

@@ -40,6 +40,14 @@ jobs:
name: commafeed.jar name: commafeed.jar
path: commafeed-server/target/commafeed.jar path: commafeed-server/target/commafeed.jar
- name: Upload Playwright artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-artifacts
path: |
**/target/playwright-artifacts/
# Docker # Docker
- name: Login to Container Registry - name: Login to Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3

View File

@@ -34,7 +34,7 @@ import com.microsoft.playwright.Tracing;
* *
*/ */
@ExtendWith(PlaywrightTestBase.SaveArtifactsOnTestFailed.class) @ExtendWith(PlaywrightTestBase.SaveArtifactsOnTestFailed.class)
public class PlaywrightTestBase { public abstract class PlaywrightTestBase {
private static Playwright playwright; private static Playwright playwright;
private static Browser browser; private static Browser browser;