bitovi / bitovi/syn

linkHrefJS feature test appears to be causing problems in IE9 and IE10 (+ Karma?)

Open
#105 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
441
Forks
254
PR merge metrics
No merged PRs in 30d

Description

### Situation:

For our testing we've used a pretty old version of syn (or, back then, Syn) until now. When trying to update this, we run into problems with IE9 and IE10.

I've dumbed the test environment down to just loading Karma and syn. What happens in IE9 and IE10 is that right after starting, Karma errors with `"Some of your tests did a full page reload!"` and stops. In IE7, IE8, IE11 and Edge everything works as expected.

After some attempts to track down the problem, I found out that this problem stops occuring when the [feature test for linkHrefJS](https://github.com/bitovi/syn/blob/v0.1.2/src/mouse.support.js#L25) is removed. I'm not entirely sure what's going on here, but it appears that triggering a click on `` causes the page to reload in IE9 and IE10. The `__synthTest` function doesn't even get executed.

I wasn't able to determine whether this problem is related to Karma being loaded or if it's an actual compatibility problem with IE9 and IE10, but since this feature test was fixed in December 2013 (#17) I kind of assume this isn't a generic issue in these browsers.
### How to reproduce:

I'd say any environment with at least Karma and syn. But I'll describe my dumbed down test environment below, assuming node and npm installed:

``` sh
mkdir syn-test
cd syn-test
npm install karma syn
cat << EOF > karma.conf
module.exports = function(config){
config.set({
files: ['node_modules/syn/dist/syn.js']
});
};
EOF
`npm bin`/karma start karma.conf
```

That starts a karma server at `http://localhost:9876/`.
Opening that in any browser should error `"You need to include some adapter that implements __karma__.start method!"` (since we didn't actually add anything to start).
In IE9 and IE10 this errors `"Some of your tests did a full page reload!"`.

Contributor guide

Open the contributing guide

Research direction

Start with the linkHrefJS feature test in src/mouse.support.js and reproduce the issue using the minimal Karma setup described in the report. Compare IE9 and IE10 with IE7, IE8, IE11, and Edge, then verify that loading Karma no longer reports a full-page reload while the feature test remains covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.