From 2253890e8590bbe0bda94ede737ce13da047b804 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Sat, 24 Aug 2024 16:28:04 +0200 Subject: [PATCH] update tests --- apps/remix-ide-e2e/src/tests/dgit_github.test.ts | 15 +++++++++++++++ .../workspace/src/lib/remix-ui-workspace.tsx | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) 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 f9c638ebe9..80e4326620 100644 --- a/apps/remix-ide-e2e/src/tests/dgit_github.test.ts +++ b/apps/remix-ide-e2e/src/tests/dgit_github.test.ts @@ -18,6 +18,15 @@ module.exports = { clickLaunchIcon('dgit') .waitForElementVisible('*[data-id="initgit-btn"]') .click('*[data-id="initgit-btn"]') + }, + 'launch github login via FE #group1 #group2': function (browser: NightwatchBrowser) { + browser + .clickLaunchIcon('filePanel') + .waitForElementVisible('*[data-id="filepanel-login-github"]') + .click('*[data-id="filepanel-login-github"]') + }, + 'login to github #group1 #group2': function (browser: NightwatchBrowser) { + browser .waitForElementVisible('*[data-id="github-panel"]') .click('*[data-id="github-panel"]') .waitForElementVisible('*[data-id="gitubUsername"]') @@ -32,8 +41,14 @@ module.exports = { .waitForElementVisible('*[data-id="connected-img-bunsenstraat"]') .waitForElementVisible('*[data-id="connected-link-bunsenstraat"]') }, + 'check the FE for the auth user #group1 #group2': function (browser: NightwatchBrowser) { + browser + .clickLaunchIcon('filePanel') + .waitForElementVisible('*[data-id="connected-img-bunsenstraat"]') + }, 'clone a repository #group1': function (browser: NightwatchBrowser) { browser + .clickLaunchIcon('dgit') .click('*[data-id="clone-panel"]') .click({ selector: '//*[@data-id="clone-panel-content"]//*[@data-id="fetch-repositories"]', 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 f4725ca88e..3efe40088e 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -977,7 +977,7 @@ export function Workspace() { tooltipClasses="text-nowrap" tooltipText={} > -
+
logInGithub() } className="fa-brands fa-github-alt text-success ml-2 align-self-center" style={{ fontSize: '1.1rem' }} aria-hidden="true"> logInGithub() } className="ml-1 text-success"> Sign in