fix e2e caused by showFlattener && git push

;
pull/3321/head^2
Joseph Izang 2 years ago committed by Aniket
parent 565314b50a
commit a0f4e9d4ba
  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')

@ -234,6 +234,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)
@ -253,7 +254,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