-
Notifications
You must be signed in to change notification settings - Fork 270
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
refactored test cases to use async and await #4918
refactored test cases to use async and await #4918
Conversation
✅ Deploy Preview for cbioportalfrontend ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
'button[data-test="sampleGroupComparisonCreateGroupButton"]'; | ||
const PatientCreateGroupButton = | ||
'button[data-test="patientGroupComparisonCreateGroupButton"]'; | ||
const getSampleCreateGroupButton = async function() { |
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.
i don't think you need to wrap these in fuctions. enough to use getElementByTestHandle directly.
b32cee7
to
7b26d63
Compare
7b26d63
to
fb00e3f
Compare
f73fe53
to
cb88996
Compare
}); | ||
|
||
it('select from sample venn diagram', function() { | ||
it('select from sample venn diagram', async function() { | ||
jsApiClick('rect[data-test="sample0VennRegion"]'); |
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.
jsApiClick will need to be awaited
(await getElement(SampleCreateGroupButton)).click(); | ||
await getElement('div.rc-tooltip-inner', { timeout: 20000 }); | ||
await browser.pause(200); | ||
const el = await getElement( |
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.
lets try to convert these to getElementByTestHandle (whenever you see we are using data-test)
* refactor test cases to use async and await
#1) * Update Genome Nexus API model and reVUE reference to fit new model (cBioPortal#4919) * Update Genome Nexus API model * Update revue reference to fit new model * Publish - [email protected] - [email protected] - [email protected] - [email protected] - [email protected] - [email protected] - [email protected] - [email protected] * move sync to async * move all customTabs to async * move all customTabs to async * move all expressionComparison to async * move all genomicEvolotion to async * move all groupComparison to async * move all groupComparison to async * move all results.logic to async * move all redirect to async * move all quickSearch to async * convert plots to async * move all patient.spec.js to async * move all oncoprinter.spec.js to async * move async to async migration home.spec.js mutation-mapper-tool.spec.js mutationsTab.spec.js * move sync to async migration oncoprinterColorConfig.spec.js mutationTable.spec.js * refactored test cases to use async and await (cBioPortal#4918) * refactor test cases to use async and await * fix newsletter link in banner * fix newsletter link in sidebar * Remove demo-rfc72 reference from local e2e test * retest and refactor few changes * last refactoring except comparisonTab * tiny refactorings
Fix cBioPortal/cbioportal# (see https://help.github.com/en/articles/closing-issues-using-keywords)
Describe changes proposed in this pull request:
Checks
Any screenshots or GIFs?
If this is a new visual feature please add a before/after screenshot or gif
here with e.g. Giphy CAPTURE or Peek
Notify reviewers
Read our Pull request merging
policy. It can help to figure out who worked on the
file before you. Please use
git blame <filename>
to determine thatand notify them either through slack or by assigning them as a reviewer on the PR