-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): deleting vcs provider no longer breaks module page
- Loading branch information
Showing
7 changed files
with
84 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package integration | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/chromedp/cdproto/input" | ||
"github.com/chromedp/chromedp" | ||
) | ||
|
||
// TestIntegration_VCSProviderUI demonstrates management of vcs providers via | ||
// the UI. | ||
func TestIntegration_VCSProviderUI(t *testing.T) { | ||
integrationTest(t) | ||
|
||
daemon, org, ctx := setup(t, nil) | ||
|
||
browser.Run(t, ctx, chromedp.Tasks{ | ||
// go to org | ||
chromedp.Navigate(organizationURL(daemon.Hostname(), org.Name)), | ||
screenshot(t, "organization_main_menu"), | ||
// go to vcs providers | ||
chromedp.Click("#vcs_providers > a", chromedp.ByQuery), | ||
screenshot(t, "vcs_providers_list"), | ||
// click 'New Github VCS Provider' button | ||
chromedp.Click(`//button[text()='New Github VCS Provider']`), | ||
screenshot(t, "new_github_vcs_provider_form"), | ||
// enter fake github token and name | ||
chromedp.Focus("textarea#token", chromedp.NodeVisible, chromedp.ByQuery), | ||
input.InsertText("fake-github-personal-token"), | ||
chromedp.Focus("input#name", chromedp.ByQuery), | ||
input.InsertText("my-token"), | ||
// submit form to create provider | ||
chromedp.Submit("textarea#token", chromedp.ByQuery), | ||
matchText(t, "//div[@role='alert']", "created provider: my-token"), | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters