update tests

pull/5370/head
bunsenstraat 3 months ago
parent 22a2240a13
commit 2253890e85
  1. 15
      apps/remix-ide-e2e/src/tests/dgit_github.test.ts
  2. 2
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -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"]',

@ -977,7 +977,7 @@ export function Workspace() {
tooltipClasses="text-nowrap"
tooltipText={<FormattedMessage id="filePanel.logInGithub" />}
>
<div className='d-flex'>
<div data-id='filepanel-login-github' className='d-flex'>
<i onClick={() => logInGithub() } className="fa-brands fa-github-alt text-success ml-2 align-self-center" style={{ fontSize: '1.1rem' }} aria-hidden="true"></i>
<span onClick={() => logInGithub() } className="ml-1 text-success"> Sign in </span>
</div>

Loading…
Cancel
Save