fix e2e caused by showFlattener && git push

;
pull/5370/head
Joseph Izang 2 years ago committed by Aniket
parent c9920104b7
commit 0a4d62d272
  1. 9
      apps/remix-ide-e2e/src/commands/clickLaunchIcon.ts
  2. 3
      libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx

@ -3,9 +3,14 @@ import EventEmitter from 'events'
class ClickLaunchIcon extends EventEmitter {
command (this: NightwatchBrowser, icon: string): NightwatchBrowser {
console.log(icon)
this.api
.waitForElementVisible('#icon-panel div[plugin="' + icon + '"]')
.click('#icon-panel div[plugin="' + icon + '"]')
.useXpath()
.assert.visible(`//*[@id="verticalIconsKind${icon}"]`)
// .waitForElementVisible('#icon-panel div[plugin="' + icon + '"]')
.click(`//*[@id="verticalIconsKind${icon}"]`)
.useCss()
// .click('#icon-panel div[plugin="' + icon + '"]')
.perform((done) => {
done()
this.emit('complete')

@ -237,6 +237,7 @@ export const ContractSelection = (props: ContractSelectionProps) => {
const showFlattener = () => {
const confirmNodeType = api.getCompilationResult().data.sources[api.currentFile]
.ast && api.getCompilationResult().data.sources[api.currentFile]
.ast.nodes.some(x => x.nodeType === 'ImportDirective')
const currentFile = api.currentFile.split('/')[1]
const contractListConfirm = contractList.some(x => x.file === currentFile)
@ -256,7 +257,7 @@ export const ContractSelection = (props: ContractSelectionProps) => {
</select>
</div>
<article className="mt-2 pb-0">
{showFlattener() && <CustomTooltip
{showFlattener && <CustomTooltip
placement="right-start"
tooltipId="flattenContractTooltip"
tooltipClasses="text-nowrap"

Loading…
Cancel
Save