Skip to content

Commit

Permalink
chore(ci): add logging to identify the cause of test flakes (#2287)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowalski committed Aug 7, 2022
1 parent 23299c3 commit 03159a1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/htmlui_e2e_test/htmlui_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ func TestEndToEndTest(t *testing.T) {
chromedp.Click("button[data-testid='provider-filesystem']"),
tc.captureScreenshot("filesystem-setup"),

tc.log("entering password"),
tc.log("entering repo path: "+repoPath),
chromedp.SendKeys("input[data-testid='control-path']", repoPath+"\n"),

tc.log("entering password"),
chromedp.SendKeys("input[data-testid='control-password']", "password1"),
chromedp.SendKeys("input[data-testid='control-confirmPassword']", "password1\n"),

Expand All @@ -133,8 +135,13 @@ func TestEndToEndTest(t *testing.T) {

tc.log("clicking new snapshot"),
chromedp.Click(`a[data-testid='new-snapshot']`),

tc.log("entering path:"+snap1Path),
chromedp.SendKeys(`input[name='path']`, snap1Path),

// sleep a bit to ensure all the keys in the long path get typed
chromedp.Sleep(500*time.Millisecond),

tc.log("clicking estimate"),
chromedp.Click(`button[data-testid='estimate-now']`),
tc.captureScreenshot("estimate-clicked"),
Expand Down

0 comments on commit 03159a1

Please sign in to comment.