20 lines
396 B
Go
20 lines
396 B
Go
|
// Copyright (C) 2021 Storj Labs, Inc.
|
||
|
// See LICENSE for copying information.
|
||
|
|
||
|
package satellite_test
|
||
|
|
||
|
import (
|
||
|
"github.com/go-rod/rod"
|
||
|
)
|
||
|
|
||
|
func waitVueTick(page *rod.Page) {
|
||
|
page.MustEval("VueNextTick()")
|
||
|
}
|
||
|
|
||
|
func openPage(browser *rod.Browser, url string) *rod.Page {
|
||
|
page := browser.MustPage()
|
||
|
page.MustSetViewport(1350, 600, 1, false)
|
||
|
page.MustNavigate(url).MustWaitLoad()
|
||
|
return page
|
||
|
}
|