Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions agent/isobuilder/ui_driven_cluster_installation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,27 @@ func main() {

next(page)

// Wait for page to load
time.Sleep(10 * time.Second)

logrus.Info("Custom manifests")
err = saveFullPageScreenshot(page, filepath.Join(screenshotPath, "07-custom-manifests.png"))
if err != nil {
log.Fatalf("failed custom manifests screenshot: %v", err)
}

next(page)

logrus.Info("Review and start cluster installation")
err = review(page, filepath.Join(screenshotPath, "07-review.png"))
err = review(page, filepath.Join(screenshotPath, "08-review.png"))
if err != nil {
log.Fatalf("failed review page: %v", err)
}

logrus.Info("Cluster installation started successfully.")
page.MustElementR("h2", "Installation progress")

err = waitForClusterConsoleLink(page, filepath.Join(screenshotPath, "08-installation-progress"))
err = waitForClusterConsoleLink(page, filepath.Join(screenshotPath, "09-installation-progress"))
if err != nil {
log.Fatalf("%v", err)
}
Expand Down Expand Up @@ -216,7 +227,7 @@ func downloadCredentials(page *rod.Page, client *resty.Client, path string) erro
page.MustElement("#credentials-download-agreement").MustClick()
time.Sleep(5 * time.Second)

page.MustElementR("button", "Download credentials").MustWaitEnabled()
page.MustElementR("button", "Download credentials").MustWaitEnabled().MustClick()

err = saveFullPageScreenshot(page, path)
if err != nil {
Expand Down