Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 2 additions & 4 deletions agent/iso_no_registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,10 @@ function cleanup_diskspace_agent_iso_noregistry() {
for dir in "$asset_dir"/[0-9]*.[0-9]*.*; do
[ -d "$dir" ] || continue

echo "Cleaning up directory: $dir"

# Delete all files and symlinks except the agent-ove ISO
sudo find "$dir" \( -type f -o -type l \) ! -name "agent-ove.${ARCH}.iso" -print -delete
sudo find "$dir" \( -type f -o -type l \) ! -name "agent-ove.${ARCH}.iso" -delete

# Remove any empty directories left behind
sudo find "$dir" -type d -empty -print -delete
sudo find "$dir" -type d -empty -delete
done
}
33 changes: 32 additions & 1 deletion agent/isobuilder/ui_driven_cluster_installation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,38 @@ func virtualizationBundle(page *rod.Page, path string) error {
}

wait(5 * time.Second)
page.MustElement("button[name='next']").MustWaitEnabled().MustScrollIntoView().MustWaitEnabled()

logrus.Info("Looking for next button")
nextButton := page.MustElement("button[name='next']")
logrus.Info("Found next button")
err = saveFullPageScreenshot(page, timestampedPath(path, "next-button-found"))
if err != nil {
return err
}

logrus.Info("Waiting for the next button to be enabled")
wait(5 * time.Second)
nextButton.MustWaitEnabled()
err = saveFullPageScreenshot(page, timestampedPath(path, "next-button-enabled-1"))
if err != nil {
return err
}

logrus.Info("Waiting for the next button to be available in scrollable page")
wait(5 * time.Second)
nextButton.MustScrollIntoView()
err = saveFullPageScreenshot(page, timestampedPath(path, "next-button-scrollable"))
if err != nil {
return err
}

logrus.Info("Waiting for the next button to be enabled")
wait(5 * time.Second)
nextButton.MustWaitEnabled()
err = saveFullPageScreenshot(page, timestampedPath(path, "next-button-enabled-2"))
if err != nil {
return err
}

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