-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* max suite duration * scenario b not opened * docs * dangle suite should fail * another example
- Loading branch information
1 parent
68f89ba
commit 79af80e
Showing
7 changed files
with
89 additions
and
2 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
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
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
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,18 @@ | ||
import flagpole from "../../dist"; | ||
|
||
const suite = flagpole("Scenario with no open method"); | ||
|
||
suite.maxSuiteDuration = 5000; | ||
|
||
suite | ||
.scenario("Scenario should timeout", "html") | ||
.open("https://dribbble.com/") | ||
.next((context) => { | ||
context.assert(context.response.statusCode).equals(200); | ||
throw "foo"; | ||
scenarioB.open("https://www.dezeen.com/"); | ||
}); | ||
|
||
const scenarioB = suite.scenario("Scenario B", "html").next((context) => { | ||
context.assert(context.response.statusCode).equals(200); | ||
}); |
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,7 @@ | ||
import flagpole from "../../dist"; | ||
|
||
const suite = flagpole("No .next will dangle"); | ||
|
||
suite.maxSuiteDuration = 3000; | ||
|
||
suite.html("Homepage Loads").open("https://dribbble.com/"); |