-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
347 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Feature: File assertions | ||
|
||
Scenario: Assert file exists | ||
Given the file is defined by js "'src/test/features/file/file.txt'" | ||
When I capture the file | ||
Then "src/test/features/file" file should exist | ||
And the file should exist | ||
|
||
Scenario: Assert file does not exist | ||
Given the file is defined by js "'src/test/features/file/missing.txt'" | ||
When I capture the file | ||
Then "src/test/features/file/missing.txt" file should not exist | ||
And the file should not exist | ||
|
||
Scenario: Assert file shoud be empty | ||
Given the file is defined by js "'src/test/features/file/file2.txt'" | ||
When I capture the file | ||
Then "src/test/features/file/file2.txt" file should be empty | ||
And the file should be empty | ||
|
||
Scenario: Assert file shoud not be empty | ||
Given the file is defined by js "'src/test/features/file/file.txt'" | ||
When I capture the file | ||
Then "src/test/features/file/file.txt" file should not be empty | ||
And the file should not be empty |
Empty file.
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.