From 8409ace925fe0fb0f85f49a2b22aa08978c66581 Mon Sep 17 00:00:00 2001 From: Aniket-Engg Date: Tue, 27 Sep 2022 13:38:05 +0530 Subject: [PATCH] nightwatch BDD tests --- apps/remix-ide-e2e/src/tests/homeTab.test.ts | 16 ++++++++++++++++ .../home-tab/src/lib/remix-ui-home-tab.tsx | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 apps/remix-ide-e2e/src/tests/homeTab.test.ts diff --git a/apps/remix-ide-e2e/src/tests/homeTab.test.ts b/apps/remix-ide-e2e/src/tests/homeTab.test.ts new file mode 100644 index 0000000000..c5f19f290d --- /dev/null +++ b/apps/remix-ide-e2e/src/tests/homeTab.test.ts @@ -0,0 +1,16 @@ +'use strict' +import { NightwatchBrowser } from 'nightwatch' +import init from '../helpers/init' + +describe('HomeTab e2e test', function () { + + before(function (browser: NightwatchBrowser, done: VoidFunction) { + init(browser, done) + }) + + it('Should create new file', function (browser: NightwatchBrowser) { + browser + .waitForElementVisible('*[data-id="homeTabNewFile"]') + .click('*[data-id="homeTabNewFile"]') + }) +}) \ No newline at end of file diff --git a/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx b/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx index 07120d63dc..2914b9ee69 100644 --- a/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx +++ b/libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx @@ -273,7 +273,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {

File

- +