Skip to content

Conversation

ioedeveloper
Copy link
Collaborator

No description provided.

.switchFile('browser/3_Ballot.sol')
.click('div[plugin="ZoKrates"]')
.pause(5000)
.frame(0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is doing frame ?

Copy link
Collaborator Author

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.

@ioedeveloper ioedeveloper removed the WIP label Feb 20, 2020
.useXpath().click("//span[text()='Compile']")
.frameParent()
.useCss().waitForElementVisible('*[data-id="modalDialogContainer"]')
.assert.containsText('*[data-id="permissionHandlerMessage"]', 'ZOKRATES" WOULD LIKE TO ACCESS "FILE MANAGER" :')
Copy link
Collaborator

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...

@yann300 yann300 merged commit 41bf69a into master Feb 21, 2020
@yann300 yann300 deleted the e2e-tests branch February 21, 2020 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants