remove pauses

desktop-master-git2
bunsenstraat 5 months ago
parent 30400646a4
commit 5a5c4a621e
  1. 4
      apps/remix-ide-e2e/src/tests/dgit_github.test.ts
  2. 4
      apps/remix-ide-e2e/src/tests/workspace_git.test.ts

@ -364,7 +364,7 @@ module.exports = {
.setValue('*[data-id="githubToken"]', 'invalidtoken') .setValue('*[data-id="githubToken"]', 'invalidtoken')
.setValue('*[data-id="gitubUsername"]', 'git') .setValue('*[data-id="gitubUsername"]', 'git')
.setValue('*[data-id="githubEmail"]', 'git@example.com') .setValue('*[data-id="githubEmail"]', 'git@example.com')
.pause() .pause(1000)
.click('*[data-id="saveGitHubCredentials"]') .click('*[data-id="saveGitHubCredentials"]')
.modalFooterOKClick('github-credentials-error') .modalFooterOKClick('github-credentials-error')
}, },
@ -383,7 +383,7 @@ module.exports = {
.click('*[data-id="load-more-commits"]') .click('*[data-id="load-more-commits"]')
.waitForElementVisible('*[data-id="loader-indicator"]') .waitForElementVisible('*[data-id="loader-indicator"]')
.waitForElementNotPresent('*[data-id="loader-indicator"]') .waitForElementNotPresent('*[data-id="loader-indicator"]')
.pause() .pause(1000)
.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 > 2) browser.assert.ok((result.value as any).length > 2)

@ -181,7 +181,7 @@ module.exports = {
.waitForElementVisible('[data-id="workspaceGitPanel"]') .waitForElementVisible('[data-id="workspaceGitPanel"]')
.waitForElementVisible('[data-id="workspaceGitBranchesDropdown"]') .waitForElementVisible('[data-id="workspaceGitBranchesDropdown"]')
.click('[data-id="workspaceGitBranchesDropdown"]') .click('[data-id="workspaceGitBranchesDropdown"]')
.pause() .pause(1000)
.waitForElementVisible('[data-id="custom-dropdown-menu"]') .waitForElementVisible('[data-id="custom-dropdown-menu"]')
.waitForElementContainsText('[data-id="custom-dropdown-items"]', 'origin/dev') .waitForElementContainsText('[data-id="custom-dropdown-items"]', 'origin/dev')
.waitForElementContainsText('[data-id="custom-dropdown-items"]', 'origin/production') .waitForElementContainsText('[data-id="custom-dropdown-items"]', 'origin/production')
@ -404,7 +404,7 @@ module.exports = {
.getEditorValue((content) => { .getEditorValue((content) => {
browser.assert.ok(content.indexOf(`contract Counter is BaseHook {`) !== -1, browser.assert.ok(content.indexOf(`contract Counter is BaseHook {`) !== -1,
'Incorrect content') 'Incorrect content')
}).pause() })
}, },
'Should create Remix default workspace with files #group5': function (browser: NightwatchBrowser) { 'Should create Remix default workspace with files #group5': function (browser: NightwatchBrowser) {

Loading…
Cancel
Save