diff --git a/apps/remix-ide-e2e/src/commands/addFile.ts b/apps/remix-ide-e2e/src/commands/addFile.ts index a5ac8cdcf9..08e9ff6d5b 100644 --- a/apps/remix-ide-e2e/src/commands/addFile.ts +++ b/apps/remix-ide-e2e/src/commands/addFile.ts @@ -55,7 +55,7 @@ function addFile(browser: NightwatchBrowser, name: string, content: NightwatchCo timeout: 60000 }) .waitForElementVisible({ - selector: `//*[@data-id='tab-active' and @data-path="${name}"]`, + selector: `//*[@data-id='tab-active' and contains(@data-path, "${name}")]`, locateStrategy: 'xpath' }) .setEditorValue(content.content)