largegittest2
yann300 3 months ago
parent 1ed9a0be72
commit 7508a1d976
  1. 5
      apps/remix-ide-e2e/src/tests/dgit_github.test.ts
  2. 5
      apps/remix-ide-e2e/src/tests/dgit_local.test.ts
  3. 5
      apps/remix-ide-e2e/src/tests/workspace_git.test.ts
  4. 4
      libs/remix-ui/git/src/components/gitui.tsx

@ -16,9 +16,8 @@ module.exports = {
'Update settings for git #group1 #group2': function (browser: NightwatchBrowser) {
browser.
clickLaunchIcon('dgit')
// .waitForElementVisible('*[data-id="initgit-btn"]')
// .click('*[data-id="initgit-btn"]')
.waitForElementVisible('*[data-id="githubToken"]')
.waitForElementVisible('*[data-id="initgit-btn"]')
.click('*[data-id="initgit-btn"]')
.setValue('*[data-id="githubToken"]', process.env.dgit_token)
.setValue('*[data-id="gitubUsername"]', 'git')
.setValue('*[data-id="githubEmail"]', 'git@example.com')

@ -34,9 +34,8 @@ module.exports = {
'Update settings for git #group1 #group2 #group3 #group4': function (browser: NightwatchBrowser) {
browser.
clickLaunchIcon('dgit')
// .waitForElementVisible('*[data-id="initgit-btn"]')
// .click('*[data-id="initgit-btn"]')
.waitForElementVisible('*[data-id="gitubUsername"]')
.waitForElementVisible('*[data-id="initgit-btn"]')
.click('*[data-id="initgit-btn"]')
.setValue('*[data-id="gitubUsername"]', 'git')
.setValue('*[data-id="githubEmail"]', 'git@example.com')
.click('*[data-id="saveGitHubCredentials"]')

@ -421,9 +421,8 @@ module.exports = {
'Update settings for git #group5': function (browser: NightwatchBrowser) {
browser.
clickLaunchIcon('dgit')
// .waitForElementVisible('*[data-id="initgit-btn"]')
// .click('*[data-id="initgit-btn"]')
.waitForElementVisible('*[data-id="gitubUsername"]')
.waitForElementVisible('*[data-id="initgit-btn"]')
.click('*[data-id="initgit-btn"]')
.setValue('*[data-id="gitubUsername"]', 'git')
.setValue('*[data-id="githubEmail"]', 'git@example.com')
.click('*[data-id="saveGitHubCredentials"]')

@ -174,8 +174,8 @@ export const GitUI = (props: IGitUi) => {
<pluginActionsContext.Provider value={pluginActionsProviderValue}>
<BranchHeader />
{setup ? <Setup></Setup> : null}
{!setup && needsInit ? <Init></Init> : null}
{setup && !needsInit ? <Setup></Setup> : null}
{needsInit ? <Init></Init> : null}
{!setup && !needsInit ?
<Accordion activeKey={activePanel} defaultActiveKey="0" className="">
<GitHubNavigation eventKey={gitUIPanels.GITHUB} activePanel={activePanel} callback={setActivePanel} />

Loading…
Cancel
Save