Skip to content

Commit ce5c386

Browse files
committed
fix ai e2e
1 parent 4518a11 commit ce5c386

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/remix-ide-e2e/src/tests/ai_panel.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const tests = {
4444
.waitForCompilerLoaded()
4545
.addFile('Bad.sol', { content: 'errors' })
4646
.clickLaunchIcon('solidity')
47-
.waitForElementVisible('.ask-remix-ai-button')
48-
.click('.ask-remix-ai-button')
47+
.waitForElementVisible('*[data-id="ask-remix-ai-button"]')
48+
.click('*[data-id="ask-remix-ai-button"]')
4949
.waitForElementVisible('*[data-id="remix-ai-assistant"]')
5050
.waitForElementVisible({
5151
locateStrategy: 'xpath',

libs/remix-ui/renderer/src/lib/renderer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export const Renderer = ({ message, opt, plugin, context }: RendererProps) => {
132132
</span>
133133
<span
134134
className="btn btn-sm text-ai"
135+
data-id="ask-remix-ai-button"
135136
onClick={(event) => { event.preventDefault(); askGtp() }}
136137
style={{ borderColor: "var(--custom-ai-color)" }}
137138
>

0 commit comments

Comments
 (0)