6ab2647adb
We have implemented few UI tests using go-rod, but haven't been running them regularly. Change-Id: I6c89365f719882431842a2026b426860f1293b8b
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
|
|
}
|