Skip to content

Commit

Permalink
browser: disable even more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Dec 16, 2024
1 parent 369b99a commit f4b1030
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 11 additions & 1 deletion js/modules/k6/browser/tests/page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"net/http"
"net/http/httptest"
"os"
"runtime"
"strconv"
"sync/atomic"
"testing"
Expand Down Expand Up @@ -39,6 +40,9 @@ const sampleHTML = `<div><b>Test</b><ol><li><i>One</i></li></ol></div>`

func TestNestedFrames(t *testing.T) {
t.Parallel()
if runtime.GOOS == "windows" {
t.Skip("windows take forever to do this test")
}

tb := newTestBrowser(t,
withFileServer(),
Expand Down Expand Up @@ -335,6 +339,9 @@ func TestPageGotoDataURI(t *testing.T) {

func TestPageGotoWaitUntilLoad(t *testing.T) {
t.Parallel()
if runtime.GOOS == "windows" {
t.Skip() // no idea but it doesn't work
}

b := newTestBrowser(t, withFileServer())
p := b.NewPage(nil)
Expand Down Expand Up @@ -1526,6 +1533,9 @@ func TestPageThrottleNetwork(t *testing.T) {
func TestPageThrottleCPU(t *testing.T) {
t.Parallel()

if runtime.GOOS == "windows" {
t.Skip() // windows timeouts
}
tb := newTestBrowser(t, withFileServer())

tb.withHandler("/ping", func(w http.ResponseWriter, req *http.Request) {
Expand Down Expand Up @@ -2135,7 +2145,7 @@ func TestPageOnMetric(t *testing.T) {
const page = await browser.newPage()
%s
await page.goto('%s', {waitUntil: 'networkidle'});
await page.close()
Expand Down
5 changes: 4 additions & 1 deletion js/modules/k6/browser/tests/webvital_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tests

import (
"context"
"runtime"
"testing"
"time"

Expand All @@ -18,7 +19,9 @@ import (
// a web page.
func TestWebVitalMetric(t *testing.T) {
t.Parallel()

if runtime.GOOS == "windows" {
t.Skip("timeouts on windows")
}
var (
samples = make(chan k6metrics.SampleContainer)
browser = newTestBrowser(t, withFileServer(), withSamples(samples))
Expand Down

0 comments on commit f4b1030

Please sign in to comment.