largegittest2
bunsenstraat 3 months ago
parent 10e18960a3
commit 24c6bba6de
  1. 2
      apps/remix-ide-e2e/src/tests/dgit_github.test.ts
  2. 3
      apps/remix-ide/src/app/files/dgitProvider.ts
  3. 1
      libs/remix-ui/git/src/components/gitui.tsx
  4. 2
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -43,7 +43,7 @@ module.exports = {
'check the FE for the auth user #group1 #group2': function (browser: NightwatchBrowser) {
browser
.clickLaunchIcon('filePanel')
.waitForElementVisible('*[data-id="connected-img-bunsenstraat"]')
.waitForElementVisible('*[data-id="filepanel-connected-img-bunsenstraat"]')
},
'clone a repository #group1': function (browser: NightwatchBrowser) {
browser

@ -1064,10 +1064,7 @@ class DGitProvider extends Plugin {
const emails = await octokit.request('GET /user/emails')
const scopes = user.headers['x-oauth-scopes'] || ''
console.log(scopes)
const scopesArr = scopes.split(',').map(scope => scope.trim())
console.log(scopesArr)
return {
user: {
...user.data, isConnected:

@ -72,7 +72,6 @@ export const GitUI = (props: IGitUi) => {
const username = await plugin.call('settings', 'get', 'settings/github-user-name')
const email = await plugin.call('settings', 'get', 'settings/github-email')
const token = await plugin.call('settings', 'get', 'settings/gist-access-token')
console.log('token', token, username, email)
setSetup(!(username && email))
}

@ -986,7 +986,7 @@ export function Workspace() {
tooltipClasses="text-nowrap"
tooltipText={appContext.appState.gitHubUser && intl.formatMessage({ id: 'filePanel.gitHubLoggedAs' }, { githubuser: appContext.appState.gitHubUser.login }) || ''}
>
<img width={20} height={20} data-id={`connected-img-${appContext.appState.gitHubUser && appContext.appState.gitHubUser.login}`} src={appContext.appState.gitHubUser && appContext.appState.gitHubUser.avatar_url} className="remixui_avatar_user ml-2" />
<img width={20} height={20} data-id={`filepanel-connected-img-${appContext.appState.gitHubUser && appContext.appState.gitHubUser.login}`} src={appContext.appState.gitHubUser && appContext.appState.gitHubUser.avatar_url} className="remixui_avatar_user ml-2" />
</CustomTooltip>
}
</span>

Loading…
Cancel
Save