forked from angular/protractor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(tests): Reorganize typesript tests
* Moved our `/spec/install/noCF/` tests back to `/spec/ts` and restored `ts_spec_config.json`. * It turns out that typescript@~2.0.0 does support `-p config_file.json`. The thing it doesn't support is pointing `include` to a folder. So rather than moving everything in angular#4062, we just needed to use globs. * Split `smokeSpec.ts` into `is_disabled_spec.ts` and `element_spec.ts`. * Renamed `noCFSmokeConf.ts` to `noCFBasicConf.ts` so it is more clearly analogous to `basicConf.js`. * Added test using blocking proxy for `noCFBasicConf.ts`. Also added generated `exampleTypescript/` files to `.npmignore`
- Loading branch information
Showing
12 changed files
with
46 additions
and
44 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 was deleted.
Oops, something went wrong.
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
17 changes: 1 addition & 16 deletions
17
spec/install/noCF/smoke_spec.ts → spec/ts/basic/element_spec.ts
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,16 @@ | ||
import {browser, promise as ppromise} from '../../..'; | ||
|
||
describe('verify control flow is off', function() { | ||
it('should have set webdriver.promise.USE_PROMISE_MANAGER', () => { | ||
expect((ppromise as any).USE_PROMISE_MANAGER).toBe(false); | ||
}); | ||
|
||
it('should not wait on one command before starting another', async function() { | ||
// Wait forever | ||
browser.controlFlow().wait( | ||
(browser.controlFlow() as any).promise((): void => undefined) as ppromise.Promise<void>); | ||
|
||
// then return | ||
await browser.controlFlow().execute(() => ppromise.when(null)); | ||
}); | ||
}); |
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,8 @@ | ||
import {browser, protractor} from '../../..'; | ||
|
||
describe('plugins', function() { | ||
it('should have run the onPageLoad hook', async function() { | ||
await browser.get('index.html'); | ||
await expect((protractor as any).ON_PAGE_LOAD).toBe(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
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,6 +16,6 @@ | |
"website", | ||
"scripts", | ||
"exampleTypescript", | ||
"spec/install" | ||
"spec/**/*" | ||
] | ||
} |