forked from microsoft/playwright
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test-runner): introduce steps (microsoft#7952)
- Loading branch information
1 parent
961724d
commit 5803035
Showing
19 changed files
with
337 additions
and
109 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 |
---|---|---|
|
@@ -16,4 +16,4 @@ drivers/ | |
.gradle/ | ||
nohup.out | ||
.trace | ||
.tmp | ||
.tmp |
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,32 @@ | ||
# class: TestStep | ||
* langs: js | ||
|
||
Represents a step in the [TestRun]. | ||
|
||
## property: TestStep.category | ||
- type: <[string]> | ||
|
||
Step category to differentiate steps with different origin and verbosity. Built-in categories are: | ||
* `hook` for fixtures and hooks initialization and teardown | ||
* `expect` for expect calls | ||
* `pw:api` for Playwright API calls. | ||
|
||
## property: TestStep.duration | ||
- type: <[float]> | ||
|
||
Running time in milliseconds. | ||
|
||
## property: TestStep.error | ||
- type: <[void]|[TestError]> | ||
|
||
An error thrown during the step execution, if any. | ||
|
||
## property: TestStep.startTime | ||
- type: <[Date]> | ||
|
||
Start time of this particular test step. | ||
|
||
## property: TestStep.title | ||
- type: <[string]> | ||
|
||
User-friendly test step title. |
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
Oops, something went wrong.