Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and fix spelling issues and errors #5899

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion apps/circuit-compiler/src/app/components/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function Container () {
</label>
<CustomTooltip
placement="bottom"
tooltipId="showCircumCompilerTooltip"
tooltipId="showCircomCompilerTooltip"
tooltipClasses="text-nowrap"
tooltipText='See compiler license'
>
Expand Down
2 changes: 1 addition & 1 deletion apps/remix-ide-e2e/src/commands/addLocalPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function addLocalPlugin (browser: NightwatchBrowser, profile: Profile & Location
.click('*[data-id="localPluginRadioButtoniframe"]')
.click(profile.location === 'sidePanel' ? '*[data-id="localPluginRadioButtonsidePanel"]' : '*[data-id="localPluginRadioButtonmainPanel"]')
.click('*[data-id="pluginManagerLocalPluginModalDialogModalDialogModalFooter-react"]')
.click('*[data-id="pluginManagerLocalPluginModalDialog-modal-footer-ok-react')
.click('*[data-id="pluginManagerLocalPluginModalDialog-modal-footer-ok-react"]')
.perform((done) => {
if (focus) {
browser.waitForElementVisible(`[data-id="verticalIconsKind${profile.name}"]`)
Expand Down
2 changes: 1 addition & 1 deletion apps/remix-ide-e2e/src/commands/checkTerminalFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CheckTerminalFilter extends EventEmitter {
}

function checkFilter (browser: NightwatchBrowser, filter: string, inputTest: string, notContain: boolean, done: VoidFunction) {
/*if (browser.options.desiredCapabilities.browserName === 'chrome') { // nightwatch deos not handle well that part.... works locally
/*if (browser.options.desiredCapabilities.browserName === 'chrome') { // nightwatch does not handle well that part.... works locally
done()
return
}*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class ConnectToExternalHttpProvider extends EventEmitter {
.switchEnvironment('basic-http-provider')
.waitForElementPresent('[data-id="basic-http-provider-modal-footer-ok-react"]')
.execute(() => {
(document.querySelector('*[data-id="basic-http-providerModalDialogContainer-react"] input[data-id="modalDialogCustomPromp"]') as any).focus()
(document.querySelector('*[data-id="basic-http-providerModalDialogContainer-react"] input[data-id="modalDialogCustomPrompt"]') as any).focus()
}, [], () => { })
.setValue('[data-id="modalDialogCustomPromp"]', url)
.setValue('[data-id="modalDialogCustomPrompt"]', url)
.modalFooterOKClick('basic-http-provider')
.perform((done) => {
done()
Expand Down
4 changes: 2 additions & 2 deletions apps/remix-ide-e2e/src/commands/getInstalledPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ class GetInstalledPlugins extends EventEmitter {
command (this: NightwatchBrowser, cb: (plugins: string[]) => void): NightwatchBrowser {
const browser = this.api

browser.waitForElementPresent('[plugin]:not([plugin=""]')
browser.waitForElementPresent('[plugin]:not([plugin=""])')
.perform((done) => {
browser.execute(function () {
const pluginNames = []
const plugins = document.querySelectorAll('[plugin]:not([plugin=""]')
const plugins = document.querySelectorAll('[plugin]:not([plugin=""])')

plugins.forEach(plugin => {
pluginNames.push(plugin.getAttribute('plugin'))
Expand Down
2 changes: 1 addition & 1 deletion apps/remix-ide-e2e/src/commands/hideMetaMaskPopup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class HideMetaMaskPopup extends EventEmitter {
display:none !important;
}
`)
}, [], done())
}, [], done)
})
.perform((done) => {
done()
Expand Down
4 changes: 2 additions & 2 deletions apps/remix-ide-e2e/src/commands/openFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function openFile (browser: NightwatchBrowser, name: string, done: VoidFunction)

})
})
.waitForElementVisible('li[data-id="treeViewLitreeViewItem' + name + '"', 60000)
.click('li[data-id="treeViewLitreeViewItem' + name + '"')
.waitForElementVisible('li[data-id="treeViewLitreeViewItem' + name + '"]', 60000)
.click('li[data-id="treeViewLitreeViewItem' + name + '"]')
.pause(2000)
.perform(() => {
done()
Expand Down
4 changes: 2 additions & 2 deletions apps/remix-ide-e2e/src/commands/validateValueInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { NightwatchBrowser } from 'nightwatch'
import EventEmitter from 'events'

class ValidateValueInput extends EventEmitter {
command (this: NightwatchBrowser, selector: string, valueTosSet: string[], expectedValue: string) {
command (this: NightwatchBrowser, selector: string, valueToSet: string[], expectedValue: string) {
const browser = this.api
browser.perform((done) => {
browser
.click(selector)
.sendKeys(selector, browser.Keys.BACK_SPACE + browser.Keys.BACK_SPACE + browser.Keys.BACK_SPACE + browser.Keys.BACK_SPACE)
.sendKeys(selector, valueTosSet)
.sendKeys(selector, valueToSet)
.pause(500)
.execute(function (selector) {
const elem = document.querySelector(selector) as HTMLInputElement
Expand Down
4 changes: 2 additions & 2 deletions apps/remix-ide-e2e/src/local-plugin/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, {useEffect, useState} from 'react'
import {RemixPlugin} from './Client'
import {Logger} from './logger'
import {filePanelProfile} from '@remixproject/plugin-api'
import {filSystemProfile} from '@remixproject/plugin-api'
import {fileSystemProfile} from '@remixproject/plugin-api'
import {editorProfile} from '@remixproject/plugin-api'
import {settingsProfile} from '@remixproject/plugin-api'
import {networkProfile} from '@remixproject/plugin-api'
Expand Down Expand Up @@ -30,7 +30,7 @@ function App() {
const [profiles, setProfiles] = useState<Profile[]>([
pluginManagerProfile,
filePanelProfile,
filSystemProfile,
fileSystemProfile,
dGitProfile,
networkProfile,
settingsProfile,
Expand Down
8 changes: 4 additions & 4 deletions apps/remix-ide-e2e/src/tests/code_format.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = {
}

const unformattedContract = `pragma solidity >=0.4.22 <0.9.0;
contract unfomattedContract {
contract unformattedContract {

bytes32[] proposalNames;
function beforeAll () public {
Expand All @@ -81,7 +81,7 @@ proposalNames.push(bytes32("candidate1"));

const formattedContract = `pragma solidity >=0.4.22 <0.9.0;

contract unfomattedContract {
contract unformattedContract {
bytes32[] proposalNames;

function beforeAll() public {
Expand All @@ -92,7 +92,7 @@ contract unfomattedContract {

const formattedWithTabWidth2 = `pragma solidity >=0.4.22 <0.9.0;

contract unfomattedContract {
contract unformattedContract {
bytes32[] proposalNames;

function beforeAll() public {
Expand Down Expand Up @@ -138,4 +138,4 @@ const defaultPrettierOptions = {
"options": {}
}
]
}
}
4 changes: 2 additions & 2 deletions apps/remix-ide-e2e/src/tests/dgit_github.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ module.exports = {
'login to github #group1 #group2': function (browser: NightwatchBrowser) {
browser
.waitForElementVisible('*[data-id="github-panel"]')
.waitForElementVisible('*[data-id="gitubUsername"]')
.waitForElementVisible('*[data-id="githubUsername"]')
.setValue('*[data-id="githubToken"]', process.env.dgit_token)
.pause(1000)
.setValue('*[data-id="gitubUsername"]', 'git')
.setValue('*[data-id="githubUsername"]', 'git')
.pause(1000)
.setValue('*[data-id="githubEmail"]', '[email protected]')
.pause(1000)
Expand Down