pull/2868/head
filip mertens 2 years ago
parent 6819a96f7c
commit 40629c5d5c
  1. 2
      apps/remix-ide-e2e/src/tests/ballot.test.ts
  2. 4
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -153,7 +153,7 @@ module.exports = {
})
.waitForElementVisible('*[data-id="scConfigFilePathInput"]', 10000)
.sendKeys('*[data-id="scConfigFilePathInput"]', 'compiler_config.json')
.sendKeys('*[data-id="scConfigFilePathInput"]', 'cf.json')
.sendKeys('*[data-id="scConfigFilePathInput"]', browser.Keys.ENTER)
.isVisible({

@ -239,7 +239,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
}
const openFile = async () => {
api.open(configFilePath)
await api.open(configFilePath)
}
const createNewConfigFile = async () => {
@ -826,7 +826,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
<div className={`pt-2 ml-4 ml-2 align-items-start justify-content-between d-flex`}>
{ (!showFilePathInput && state.useFileConfiguration) && <span
title="Click to open the config file"
onClick={configFilePath === '' ? () => {} : openFile}
onClick={configFilePath === '' ? () => {} : async()=>{ await openFile()}}
className="py-2 remixui_compilerConfigPath"
>{configFilePath === '' ? 'No file selected.' : configFilePath}</span> }
{ (!showFilePathInput && !state.useFileConfiguration) && <span className="py-2 text-secondary">{configFilePath}</span> }

Loading…
Cancel
Save