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

test: fix tests failing in IE11 #1570

Merged
merged 6 commits into from
May 16, 2019
Merged

test: fix tests failing in IE11 #1570

merged 6 commits into from
May 16, 2019

Conversation

straker
Copy link
Contributor

@straker straker commented May 15, 2019

Phantomjs does not support the transform css property and so all the CSS orientation lock tests were actually false positives with the one failure being correct. Adding -webkit-transform fixes the problem.

IE11 also parses CSS rule property order differently so the testutil rule string compare would fail. Changed it to create a style on the page and compare the same properties. IE11 also didn't add a space between the CSS media properties of (layout: portrait)

Closes #1384

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Has documentation updated, a DU ticket, or requires no documentation change
  • Includes new tests, or was unnecessary
  • Code is reviewed for security by: Stephen

@straker straker requested a review from a team May 15, 2019 18:03
Copy link
Member

@stephenmathieson stephenmathieson left a comment

Choose a reason for hiding this comment

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

Nice catch! This LGTM but we should support MS prefixes too.

lib/checks/mobile/css-orientation-lock.js Outdated Show resolved Hide resolved
test/checks/mobile/css-orientation-lock.js Show resolved Hide resolved
test/checks/mobile/css-orientation-lock.js Outdated Show resolved Hide resolved
test/testutils.js Show resolved Hide resolved
@jeeyyy jeeyyy changed the title test: fix broken tests test: fix tests failing in IE11 May 16, 2019
@straker straker merged commit 2102eca into develop May 16, 2019
@straker straker deleted the fixTests branch May 16, 2019 13:44
stephenmathieson added a commit that referenced this pull request May 16, 2019
* develop:
  test: fix test for Safari (#1557)
  test: fix flakey test (#1573)
  test: fix tests failing in IE11 (#1570)
  test: only run IE11 tests in appveyor (#1571)
  chore: run prettier and format (#1568)
  test: disable es6 syntax usage within tests directory (#1569)
  feat(rule): add additional elements to check for incomplete with required children (#1547)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing IE11 tests
4 participants