-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Plugin Manager Tests #2601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin Manager Tests #2601
Conversation
test-browser/tests/plugin.js
Outdated
.switchFile('browser/3_Ballot.sol') | ||
.click('div[plugin="ZoKrates"]') | ||
.pause(5000) | ||
.frame(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is doing frame
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.frame(0)
allows switching into the first <iframe>
indexed at 0 (plugin manager's iframe) and selecting DOM elements. I added this because i needed to select the compile button in ZoKrates which is inside an iframe.
.useXpath().click("//span[text()='Compile']") | ||
.frameParent() | ||
.useCss().waitForElementVisible('*[data-id="modalDialogContainer"]') | ||
.assert.containsText('*[data-id="permissionHandlerMessage"]', 'ZOKRATES" WOULD LIKE TO ACCESS "FILE MANAGER" :') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should also check is the api call is successful and returns the correct data, but that will be another PR...
No description provided.