Skip to content

Commit

Permalink
Set response.status in bidi (#2817)
Browse files Browse the repository at this point in the history
* Set Response.Status in bidi

* exclude falky test
  • Loading branch information
kblok authored Nov 4, 2024
1 parent 53abf4d commit 42e30df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@
"parameters": ["chrome"],
"expectations": ["FAIL"]
},
{
"comment": "This is flaky on CI/CD",
"testIdPattern": "[worker.spec] Workers Page.workers",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["chrome"],
"expectations": ["FAIL"]
},
{
"comment": "",
"testIdPattern": "[puppeteer-sharp] *",
Expand Down Expand Up @@ -338,21 +345,6 @@
"FAIL"
]
},
{
"comment": "This is part of organizing the webdriver bidi implementation, We will remove it one by one",
"testIdPattern": "[navigation.spec] *should navigate to empty page with domcontentloaded*",
"platforms": [
"darwin",
"linux",
"win32"
],
"parameters": [
"webDriverBiDi"
],
"expectations": [
"FAIL"
]
},
{
"comment": "This is part of organizing the webdriver bidi implementation, We will remove it one by one",
"testIdPattern": "[navigation.spec] *should not throw an error for a 500 response with an empty body*",
Expand Down
2 changes: 2 additions & 0 deletions lib/PuppeteerSharp/Bidi/BidiHttpResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// * SOFTWARE.

using System.Net;
using System.Threading.Tasks;

namespace PuppeteerSharp.Bidi;
Expand All @@ -34,6 +35,7 @@ private BidiHttpResponse(WebDriverBiDi.Network.ResponseData data, BidiHttpReques
{
_data = data;
_request = request;
Status = (HttpStatusCode)data.Status;
}

/// <inheritdoc />
Expand Down

0 comments on commit 42e30df

Please sign in to comment.