From 0a401b2d86a39df85e57ad30bcec9ef81618abd0 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 19 Apr 2022 09:36:38 -0700 Subject: [PATCH] docs: clarify semantics of redirected response (#13636) --- docs/src/api/class-page.md | 4 ++-- packages/playwright-core/types/types.d.ts | 4 ++-- tests/config/experimental.d.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md index 9bcf7e1ba5..38b47e2de0 100644 --- a/docs/src/api/class-page.md +++ b/docs/src/api/class-page.md @@ -2018,8 +2018,8 @@ Navigate to the next page in history. - alias-java: navigate - returns: <[null]|[Response]> -Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the -last redirect. +Returns the main resource response. In case of multiple redirects, the navigation will resolve with the first +non-redirect response. The method will throw an error if: * there's an SSL error (e.g. in case of self-signed certificates). diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index babfb25cab..c90f8a5587 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -2296,8 +2296,8 @@ export interface Page { }): Promise; /** - * Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the - * last redirect. + * Returns the main resource response. In case of multiple redirects, the navigation will resolve with the first + * non-redirect response. * * The method will throw an error if: * - there's an SSL error (e.g. in case of self-signed certificates). diff --git a/tests/config/experimental.d.ts b/tests/config/experimental.d.ts index 1525ad4f11..880333a64f 100644 --- a/tests/config/experimental.d.ts +++ b/tests/config/experimental.d.ts @@ -2298,8 +2298,8 @@ export interface Page { }): Promise; /** - * Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the - * last redirect. + * Returns the main resource response. In case of multiple redirects, the navigation will resolve with the first + * non-redirect response. * * The method will throw an error if: * - there's an SSL error (e.g. in case of self-signed certificates).