Skip to content
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

Upgrade webdriver.io to v7 and begin migration of tests from sync to asyn #4846

Merged
merged 43 commits into from
Apr 10, 2024

Conversation

alisman
Copy link
Collaborator

@alisman alisman commented Feb 12, 2024

We need to eventually upgrade to Webdriver.io 8, which will require we migrate our test style from sync to async per this documentation:

https://webdriver.io/docs/async-migration

Copy link

netlify bot commented Feb 12, 2024

Deploy Preview for cbioportalfrontend ready!

Name Link
🔨 Latest commit 5f08cec
🔍 Latest deploy log https://app.netlify.com/sites/cbioportalfrontend/deploys/661467aa2254aa00084790ae
😎 Deploy Preview https://deploy-preview-4846--cbioportalfrontend.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@alisman alisman force-pushed the asyncTest branch 3 times, most recently from 260b956 to 5f26d9d Compare March 1, 2024 18:31
@alisman alisman changed the title Async test Upgrade webdriver.io to v7 and begin migration of tests from sync to asyn Mar 1, 2024
@alisman alisman force-pushed the asyncTest branch 3 times, most recently from c59ff19 to 9083661 Compare March 4, 2024 23:16
@alisman alisman force-pushed the asyncTest branch 3 times, most recently from 2061fc4 to da75381 Compare April 5, 2024 18:41
@alisman alisman requested a review from onursumer April 9, 2024 14:17
Copy link
Member

@onursumer onursumer left a comment

Choose a reason for hiding this comment

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

LGTM! Just added a few questions/comments about minor things.

- store_artifacts:
path: /tmp/repo/end-to-end-test/remote/junit/errors
path: /tmp/repo/end-to-end-test/local/junit/errors
Copy link
Member

Choose a reason for hiding this comment

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

were we storing the local artifacts in incorrect locations for all this time?

@@ -633,7 +646,7 @@ describe('Group Comparison Tour', () => {
step++;
});

it('Step 8: Intro to the Survival tab, on the group comparison page.', () => {
it.skip('Step 8: Intro to the Survival tab, on the group comparison page.', () => {
Copy link
Member

Choose a reason for hiding this comment

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

are these skips intentional? do they stop working after upgrading to v7?

checkBox.waitForExist({ timeout: 10000 });
$('[data-test="StudySelect"] input').click();
var input = await $('div[data-test=study-search] input[type=text]');
await input.waitForExist({ timeout: 10000 });
Copy link
Member

Choose a reason for hiding this comment

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

do we still need to call waitForExist? I was under the impression that await was already doing that.


console.log('reportData', reportData);

var tests = _(reportData)
Copy link
Member

Choose a reason for hiding this comment

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

we don't seem to use this tests variable


const filteredReportData = reportData.tests.filter(test => {
const de = deDupTests(reportData);
Copy link
Member

Choose a reason for hiding this comment

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

should this be tests instead?

@@ -0,0 +1,830 @@
const clipboardy = require('clipboardy');
Copy link
Member

Choose a reason for hiding this comment

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

this is not entirely new, right? mostly copy of the existing specUtils.js?

@alisman alisman merged commit 340ebc5 into cBioPortal:master Apr 10, 2024
13 of 15 checks passed
@alisman alisman deleted the asyncTest branch April 10, 2024 14:08
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