fix chevron code. fix e2e

pull/1671/head
Joseph Izang 3 years ago
parent 7cf43423eb
commit 15084c1a1d
  1. 2
      apps/remix-ide-e2e/src/helpers/init.ts
  2. 1
      apps/remix-ide-e2e/src/tests/plugin_api.ts
  3. 2
      apps/remix-ide/src/app/components/side-panel.js
  4. 2
      libs/remix-ui/vertical-icons-panel/src/lib/components/Chevron.tsx

@ -5,7 +5,7 @@ require('dotenv').config()
export default function (browser: NightwatchBrowser, callback: VoidFunction, url?: string, preloadPlugins = true): void {
browser
.url(url || 'http://127.0.0.1:8080')
.pause(5000)
.pause(10000)
.switchBrowserTab(0)
.waitForElementVisible('[id="remixTourSkipbtn"]')
.click('[id="remixTourSkipbtn"]')

@ -112,6 +112,7 @@ const clickAndCheckLog = async (browser: NightwatchBrowser, buttonText: string,
if (methodResult && typeof methodResult !== 'string') { methodResult = JSON.stringify(methodResult) }
if (eventResult && typeof eventResult !== 'string') { eventResult = JSON.stringify(eventResult) }
if (buttonText) {
console.log('this is buttonText in this test', buttonText)
await clickButton(browser, buttonText)
}
await debugValues(browser, 'methods', methodResult)

@ -103,7 +103,7 @@ export class SidePanel extends AbstractPanel {
addView (profile, view) {
super.addView(profile, view)
setTimeout(() => this.verticalIcons.linkContent(profile), 150)
this.verticalIcons.linkContent(profile)
}
/**

@ -9,7 +9,7 @@ export interface ChevronProps {
function Chevron (props: ChevronProps) {
return (
<>
{ props.divElementRef.current && props.divElementRef.current.scrollHeight > 600
{ props.divElementRef.current && props.divElementRef.current.scrollHeight > props.divElementRef.current.clientHeight
? <i className={props.cssRule}></i> : null }
</>
)

Loading…
Cancel
Save