pull/4837/head
bunsenstraat 9 months ago
parent bcbd293b45
commit 0a3694f90a
  1. 2
      .circleci/config.yml
  2. 1
      apps/remixdesktop/src/main.ts
  3. 4
      apps/remixdesktop/src/plugins/fsPlugin.ts
  4. 13
      apps/remixdesktop/test/nighwatch.app.ts

@ -137,7 +137,7 @@ jobs:
name: "Run tests"
command: |
cd apps/remixdesktop/
yarn run build:e2e && yarn run test:app:linuxlocal
yarn run build:e2e && yarn run test:app:linux
build-remixdesktop-linux:
machine:

@ -7,6 +7,7 @@ export const version = app.getVersion();
const args = process.argv.slice(1)
export const isE2ELocal = args.find(arg => arg.startsWith('--e2e-local'))
export const isE2E = args.find(arg => arg.startsWith('--e2e'))
if (isE2ELocal) {
console.log('e2e mode')

@ -3,7 +3,7 @@ import fs from 'fs/promises'
import {Profile} from '@remixproject/plugin-utils'
import chokidar from 'chokidar'
import {dialog, shell} from 'electron'
import {createWindow, isPackaged} from '../main'
import {createWindow, isE2E, isPackaged} from '../main'
import {writeConfig} from '../utils/config'
import path from 'path'
import {customAction} from '@remixproject/plugin-api'
@ -32,7 +32,7 @@ const getBaseName = (pathName: string): string => {
export class FSPlugin extends ElectronBasePlugin {
clients: FSPluginClient[] = []
constructor() {
super(profile, clientProfile, FSPluginClientE2E)
super(profile, clientProfile, isE2E? FSPluginClientE2E: FSPluginClient)
this.methods = [...super.methods, 'closeWatch', 'removeCloseListener']
}

@ -49,6 +49,19 @@ module.exports = {
}
}
},
linux: {
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true,
'goog:chromeOptions': {
"binary": "release/linux-unpacked/remixdesktop",
"args": [
"--e2e",
]
}
}
},
windows: {
desiredCapabilities: {
browserName: 'chrome',

Loading…
Cancel
Save