-
Notifications
You must be signed in to change notification settings - Fork 4.5k
chore: removing branch protection trigger from git connect flow #34118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ export class GitSync { | |
| public _gitSyncModal = "[data-testid=t--git-sync-modal]"; | ||
| private _closeGitSyncModal = | ||
| "//div[@data-testid='t--git-sync-modal']//button[@aria-label='Close']"; | ||
| private _closeGitSettingsModal = | ||
| public _closeGitSettingsModal = | ||
| "//div[@data-testid='t--git-settings-modal']//button[@aria-label='Close']"; | ||
| //private _closeGitSyncModal = ".ads-v2-modal__content-header-close-button"; | ||
| private _gitRepoInput = | ||
|
|
@@ -118,7 +118,6 @@ export class GitSync { | |
| repoName = "Repo", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be better to assign all items to public/private explicitly for clarity. In most cases, not all of these variables are to be public.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All the items are already explicitly marked as private/public. |
||
| assertConnect = true, | ||
| privateFlag = false, | ||
| removeDefaultBranchProtection = true, | ||
| ) { | ||
| this.agHelper.GenerateUUID(); | ||
| cy.get("@guid").then((uid) => { | ||
|
|
@@ -181,19 +180,6 @@ export class GitSync { | |
| this.agHelper.AssertElementExist(this._bottomBarCommit, 0, 30000); | ||
| } | ||
|
|
||
| if (removeDefaultBranchProtection) { | ||
| cy.wait([`@protected-${repoName}`, `@branches-${repoName}`]).then( | ||
| (interceptions) => { | ||
| if ( | ||
| interceptions[0]?.response?.statusCode === 200 && | ||
| interceptions[1]?.response?.statusCode === 200 | ||
| ) { | ||
| this.clearBranchProtection(); | ||
| } | ||
| }, | ||
| ); | ||
| } | ||
|
|
||
| cy.wrap(repoName).as("gitRepoName"); | ||
| }); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.