pull/4837/head
bunsenstraat 8 months ago
parent bbc9924a46
commit 6eff04537d
  1. 2
      apps/remixdesktop/src/plugins/appUpdater.ts
  2. 21
      apps/remixdesktop/test/tests/app/gist.test.ts

@ -2,7 +2,7 @@ import { ElectronBasePlugin, ElectronBasePluginClient } from "@remixproject/plug
import { Profile } from "@remixproject/plugin-utils"
import { autoUpdater } from "electron-updater"
import { app } from 'electron';
import { isE2E } from "src/main";
import { isE2E } from "../main";
const profile = {
displayName: 'appUpdater',

@ -0,0 +1,21 @@
import { NightwatchBrowser } from 'nightwatch'
const gist_id = 'a4af87f9ae096a01c7819e75b32d1b72'
module.exports = {
before: function (browser: NightwatchBrowser, done: VoidFunction) {
done()
},
'start gist': function (browser: NightwatchBrowser) {
browser
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000)
.waitForElementVisible('*[data-id="landingPageImportFromGist"]')
.click('*[data-id="landingPageImportFromGist"]')
.waitForElementVisible('*[data-id="gisthandlerModalDialogModalBody-react"] input[data-id="modalDialogCustomPromp"]')
.execute(function () {
(document.querySelector('*[data-id="gisthandlerModalDialogModalBody-react"] input[data-id="modalDialogCustomPromp"]') as any).focus()
})
.setValue('*[data-id="gisthandlerModalDialogModalBody-react"] input[data-id="modalDialogCustomPromp"]', gist_id)
.modalFooterOKClick('gisthandler')
//.pause()
}
}
Loading…
Cancel
Save