From 24c6bba6dee930f7c1cac8271931b8ff392b5588 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Sat, 24 Aug 2024 16:41:04 +0200 Subject: [PATCH] fix test --- apps/remix-ide-e2e/src/tests/dgit_github.test.ts | 2 +- apps/remix-ide/src/app/files/dgitProvider.ts | 3 --- libs/remix-ui/git/src/components/gitui.tsx | 1 - libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/dgit_github.test.ts b/apps/remix-ide-e2e/src/tests/dgit_github.test.ts index 1a7c3d73d1..46b94b986c 100644 --- a/apps/remix-ide-e2e/src/tests/dgit_github.test.ts +++ b/apps/remix-ide-e2e/src/tests/dgit_github.test.ts @@ -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 diff --git a/apps/remix-ide/src/app/files/dgitProvider.ts b/apps/remix-ide/src/app/files/dgitProvider.ts index d46ca957af..9d4b01091c 100644 --- a/apps/remix-ide/src/app/files/dgitProvider.ts +++ b/apps/remix-ide/src/app/files/dgitProvider.ts @@ -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: diff --git a/libs/remix-ui/git/src/components/gitui.tsx b/libs/remix-ui/git/src/components/gitui.tsx index 370f4d8d24..aaa29c5a84 100644 --- a/libs/remix-ui/git/src/components/gitui.tsx +++ b/libs/remix-ui/git/src/components/gitui.tsx @@ -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)) } diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 6cb9969980..19285b9f2b 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -986,7 +986,7 @@ export function Workspace() { tooltipClasses="text-nowrap" tooltipText={appContext.appState.gitHubUser && intl.formatMessage({ id: 'filePanel.gitHubLoggedAs' }, { githubuser: appContext.appState.gitHubUser.login }) || ''} > - + }