Skip to content

tests: update failing trace webtest to use Tooltip module #11731

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

Merged
merged 4 commits into from
Dec 1, 2020

Conversation

@connorjclark connorjclark requested a review from a team as a code owner December 1, 2020 01:22
@connorjclark connorjclark requested review from adamraine and removed request for a team December 1, 2020 01:22
@google-cla google-cla bot added the cla: yes label Dec 1, 2020
@TimvdLippe
Copy link
Contributor

The reason the test wasn't failing is that the getter was previously implicitly calling UI.Tooltip.getContent. The setter in turn was sugar for UI.Tooltip.install. Therefore, I migrated the setters first, without touching the getters. I fixed these tests when I removed the getter and setter in https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2562343

@connorjclark connorjclark changed the title tests: update trace webtest to use Tooltip module tests: update failing trace webtest to use Tooltip module Dec 1, 2020
@patrickhulce
Copy link
Collaborator

@connorjclark FYI this is failing the devtools check with UI.Tooltip.getContent is not a function. Something need to be updated to match ToT?

@connorjclark
Copy link
Collaborator Author

weird, it works for me locally even after I clear .tmp. Let me try to invalidate the cache here.

@@ -33,7 +33,7 @@ jobs:
${{ env.DEVTOOLS_PATH }}
${{ env.BLINK_TOOLS_PATH }}
${{ github.workspace }}/lighthouse/.tmp/chromium-web-tests/content-shells
key: ${{ runner.os }}-${{ hashFiles('lighthouse/.github/workflows/devtools.yml', 'lighthouse/lighthouse-core/test/chromium-web-tests/*', 'lighthouse/clients/devtools-entry.js', 'lighthouse/clients/devtools-report-assets.js', 'lighthouse/build/build-bundle.js', 'lighthouse/build/build-dt-report-resources.js') }}
key: ${{ runner.os }}-${{ hashFiles('third-party/chromium-webtests/webtests/http/tests/devtools/lighthouse/*.js', 'lighthouse/.github/workflows/devtools.yml', 'lighthouse/lighthouse-core/test/chromium-web-tests/*', 'lighthouse/clients/devtools-entry.js', 'lighthouse/clients/devtools-report-assets.js', 'lighthouse/build/build-bundle.js', 'lighthouse/build/build-dt-report-resources.js') }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I assumed the test files were already apart of this hash. This should fix CI.

@devtools-bot devtools-bot merged commit c66a32e into master Dec 1, 2020
@devtools-bot devtools-bot deleted the update-webtests branch December 1, 2020 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants