Trevor McCauley
Trevor McCauley
**Describe the bug** The result of the function in the question can be either window or undefined but the question only accepts window as a correct answer. Here's an example...
`appSection` is used as a variable within the test code but then also used incorrectly as an element selector in the following `click()` command when there is no `@appSection` defined...
Mac OSX Chrome 53 http://nightwatchjs.org/api#getOrientation I'm seeing for the Type column: ``` string} The current browser orientation: {LANDSCAPE|PORTRAIT ``` And nothing under description
Custom command documentation should include the different formats, command function vs class constructor, and include the requirements for using them: - ~~implications of using and not using other api commands...
http://nightwatchjs.org/api#commands > Each method below allows an optional callback argument to be passed as the last argument. The callback function will then be called after the command is completed with...
Given this example from the readme: ```javascript const METADATA = new WeakMap(); function meta(value) { return (_, context) => { METADATA.set(context.metadataKey, value); }; } @meta('a') class C { @meta('b') m()...
Example: ```js class C { static fieldC = C } console.assert(C.fieldC === C) ``` **Actual**: "Uncaught ReferenceError: Cannot access 'C' before initialization" **Expected**: (no error)