Skip to content

Commit 38eae64

Browse files
author
ci-bot
committed
fix gist e2e based on new behaviour of git login button in topbar.
1 parent 98a6b7d commit 38eae64

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

apps/remix-ide-e2e/src/tests/gist.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,18 @@ module.exports = {
113113
.waitForElementVisible('*[data-shared="tooltipPopup"]', 5000)
114114
.assert.containsText('*[data-shared="tooltipPopup"]', 'Credentials removed')
115115
.click('*[data-id="github-dropdown-toggle"]')
116-
.click('*[data-id="github-dropdown-item-publish-to-gist"]')
117-
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
116+
.waitForElementNotPresent('*[data-id="github-dropdown-item-publish-to-gist"]')
117+
// .waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
118118
// .execute(function () { (document.querySelector('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') as HTMLElement).click() })
119-
.perform((done) => {
120-
browser.getText('[data-id="fileSystemModalDialogModalBody-react"]', (result) => {
121-
console.log('result.value: ', result.value)
122-
browser.assert.ok(result.value === 'Remix requires an access token (which includes gists creation permission). Please go to the settings tab to create one.', 'Assert failed. Gist token error message not displayed.')
123-
done()
124-
})
125-
})
126-
.waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
127-
.click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
119+
// .perform((done) => {
120+
// browser.getText('[data-id="fileSystemModalDialogModalBody-react"]', (result) => {
121+
// console.log('result.value: ', result.value)
122+
// browser.assert.ok(result.value === 'Remix requires an access token (which includes gists creation permission). Please go to the settings tab to create one.', 'Assert failed. Gist token error message not displayed.')
123+
// done()
124+
// })
125+
// })
126+
// .waitForElementPresent('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
127+
// .click('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok')
128128
},
129129

130130
'Import From Gist For Valid Gist ID #group2': '' + function (browser: NightwatchBrowser) {

0 commit comments

Comments
 (0)