File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
apps/remix-ide-e2e/src/tests Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const sources = [
8
8
{ 'Untitled.sol' : { content : examples . ballot . content } }
9
9
]
10
10
11
- module . exports = {
11
+ const tests = {
12
12
'@disabled' : true ,
13
13
before : function ( browser : NightwatchBrowser , done : VoidFunction ) {
14
14
init ( browser , done )
@@ -271,3 +271,18 @@ module.exports = {
271
271
. waitForElementNotVisible ( '*[data-id="remix-ai-assistant"]' , 5000 )
272
272
} ,
273
273
}
274
+
275
+ const branch = process . env . CIRCLE_BRANCH
276
+ const runTestsConditions = branch && ( branch === 'master' || branch === 'remix_live' || branch . includes ( 'remix_beta' ) || branch . includes ( 'metamask' ) )
277
+
278
+ const checkBrowserIsChrome = function ( browser : NightwatchBrowser ) {
279
+ return browser . browserName . indexOf ( 'chrome' ) > - 1
280
+ }
281
+
282
+ if ( ! checkBrowserIsChrome ( browser ) ) {
283
+ module . exports = { }
284
+ } else {
285
+ module . exports = {
286
+ ...( branch ? ( runTestsConditions ? tests : { } ) : tests )
287
+ } ;
288
+ }
You can’t perform that action at this time.
0 commit comments