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

[core] Work toward preventing Googlebot regressions #13323

Merged
merged 1 commit into from
Oct 21, 2018

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Oct 21, 2018

Following the introduction of Googlebot support in #13271, I'm running the e2e tests closer to Chrome v41 to prevent regressions.

@@ -95,7 +95,7 @@ module.exports = function setKarmaConfig(config) {
os: 'OS X',
os_version: 'Sierra',
browser: 'Chrome',
browser_version: '49.0',
browser_version: '45.0',
Copy link
Member

Choose a reason for hiding this comment

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

Isn't the bot running chrome@41?

Copy link
Member Author

@oliviertassinari oliviertassinari Oct 21, 2018

Choose a reason for hiding this comment

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

Sinon.js doesn't support it. It's also why we don't run the tests in IE11. At least, I couldn't make it pass.

Copy link
Member

@eps1lon eps1lon Oct 21, 2018

Choose a reason for hiding this comment

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

As I interpret their readme it should support IE11. But chrome only at 69 which doesn't make much sense to me. I'm probably misunderstanding their saucelabs badge.

So we are basically not doing any tests at all in IE11?

Copy link
Member Author

@oliviertassinari oliviertassinari Oct 21, 2018

Choose a reason for hiding this comment

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

Chrome: CSS & JavaScript support starts at v49. JavaScript support starts at v41 (for googlebot).
IE : CSS & JavaScript support starts at v11.

What do you think of that?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wish we could make the tests pass in IE11.

connect(state => ({
uiTheme: state.theme,
})),
withStyles(styles),
Copy link
Member Author

@oliviertassinari oliviertassinari Oct 21, 2018

Choose a reason for hiding this comment

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

Fix a dev issue in IE11 for computing the class names.

@@ -258,7 +258,7 @@ describe('<SwipeableDrawer />', () => {
wrapper.setProps({ disableDiscovery: true });

fireBodyMouseEvent('touchstart', { touches: [params.openTouches[0]] });
if (['left', 'right'].includes(params.anchor)) {
if (['left', 'right'].indexOf(params.anchor) !== -1) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Make the tests pass in Chrome 45.

@oliviertassinari
Copy link
Member Author

I suspect refactoring the tests to work with IE11 and Chrome 41 are going to be time-consuming.

@oliviertassinari
Copy link
Member Author

oliviertassinari commented Oct 21, 2018

Alright, v45 is still closer to v41 than v49. Let's merge.

@oliviertassinari oliviertassinari changed the title [core] Prevent Googlebot regressions [core] Work toward preventing Googlebot regressions Oct 21, 2018
@oliviertassinari oliviertassinari merged commit 5daf831 into mui:master Oct 21, 2018
@oliviertassinari oliviertassinari deleted the googlebot-test branch October 21, 2018 18:02
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.

2 participants