From 5d8fcd997ecb1aef19ffc51be18a7fd3bd1eb0a1 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 10 Dec 2020 12:40:25 +0530 Subject: [PATCH] .txt added in README --- apps/remix-ide-e2e/src/tests/defaultLayout.test.ts | 2 +- apps/remix-ide-e2e/src/tests/fileExplorer.test.ts | 4 ++-- apps/remix-ide-e2e/src/tests/gist.test.ts | 4 ++-- apps/remix-ide/src/app/editor/examples.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts b/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts index 722bdcb5c5..94ab72bd2b 100644 --- a/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts +++ b/apps/remix-ide-e2e/src/tests/defaultLayout.test.ts @@ -23,7 +23,7 @@ module.exports = { .waitForElementVisible('li[key="browser/contracts"]') .waitForElementVisible('li[key="browser/scripts"]') .waitForElementVisible('li[key="browser/tests"]') - .waitForElementVisible('li[key="browser/README"]') + .waitForElementVisible('li[key="browser/README.txt"]') }, 'Loads Main View': function (browser: NightwatchBrowser) { diff --git a/apps/remix-ide-e2e/src/tests/fileExplorer.test.ts b/apps/remix-ide-e2e/src/tests/fileExplorer.test.ts index a5ef6242b3..22c39e5de2 100644 --- a/apps/remix-ide-e2e/src/tests/fileExplorer.test.ts +++ b/apps/remix-ide-e2e/src/tests/fileExplorer.test.ts @@ -46,8 +46,8 @@ module.exports = { 'Should create a new folder': function (browser: NightwatchBrowser) { browser - .waitForElementVisible('*[data-id="treeViewLibrowser/README"]') - .rightClick('[data-path="browser/README"]') + .waitForElementVisible('*[data-id="treeViewLibrowser/README.txt"]') + .rightClick('[data-path="browser/README.txt"]') .click('*[id="menuitemcreate folder"]') .waitForElementVisible('*[data-id="modalDialogContainer"]') .setValue('*[data-id="modalDialogCustomPromptText"]', 'Browser_Tests') diff --git a/apps/remix-ide-e2e/src/tests/gist.test.ts b/apps/remix-ide-e2e/src/tests/gist.test.ts index 5754689b5c..9c75fced9a 100644 --- a/apps/remix-ide-e2e/src/tests/gist.test.ts +++ b/apps/remix-ide-e2e/src/tests/gist.test.ts @@ -26,7 +26,7 @@ module.exports = { browser .waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) .clickLaunchIcon('fileExplorers') - .rightClick('[data-path="browser/README"]') + .rightClick('[data-path="browser/README.txt"]') .click('*[id="menuitemcreate folder"]') .waitForElementVisible('*[data-id="modalDialogContainer"]') .setValue('*[data-id="modalDialogCustomPromptText"]', 'Browser_Tests') @@ -50,7 +50,7 @@ module.exports = { .perform((done) => { if (runtimeBrowser === 'chrome') { browser.openFile('browser/gists') } done() }) .waitForElementVisible(`li[key="browser/gists/${gistid}"]`) .click(`li[key="browser/gists/${gistid}"]`) - .openFile(`browser/gists/${gistid}/README`) + .openFile(`browser/gists/${gistid}/README.txt`) .perform(done) } }) diff --git a/apps/remix-ide/src/app/editor/examples.js b/apps/remix-ide/src/app/editor/examples.js index 4544a5d9b1..b90d5facd2 100644 --- a/apps/remix-ide/src/app/editor/examples.js +++ b/apps/remix-ide/src/app/editor/examples.js @@ -335,5 +335,5 @@ module.exports = { deployWithWeb3: { name: 'scripts/deployWithWeb3.js', content: deployWithWeb3 }, deployWithEthers: { name: 'scripts/deployWithEthers.js', content: deployWithEthers }, ballot_test: { name: 'tests/4_Ballot_test.sol', content: ballotTest }, - readme: { name: 'README', content: readme } + readme: { name: 'README.txt', content: readme } }