-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added additional integration tests around ended early errors
- Loading branch information
1 parent
a635124
commit 459c61a
Showing
5 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
describe "Timeout Integration Tests", -> | ||
## dont console.error errors else it makes it look | ||
## like our tests are failing! | ||
enterIntegrationTestingMode("html/ended_early", {silent: true}) | ||
|
||
context "ended early", -> | ||
it "correct associates runnable which ended early", (done) -> | ||
runner = @Cypress.runner | ||
|
||
@Cypress.run (failures) -> | ||
test = runner.getTestByTitle("does end early [003]") | ||
expect(test.err.message).to.eq "Cypress detected your test ended early before all of the commands have run. This can happen if you explicitly done() a test before all of the commands have finished." | ||
done() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> | ||
<title>Ended Early Tests</title> | ||
<link rel="icon" href="data:;base64,="> | ||
<script type="text/javascript" src="/lib/public/js/iframe.js"></script> | ||
<script type="text/javascript"> | ||
describe("ending early [001]", function(){ | ||
beforeEach(function(){ | ||
cy.visit("fixtures/html/generic.html") | ||
}) | ||
|
||
it("does not end early [002]", function(){ | ||
|
||
}) | ||
|
||
it("does end early [003]", function(done){ | ||
cy.then(function(){}) | ||
|
||
done() | ||
}) | ||
}) | ||
</script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,7 @@ | |
<head> | ||
<title>Generic HTML Fixture</title> | ||
</head> | ||
<body></body> | ||
<body> | ||
Some generic content | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters