Skip to content

Commit

Permalink
Temporarily remove browser test from scenarios. This is a very new te…
Browse files Browse the repository at this point in the history
…st that will come

back in an improved form in #30632
  • Loading branch information
andrewvc committed Aug 31, 2022
1 parent 00152e3 commit 54c1cd5
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions x-pack/heartbeat/scenarios/scenarios.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"fmt"
"net/http/httptest"
"net/url"
"os"
"sync"

"github.com/elastic/elastic-agent-libs/mapstr"
Expand Down Expand Up @@ -70,30 +69,5 @@ var Scenarios = &ScenarioDB{
}, func() {}, nil
},
},
{
Name: "simple-browser",
Type: "browser",
Tags: []string{"browser", "browser-inline"},
Runner: func() (config mapstr.M, close func(), err error) {
err = os.Setenv("ELASTIC_SYNTHETICS_CAPABLE", "true")
if err != nil {
return nil, nil, err
}
server := httptest.NewServer(hbtest.HelloWorldHandler(200))
config = mapstr.M{
"id": "browser-test-id",
"name": "browser-test-name",
"type": "browser",
"schedule": "@every 1m",
"hosts": []string{"127.0.0.1"},
"source": mapstr.M{
"inline": mapstr.M{
"script": fmt.Sprintf("step('load server', async () => {await page.goto('%s')})", server.URL),
},
},
}
return config, server.Close, nil
},
},
},
}

0 comments on commit 54c1cd5

Please sign in to comment.