Skip to content

Commit fafef05

Browse files
committed
with debug logs
1 parent 8e98e3f commit fafef05

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
os: [ubuntu-latest, windows-latest, macos-latest]
2020
browser: [chromium, firefox, webkit]
2121
runs-on: ${{ matrix.os }}
22+
env:
23+
DEBUG: pw:api
2224
steps:
2325
- uses: actions/checkout@v4
2426
- name: Set up JDK 1.8

playwright/src/test/java/com/microsoft/playwright/TestBrowserContextHar.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
import com.microsoft.playwright.options.HarMode;
2121
import com.microsoft.playwright.options.HarNotFound;
2222
import com.microsoft.playwright.options.RouteFromHarUpdateContentPolicy;
23+
24+
import org.junit.jupiter.api.AfterEach;
25+
import org.junit.jupiter.api.BeforeEach;
2326
import org.junit.jupiter.api.Test;
27+
import org.junit.jupiter.api.TestInfo;
2428
import org.junit.jupiter.api.condition.DisabledIf;
2529
import org.junit.jupiter.api.io.TempDir;
2630

@@ -44,6 +48,16 @@
4448
import static org.junit.jupiter.api.Assertions.*;
4549

4650
public class TestBrowserContextHar extends TestBase {
51+
@BeforeEach
52+
void BeforeEach(TestInfo testInfo) {
53+
System.out.println("BeforeEach::displayName = " + testInfo.getDisplayName());
54+
}
55+
56+
@AfterEach
57+
void AfterEach(TestInfo testInfo) {
58+
System.out.println("AfterEach::displayName = " + testInfo.getDisplayName());
59+
}
60+
4761
@Test
4862
void shouldContextRouteFromHARMatchingTheMethodAndFollowingRedirects() {
4963
Path path = Paths.get("src/test/resources/har-fulfill.har");

0 commit comments

Comments
 (0)