Skip to content

Commit b7898de

Browse files
committed
test
1 parent fafef05 commit b7898de

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,25 @@ void shouldChangeDocumentURLAfterRedirectedNavigationOnClick() {
218218
@Test
219219
void shouldGoBackToRedirectedNavigation() {
220220
Path path = Paths.get("src/test/resources/har-redirect.har");
221+
System.err.println("shouldGoBackToRedirectedNavigation#1");
221222
context.routeFromHAR(path, new BrowserContext.RouteFromHAROptions().setUrl(Pattern.compile(".*theverge.*")));
223+
System.err.println("shouldGoBackToRedirectedNavigation#2");
222224
Page page = context.newPage();
225+
System.err.println("shouldGoBackToRedirectedNavigation#3");
223226
page.navigate("https://theverge.com/");
227+
System.err.println("shouldGoBackToRedirectedNavigation#4");
224228
page.navigate(server.EMPTY_PAGE);
229+
System.err.println("shouldGoBackToRedirectedNavigation#5");
225230
assertThat(page).hasURL(server.EMPTY_PAGE);
231+
System.err.println("shouldGoBackToRedirectedNavigation#6");
226232
Response response = page.goBack();
233+
System.err.println("shouldGoBackToRedirectedNavigation#7");
227234
assertThat(page).hasURL("https://www.theverge.com/");
235+
System.err.println("shouldGoBackToRedirectedNavigation#8");
228236
assertEquals("https://www.theverge.com/", response.request().url());
237+
System.err.println("shouldGoBackToRedirectedNavigation#9");
229238
assertEquals("https://www.theverge.com/", page.evaluate("location.href"));
239+
System.err.println("shouldGoBackToRedirectedNavigation#10");
230240
}
231241

232242
@Test

0 commit comments

Comments
 (0)