@@ -21,15 +21,15 @@ module.exports = {
21
21
browser
22
22
. addFile ( 'Untitled.sol' , sources [ 0 ] [ 'Untitled.sol' ] )
23
23
} ,
24
-
24
+ // Conversation starter button with data id 'explain-editor' doesn't exist anymore
25
25
'Should explain the contract #group1' : function ( browser : NightwatchBrowser ) {
26
26
browser
27
- . waitForElementVisible ( '*[data-id="explain-editor "]' )
28
- . click ( '*[data-id="explain-editor "]' )
27
+ . waitForElementVisible ( '*[data-id="remix-ai-assistant-suggestion-Explain-what-a-modifier-is "]' )
28
+ . click ( '*[data-id="remix-ai-assistant-suggestion-Explain-what-a-modifier-is "]' )
29
29
. waitForElementVisible ( '*[data-id="remix-ai-assistant"]' )
30
30
. waitForElementVisible ( {
31
31
locateStrategy : 'xpath' ,
32
- selector : '//div[contains(@class,"chat-bubble") and contains(.,"Explain the current code ")]'
32
+ selector : '//div[contains(@class,"chat-bubble") and contains(.,"Explain what a modifier is ")]'
33
33
} )
34
34
. waitForElementPresent ( {
35
35
locateStrategy : 'xpath' ,
@@ -80,7 +80,6 @@ module.exports = {
80
80
locateStrategy : 'xpath' ,
81
81
timeout : 120000
82
82
} )
83
- . waitForElementVisible ( '*[data-id="remix-ai-assistant"]' )
84
83
. waitForElementPresent ( '*[data-id="remix-ai-assistant-ready"]' )
85
84
. assistantAddContext ( 'currentFile' )
86
85
. waitForElementVisible ( {
@@ -171,7 +170,6 @@ module.exports = {
171
170
locateStrategy : 'xpath' ,
172
171
timeout : 120000
173
172
} )
174
- . waitForElementVisible ( '*[data-id="remix-ai-assistant"]' )
175
173
. waitForElementVisible ( '*[data-id="composer-ai-workspace-generate"]' )
176
174
. click ( '*[data-id="composer-ai-workspace-generate"]' )
177
175
. waitForElementVisible ( '*[data-id="generate-workspaceModalDialogModalBody-react"]' )
@@ -229,8 +227,6 @@ module.exports = {
229
227
locateStrategy : 'xpath' ,
230
228
selector : "//*[@data-id='remix-ai-streaming' and @data-streaming='false']"
231
229
} )
232
-
233
-
234
230
} ,
235
231
'Generate new workspaces code with all AI assistant providers #group1' : function ( browser : NightwatchBrowser ) {
236
232
browser
@@ -250,8 +246,6 @@ module.exports = {
250
246
locateStrategy : 'xpath' ,
251
247
selector : "//*[@data-id='remix-ai-streaming' and @data-streaming='false']"
252
248
} )
253
-
254
-
255
249
. assistantClearChat ( )
256
250
257
251
. clickLaunchIcon ( 'remixaiassistant' )
@@ -269,7 +263,6 @@ module.exports = {
269
263
} ,
270
264
"Should close the AI assistant #group1" : function ( browser : NightwatchBrowser ) {
271
265
browser
272
- . waitForElementVisible ( '*[data-id="remix-ai-assistant"]' )
273
266
. click ( '*[data-id="movePluginToLeft"]' )
274
267
. clickLaunchIcon ( 'filePanel' )
275
268
. waitForElementNotVisible ( '*[data-id="remix-ai-assistant"]' , 5000 )
0 commit comments