Commit 2dc83bb 1 parent 7da4fdc commit 2dc83bb Copy full SHA for 2dc83bb
File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 27
27
node-version : 18.x
28
28
- run : yarn install
29
29
- run : yarn run build-full-test
30
+ - id : setup-chrome
31
+ uses : browser-actions/setup-chrome@v1
30
32
# set up a virtual display for chrome (since the tests don't currently run it in headless mode)
31
33
# then run the tests
32
- - run : |
34
+ - name : Run Tests
35
+ env :
36
+ CHROME_PATH : ${{ steps.setup-chrome.outputs.chrome-path }}
37
+ run : |
33
38
export DISPLAY=:99
34
39
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
35
40
yarn test
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @webrecorder/wombat" ,
3
- "version" : " 3.8.3 " ,
3
+ "version" : " 3.8.4 " ,
4
4
"main" : " index.js" ,
5
5
"license" : " AGPL-3.0-or-later" ,
6
6
"author" : " Ilya Kreymer, Webrecorder Software" ,
Original file line number Diff line number Diff line change @@ -4549,7 +4549,9 @@ Wombat.prototype.initHTTPOverrides = function() {
4549
4549
// responseURL override
4550
4550
this . overridePropExtract ( this . $wbwindow . XMLHttpRequest . prototype , 'responseURL' ) ;
4551
4551
4552
- if ( ! this . wb_info . isSW ) {
4552
+ var convertToGet = ! ! this . wb_info . convert_post_to_get ;
4553
+
4554
+ if ( ! this . wb_info . isSW && ! convertToGet ) {
4553
4555
if ( this . $wbwindow . XMLHttpRequest . prototype . open ) {
4554
4556
var origXMLHttpOpen = this . $wbwindow . XMLHttpRequest . prototype . open ;
4555
4557
this . utilFns . XHRopen = origXMLHttpOpen ;
@@ -4588,9 +4590,6 @@ Wombat.prototype.initHTTPOverrides = function() {
4588
4590
this . __WB_xhr_headers . set ( name , value ) ;
4589
4591
} ;
4590
4592
4591
- var wombat = this ;
4592
- var convertToGet = ! ! this . wb_info . convert_post_to_get ;
4593
-
4594
4593
this . $wbwindow . XMLHttpRequest . prototype . send = async function ( value ) {
4595
4594
if ( convertToGet && ( this . __WB_xhr_open_arguments [ 0 ] === 'POST' || this . __WB_xhr_open_arguments [ 0 ] === 'PUT' ) ) {
4596
4595
You can’t perform that action at this time.
0 commit comments