You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project demonstrates the basic protractor-cucumber-typescript framework project setup.
7
21
8
22
### Medium Article
9
23
Please do checkout my medium article which would give you more insight on this setup. [protractor-cucumber-typescript(Medium)](https://medium.com/@igniteram/e2e-testing-with-protractor-cucumber-using-typescript-564575814e4a)
@@ -51,7 +65,7 @@ npm run webdriver-start
51
65
52
66
* The below command would create an output folder named 'typeScript' and transpile the .ts files to .js.
53
67
```
54
-
npm run tsc
68
+
npm run build
55
69
```
56
70
57
71
* Now just run the test command which launches the Chrome Browser and runs the scripts.
@@ -74,57 +88,54 @@ Feature: To search typescript in google
74
88
#### Writing Step Definitions
75
89
76
90
```
77
-
import { browser } from 'protractor';
78
-
import { SearchPageObject } from '../pages/searchPage';
79
-
import { defineSupportCode } from 'cucumber';
80
-
let chai = require('chai').use(require('chai-as-promised'));
81
-
let expect = chai.expect;
91
+
import { browser } from "protractor";
92
+
import { SearchPageObject } from "../pages/searchPage";
tags: '@TypeScriptScenario or @CucumberScenario or @ProtractorScenario'
127
-
}
137
+
tags: "@TypeScriptScenario or @CucumberScenario or @ProtractorScenario",
138
+
},
128
139
```
129
140
#### HTML Reports
130
141
Currently this project has been integrated with [cucumber-html-reporter](https://github.com/gkushang/cucumber-html-reporter), which is generated in the `reports` folder when you run `npm test`.
0 commit comments