Browse Source

Add protractor config

tags/v1.3.1-1
Manuel Friedli 1 year ago
parent
commit
20737a6a68
2 changed files with 32 additions and 1 deletions
  1. 1
    1
      .gitignore
  2. 31
    0
      e2e/protractor.conf.js

+ 1
- 1
.gitignore View File

@@ -35,7 +35,7 @@ testem.log
35 35
 /typings
36 36
 
37 37
 # e2e
38
-/e2e/*.js
38
+# /e2e/*.js
39 39
 /e2e/*.map
40 40
 
41 41
 # System Files

+ 31
- 0
e2e/protractor.conf.js View File

@@ -0,0 +1,31 @@
1
+// Protractor configuration file, see link for more information
2
+// https://github.com/angular/protractor/blob/master/lib/config.ts
3
+
4
+const { SpecReporter } = require('jasmine-spec-reporter');
5
+
6
+exports.config = {
7
+  allScriptsTimeout: 11000,
8
+  specs: [
9
+    './src/**/*.e2e-spec.ts'
10
+  ],
11
+  capabilities: {
12
+    'browserName': 'chrome',
13
+    chromeOptions: {
14
+      args: [ "--headless", "--disable-gpu", "--no-sandbox" ]
15
+    }
16
+  },
17
+  directConnect: true,
18
+  baseUrl: 'http://localhost:4200/',
19
+  framework: 'jasmine',
20
+  jasmineNodeOpts: {
21
+    showColors: true,
22
+    defaultTimeoutInterval: 30000,
23
+    print: function() {}
24
+  },
25
+  onPrepare() {
26
+    require('ts-node').register({
27
+      project: require('path').join(__dirname, './tsconfig.e2e.json')
28
+    });
29
+    jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
30
+  }
31
+};

Loading…
Cancel
Save