Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
904 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | // @ts-check
|
---|
| 2 | // Protractor configuration file, see link for more information
|
---|
| 3 | // https://github.com/angular/protractor/blob/master/lib/config.ts
|
---|
| 4 |
|
---|
| 5 | const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
|
---|
| 6 |
|
---|
| 7 | /**
|
---|
| 8 | * @type { import("protractor").Config }
|
---|
| 9 | */
|
---|
| 10 | exports.config = {
|
---|
| 11 | allScriptsTimeout: 11000,
|
---|
| 12 | specs: [
|
---|
| 13 | './src/**/*.e2e-spec.ts'
|
---|
| 14 | ],
|
---|
| 15 | capabilities: {
|
---|
| 16 | browserName: 'chrome'
|
---|
| 17 | },
|
---|
| 18 | directConnect: true,
|
---|
| 19 | SELENIUM_PROMISE_MANAGER: false,
|
---|
| 20 | baseUrl: 'http://localhost:4200/',
|
---|
| 21 | framework: 'jasmine',
|
---|
| 22 | jasmineNodeOpts: {
|
---|
| 23 | showColors: true,
|
---|
| 24 | defaultTimeoutInterval: 30000,
|
---|
| 25 | print: function() {}
|
---|
| 26 | },
|
---|
| 27 | onPrepare() {
|
---|
| 28 | require('ts-node').register({
|
---|
| 29 | project: require('path').join(__dirname, './tsconfig.json')
|
---|
| 30 | });
|
---|
| 31 | jasmine.getEnv().addReporter(new SpecReporter({
|
---|
| 32 | spec: {
|
---|
| 33 | displayStacktrace: StacktraceOption.PRETTY
|
---|
| 34 | }
|
---|
| 35 | }));
|
---|
| 36 | }
|
---|
| 37 | }; |
---|
Note:
See
TracBrowser
for help on using the repository browser.