From 4f42418993212e88434b12c33148217068985b09 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 6 Sep 2021 19:49:43 +0200 Subject: [PATCH] e2e --- .../src/tests/dgitprovider.test.ts | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 apps/remix-ide-e2e/src/tests/dgitprovider.test.ts diff --git a/apps/remix-ide-e2e/src/tests/dgitprovider.test.ts b/apps/remix-ide-e2e/src/tests/dgitprovider.test.ts new file mode 100644 index 0000000000..242ef0356f --- /dev/null +++ b/apps/remix-ide-e2e/src/tests/dgitprovider.test.ts @@ -0,0 +1,28 @@ +'use strict' +import { NightwatchBrowser } from 'nightwatch' +import init from '../helpers/init' +import sauce from './sauce' + +module.exports = { + before: function (browser: NightwatchBrowser, done: VoidFunction) { + init(browser, done, 'http://127.0.0.1:8080', false) + }, + 'Should stage README.txt': function (browser: NightwatchBrowser) { + browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]') + .pause(3000) + .click('*[plugin="pluginManager"]') + .pause(3000) + .waitForElementVisible('*[data-id="pluginManagerComponentPluginManager"]') + .scrollAndClick('*[data-id="pluginManagerComponentActivateButton11111"]') + .waitForElementVisible('*[data-id="pluginManagerComponentDeactivateButton11111"]', 70000) + .pause(3000) + .clickLaunchIcon('11111') + .pause(2000) + .frame('plugin-11111') + .waitForElementVisible('*[data-id="fileChangesREADME.txt"]') + .click('*[data-id="addToGitChangesREADME.txt"]') + .pause(3000) + .waitForElementVisible('*[data-id="fileStagedREADME.txt"]') + }, + tearDown: sauce +}