This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugins): support onPrepare in plugins
- Loading branch information
Showing
5 changed files
with
54 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
module.exports = { | ||
setup: function() { | ||
protractor.__BASIC_PLUGIN_RAN = true; | ||
protractor.__BASIC_PLUGIN_RAN_SETUP = true; | ||
}, | ||
onPrepare: function() { | ||
protractor.__BASIC_PLUGIN_RAN_ON_PREPARE = true; | ||
} | ||
}; |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
describe('check if plugin setup ran', function() { | ||
it('should have set protractor.__BASIC_PLUGIN_RAN', function() { | ||
expect(protractor.__BASIC_PLUGIN_RAN).toBe(true); | ||
it('should have set protractor.__BASIC_PLUGIN_RAN_*', function() { | ||
expect(protractor.__BASIC_PLUGIN_RAN_SETUP).toBe(true); | ||
expect(protractor.__BASIC_PLUGIN_RAN_ON_PREPARE).toBe(true); | ||
}); | ||
}); |