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

tests(smoke): make specific assertions about deprecations #13191

Merged
merged 3 commits into from
Oct 8, 2021

Conversation

connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Oct 7, 2021

fixed this before seeing #13179... my fix was independent. oops :)

going through with it still because being specific here in the assertions is nice

@connorjclark connorjclark requested a review from a team as a code owner October 7, 2021 21:49
@connorjclark connorjclark requested review from adamraine and removed request for a team October 7, 2021 21:49
@google-cla google-cla bot added the cla: yes label Oct 7, 2021
items: [
{
value: /Application Cache API manifest/,
_maxChromiumMilestone: 94,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oops, is it 96?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

I didn't think we want to assert order here or we end up with more flakiness, no?

value: /'window.webkitStorageInfo' is deprecated/,
},
{
value: /Synchronous XMLHttpRequest on the main thread is deprecated/,
Copy link
Collaborator

@patrickhulce patrickhulce Oct 7, 2021

Choose a reason for hiding this comment

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

how is this passing? won't this fail in later milestones because it's at index 1 not 2?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

well currently canary crashes due to unrelated reasons, so I couldn't test it locally.. but you are correct. Added a quick fix to the report asserting that should make this better

@@ -200,26 +200,42 @@ function pruneExpectations(localConsole, lhr, expected, reportOptions) {
JSON.stringify(value, null, 2),
`Actual Chromium version: ${getChromeVersion()}`,
].join(' '));
delete obj[key];
if (Array.isArray(obj)) {
Copy link
Member

Choose a reason for hiding this comment

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

removeKey helper?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not feeling DRY is necessary here

items: [
{
value: /Application Cache API manifest/,
_maxChromiumMilestone: 94,
Copy link
Member

Choose a reason for hiding this comment

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

@connorjclark connorjclark merged commit ca00bca into master Oct 8, 2021
@connorjclark connorjclark deleted the smoke-deprec branch October 8, 2021 23:16
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.

4 participants