Merge pull request #5774 from ethereum/fixe2e

Fixe2e
pull/5652/head^2
bunsenstraat 1 week ago committed by GitHub
commit 115065a88c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/remix-ide-e2e/src/tests/remixd.test.ts
  2. 2
      apps/remixdesktop/test/tests/app/foundry.test.ts
  3. 35
      apps/remixdesktop/test/tests/app/github_3.test.ts

@ -527,7 +527,7 @@ async function installFoundry(): Promise<void> {
server.stdout.on('data', function (data) { server.stdout.on('data', function (data) {
console.log(data.toString()) console.log(data.toString())
if ( if (
data.toString().includes("foundryup: use - chisel 0.3.0") data.toString().includes("foundryup: use - chisel 1.0.0-stable")
) { ) {
console.log('resolving') console.log('resolving')
resolve() resolve()

@ -89,7 +89,7 @@ async function installFoundry(): Promise<void> {
server.stdout.on('data', function (data) { server.stdout.on('data', function (data) {
console.log(data.toString()) console.log(data.toString())
if ( if (
data.toString().includes("foundryup: use - chisel 0.3.0") data.toString().includes("foundryup: use - chisel 1.0.0-stable")
) { ) {
console.log('resolving') console.log('resolving')
resolve() resolve()

@ -131,7 +131,7 @@ const tests = {
.elements('xpath', '//*[@data-id="commits-current-branch-master"]//*[@data-type="commit-summary"]', function (result) { .elements('xpath', '//*[@data-id="commits-current-branch-master"]//*[@data-type="commit-summary"]', function (result) {
console.log('Number of commit-summary elements:', (result.value as any).length); console.log('Number of commit-summary elements:', (result.value as any).length);
browser.assert.ok((result.value as any).length > commitCount) browser.assert.ok((result.value as any).length > commitCount)
}) }).pause(10000)
}, },
'load more branches from remote #group3': function (browser: NightwatchBrowser) { 'load more branches from remote #group3': function (browser: NightwatchBrowser) {
@ -155,15 +155,34 @@ const tests = {
if (useIsoGit) { if (useIsoGit) {
browser.waitForElementVisible('*[data-id="remote-sync-origin"]') const branchSelector = '//*[@data-id="branches-panel-content-remote-branches"]//*[@data-type="branches-branch"]';
browser
.waitForElementVisible('*[data-id="remote-sync-origin"]')
.click('*[data-id="remote-sync-origin"]') .click('*[data-id="remote-sync-origin"]')
.waitForElementVisible('*[data-id="loader-indicator"]') .waitForElementVisible('*[data-id="loader-indicator"]')
.waitForElementNotPresent('*[data-id="loader-indicator"]')
.pause(2000) browser.perform(function (done) {
.elements('xpath', '//*[@data-id="branches-panel-content-remote-branches"]//*[@data-type="branches-branch"]', function (result) { function checkElements() {
console.log('Number of branches elements:', (result.value as any).length); browser.execute(
browser.assert.ok((result.value as any).length > branchCount) function (xpath) {
}) return document.evaluate(xpath, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null).snapshotLength;
},
[branchSelector],
function (result) {
if ((result.value as number) > 1) {
console.log('Number of loaded branches elements:', result.value);
done();
} else {
browser.pause(1000); // Wait and check again
checkElements();
}
}
);
}
checkElements();
});
} else { } else {
browser.waitForElementVisible('*[data-id="show-more-branches-on-remote"]') browser.waitForElementVisible('*[data-id="show-more-branches-on-remote"]')
.click('*[data-id="show-more-branches-on-remote"]') .click('*[data-id="show-more-branches-on-remote"]')

Loading…
Cancel
Save