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 test for Safari #1557

Merged
merged 9 commits into from
May 16, 2019
Merged

test: fix test for Safari #1557

merged 9 commits into from
May 16, 2019

Conversation

straker
Copy link
Contributor

@straker straker commented May 9, 2019

There were two Safari browser bugs that I had to work around, and one difference in floating point precision, but I got the tests working locally for Safari. Unfortunately I couldn't get it to work in CircleCI, so we'll have to come back to that in a later pr.

Closes: #1385

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

.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
@straker straker changed the title fix(tests): fix test for Safari, run Safari in CricleCI fix(tests): fix test for Safari May 9, 2019
build/tasks/test-webdriver.js Outdated Show resolved Hide resolved
test/commons/text/form-control-value.js Outdated Show resolved Hide resolved
// returns null as isSame is false. we can fix this by adding in the
// missing label to the boundingStack before checking for isSame
// @see https://bugs.webkit.org/show_bug.cgi?id=197743
includeMissingElements(boundingStack, elm);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is already happening in getBackgroundStack. I don't quite understand why you'd call this twice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So the includeMissingElements call in getBackgroundStack is not called since filteredRectStack returns null because it's missing the label. I tried removing the includeMissingElements in getBackgroundStack but that failed a lot of tests.

.circleci/config.yml Outdated Show resolved Hide resolved
@stephenmathieson stephenmathieson changed the title fix(tests): fix test for Safari test: fix test for Safari May 16, 2019
@straker straker merged commit 1bac69e into develop May 16, 2019
@straker straker deleted the safari branch May 16, 2019 15:17
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 Safari tests
4 participants