Skip to content

Commit

Permalink
Make e2e tests more reliable (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
leg100 authored Jan 30, 2023
1 parent 3e0ead7 commit fa1a01a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ go-tfe-tests: build

.PHONY: e2e
e2e: build
go test -v ./e2e -failfast -timeout 120s -count 1
go test -v ./e2e -failfast -timeout 600s -count 1

.PHONY: unit
unit:
Expand Down
3 changes: 3 additions & 0 deletions e2e/connect_repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,18 @@ func TestConnectRepo(t *testing.T) {
matchText(t, ".flash-success", "disconnected workspace from repo"),
// go to workspace settings
chromedp.Click(`//a[text()='settings']`, chromedp.NodeVisible),
screenshot(t),
// delete workspace
chromedp.Click(`//button[text()='Delete workspace']`, chromedp.NodeVisible),
screenshot(t),
// confirm deletion
matchText(t, ".flash-success", "deleted workspace: "+workspaceName),
//
// delete vcs provider
//
// go to org
chromedp.Navigate(path.Join(url, "organizations", org)),
screenshot(t),
// go to vcs providers
chromedp.Click("#vcs_providers > a", chromedp.NodeVisible),
screenshot(t),
Expand Down
1 change: 1 addition & 0 deletions e2e/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func (d *daemon) start(t *testing.T) string {
"--cert-file", "./fixtures/cert.crt",
"--key-file", "./fixtures/key.pem",
"--dev-mode=false",
"--plugin-cache", // speed up tests by caching providers
"--database", database,
)

Expand Down

0 comments on commit fa1a01a

Please sign in to comment.