Skip to content

Fix locally failing tests.#7535

Merged
cramforce merged 5 commits intoampproject:masterfrom
cramforce:test-failures
Feb 14, 2017
Merged

Fix locally failing tests.#7535
cramforce merged 5 commits intoampproject:masterfrom
cramforce:test-failures

Conversation

@cramforce
Copy link
Copy Markdown
Member

Most tests failed when executed together with other tests, because they relied on custom elements being installed in the main test window instead of a per test iframe. This was fixed by using describes.realWin instead of ad hoc code in tests.

Made the jsonEqual chai method more robust by switching to a JSON stringify that is stable. Fixed one cause of side effects making the 3p-frame test flaky.

Most tests failed when executed together with other tests, because they relied on custom elements being installed in the main test window instead of a per test iframe. This was fixed by using `describes.realWin` instead of ad hoc code in tests.

Made the `jsonEqual` chai method more robust by switching to a JSON stringify that is stable. Fixed one cause of side effects making the 3p-frame test flaky.
package.json Outdated
"gzip-size": "3.0.0",
"jison": "0.4.15",
"jsdom": "9.2.1",
"json-stable-stringify": "^1.0.1",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

remove ^

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

@cramforce cramforce merged commit 7e3063e into ampproject:master Feb 14, 2017
@cramforce cramforce deleted the test-failures branch February 14, 2017 06:35
torch2424 pushed a commit to torch2424/amphtml that referenced this pull request Feb 14, 2017
Most tests failed when executed together with other tests, because they relied on custom elements being installed in the main test window instead of a per test iframe. This was fixed by using `describes.realWin` instead of ad hoc code in tests.

Made the `jsonEqual` chai method more robust by switching to a JSON stringify that is stable. Fixed one cause of side effects making the 3p-frame test flaky.
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
Most tests failed when executed together with other tests, because they relied on custom elements being installed in the main test window instead of a per test iframe. This was fixed by using `describes.realWin` instead of ad hoc code in tests.

Made the `jsonEqual` chai method more robust by switching to a JSON stringify that is stable. Fixed one cause of side effects making the 3p-frame test flaky.
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.

2 participants