codeceptjs 3.5.0 → 3.5.1-2.beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/README.md +24 -25
  2. package/lib/actor.js +6 -3
  3. package/lib/ai.js +12 -3
  4. package/lib/cli.js +12 -2
  5. package/lib/codecept.js +4 -0
  6. package/lib/colorUtils.js +10 -0
  7. package/lib/command/definitions.js +2 -7
  8. package/lib/command/dryRun.js +2 -1
  9. package/lib/command/info.js +24 -0
  10. package/lib/command/init.js +51 -5
  11. package/lib/command/run-multiple/collection.js +17 -5
  12. package/lib/command/run-multiple.js +4 -2
  13. package/lib/command/run-workers.js +66 -4
  14. package/lib/command/run.js +7 -0
  15. package/lib/command/workers/runTests.js +39 -0
  16. package/lib/data/context.js +14 -6
  17. package/lib/event.js +4 -0
  18. package/lib/helper/ApiDataFactory.js +2 -1
  19. package/lib/helper/Appium.js +73 -24
  20. package/lib/helper/Expect.js +422 -0
  21. package/lib/helper/FileSystem.js +1 -1
  22. package/lib/helper/GraphQL.js +25 -0
  23. package/lib/helper/Nightmare.js +9 -4
  24. package/lib/helper/OpenAI.js +14 -10
  25. package/lib/helper/Playwright.js +1205 -288
  26. package/lib/helper/Protractor.js +11 -6
  27. package/lib/helper/Puppeteer.js +173 -61
  28. package/lib/helper/TestCafe.js +44 -9
  29. package/lib/helper/WebDriver.js +231 -82
  30. package/lib/helper/errors/ElementNotFound.js +2 -1
  31. package/lib/helper/extras/PlaywrightReactVueLocator.js +38 -0
  32. package/lib/helper/scripts/blurElement.js +17 -0
  33. package/lib/helper/scripts/focusElement.js +17 -0
  34. package/lib/helper/scripts/highlightElement.js +2 -2
  35. package/lib/html.js +3 -3
  36. package/lib/interfaces/bdd.js +1 -1
  37. package/lib/interfaces/gherkin.js +37 -3
  38. package/lib/interfaces/scenarioConfig.js +1 -0
  39. package/lib/locator.js +17 -4
  40. package/lib/mochaFactory.js +2 -1
  41. package/lib/output.js +1 -1
  42. package/lib/pause.js +12 -9
  43. package/lib/plugin/autoLogin.js +45 -10
  44. package/lib/plugin/heal.js +47 -17
  45. package/lib/plugin/retryFailedStep.js +10 -1
  46. package/lib/plugin/retryTo.js +2 -4
  47. package/lib/plugin/selenoid.js +6 -1
  48. package/lib/plugin/standardActingHelpers.js +0 -2
  49. package/lib/plugin/stepByStepReport.js +2 -2
  50. package/lib/plugin/tryTo.js +5 -7
  51. package/lib/plugin/wdio.js +0 -1
  52. package/lib/recorder.js +20 -9
  53. package/lib/session.js +1 -1
  54. package/lib/step.js +30 -11
  55. package/lib/ui.js +1 -0
  56. package/lib/utils.js +18 -1
  57. package/lib/workers.js +28 -3
  58. package/package.json +108 -98
  59. package/translations/de-DE.js +5 -0
  60. package/translations/fr-FR.js +14 -1
  61. package/translations/it-IT.js +1 -0
  62. package/translations/ja-JP.js +5 -0
  63. package/translations/pl-PL.js +5 -0
  64. package/translations/pt-BR.js +1 -0
  65. package/translations/ru-RU.js +1 -0
  66. package/translations/zh-CN.js +5 -0
  67. package/translations/zh-TW.js +5 -0
  68. package/typings/index.d.ts +8 -6
  69. package/typings/promiseBasedTypes.d.ts +784 -822
  70. package/typings/types.d.ts +1214 -727
  71. package/CHANGELOG.md +0 -2492
  72. package/docs/advanced.md +0 -351
  73. package/docs/ai.md +0 -246
  74. package/docs/api.md +0 -323
  75. package/docs/basics.md +0 -980
  76. package/docs/bdd.md +0 -535
  77. package/docs/best.md +0 -237
  78. package/docs/books.md +0 -37
  79. package/docs/bootstrap.md +0 -135
  80. package/docs/build/ApiDataFactory.js +0 -409
  81. package/docs/build/Appium.js +0 -1978
  82. package/docs/build/FileSystem.js +0 -228
  83. package/docs/build/GraphQL.js +0 -204
  84. package/docs/build/GraphQLDataFactory.js +0 -309
  85. package/docs/build/JSONResponse.js +0 -338
  86. package/docs/build/Mochawesome.js +0 -71
  87. package/docs/build/Nightmare.js +0 -2147
  88. package/docs/build/OpenAI.js +0 -122
  89. package/docs/build/Playwright.js +0 -4134
  90. package/docs/build/Polly.js +0 -42
  91. package/docs/build/Protractor.js +0 -2701
  92. package/docs/build/Puppeteer.js +0 -3743
  93. package/docs/build/REST.js +0 -344
  94. package/docs/build/SeleniumWebdriver.js +0 -76
  95. package/docs/build/TestCafe.js +0 -2059
  96. package/docs/build/WebDriver.js +0 -4042
  97. package/docs/changelog.md +0 -2501
  98. package/docs/commands.md +0 -254
  99. package/docs/community-helpers.md +0 -58
  100. package/docs/configuration.md +0 -157
  101. package/docs/continuous-integration.md +0 -22
  102. package/docs/custom-helpers.md +0 -306
  103. package/docs/data.md +0 -375
  104. package/docs/detox.md +0 -235
  105. package/docs/docker.md +0 -137
  106. package/docs/email.md +0 -183
  107. package/docs/examples.md +0 -149
  108. package/docs/helpers/ApiDataFactory.md +0 -266
  109. package/docs/helpers/Appium.md +0 -1317
  110. package/docs/helpers/Detox.md +0 -586
  111. package/docs/helpers/FileSystem.md +0 -152
  112. package/docs/helpers/GraphQL.md +0 -130
  113. package/docs/helpers/GraphQLDataFactory.md +0 -226
  114. package/docs/helpers/JSONResponse.md +0 -254
  115. package/docs/helpers/Mochawesome.md +0 -8
  116. package/docs/helpers/MockRequest.md +0 -377
  117. package/docs/helpers/Nightmare.md +0 -1258
  118. package/docs/helpers/OpenAI.md +0 -70
  119. package/docs/helpers/Playwright.md +0 -2250
  120. package/docs/helpers/Polly.md +0 -44
  121. package/docs/helpers/Puppeteer-firefox.md +0 -86
  122. package/docs/helpers/Puppeteer.md +0 -2147
  123. package/docs/helpers/REST.md +0 -218
  124. package/docs/helpers/TestCafe.md +0 -1224
  125. package/docs/helpers/WebDriver.md +0 -2325
  126. package/docs/hooks.md +0 -340
  127. package/docs/index.md +0 -111
  128. package/docs/installation.md +0 -75
  129. package/docs/internal-api.md +0 -265
  130. package/docs/locators.md +0 -331
  131. package/docs/mobile-react-native-locators.md +0 -67
  132. package/docs/mobile.md +0 -344
  133. package/docs/nightmare.md +0 -223
  134. package/docs/pageobjects.md +0 -291
  135. package/docs/parallel.md +0 -288
  136. package/docs/playwright.md +0 -609
  137. package/docs/plugins.md +0 -1225
  138. package/docs/puppeteer.md +0 -316
  139. package/docs/quickstart.md +0 -163
  140. package/docs/react.md +0 -69
  141. package/docs/reports.md +0 -392
  142. package/docs/secrets.md +0 -36
  143. package/docs/shadow.md +0 -68
  144. package/docs/shared/keys.mustache +0 -31
  145. package/docs/shared/react.mustache +0 -1
  146. package/docs/testcafe.md +0 -174
  147. package/docs/translation.md +0 -247
  148. package/docs/tutorial.md +0 -271
  149. package/docs/typescript.md +0 -180
  150. package/docs/ui.md +0 -59
  151. package/docs/videos.md +0 -28
  152. package/docs/visual.md +0 -202
  153. package/docs/vue.md +0 -121
  154. package/docs/webapi/amOnPage.mustache +0 -11
  155. package/docs/webapi/appendField.mustache +0 -11
  156. package/docs/webapi/attachFile.mustache +0 -12
  157. package/docs/webapi/checkOption.mustache +0 -13
  158. package/docs/webapi/clearCookie.mustache +0 -10
  159. package/docs/webapi/clearField.mustache +0 -9
  160. package/docs/webapi/click.mustache +0 -25
  161. package/docs/webapi/clickLink.mustache +0 -8
  162. package/docs/webapi/closeCurrentTab.mustache +0 -7
  163. package/docs/webapi/closeOtherTabs.mustache +0 -8
  164. package/docs/webapi/dontSee.mustache +0 -11
  165. package/docs/webapi/dontSeeCheckboxIsChecked.mustache +0 -10
  166. package/docs/webapi/dontSeeCookie.mustache +0 -8
  167. package/docs/webapi/dontSeeCurrentUrlEquals.mustache +0 -10
  168. package/docs/webapi/dontSeeElement.mustache +0 -8
  169. package/docs/webapi/dontSeeElementInDOM.mustache +0 -8
  170. package/docs/webapi/dontSeeInCurrentUrl.mustache +0 -4
  171. package/docs/webapi/dontSeeInField.mustache +0 -11
  172. package/docs/webapi/dontSeeInSource.mustache +0 -8
  173. package/docs/webapi/dontSeeInTitle.mustache +0 -8
  174. package/docs/webapi/doubleClick.mustache +0 -13
  175. package/docs/webapi/downloadFile.mustache +0 -12
  176. package/docs/webapi/dragAndDrop.mustache +0 -9
  177. package/docs/webapi/dragSlider.mustache +0 -11
  178. package/docs/webapi/executeAsyncScript.mustache +0 -24
  179. package/docs/webapi/executeScript.mustache +0 -26
  180. package/docs/webapi/fillField.mustache +0 -16
  181. package/docs/webapi/forceClick.mustache +0 -28
  182. package/docs/webapi/forceRightClick.mustache +0 -18
  183. package/docs/webapi/grabAllWindowHandles.mustache +0 -7
  184. package/docs/webapi/grabAttributeFrom.mustache +0 -10
  185. package/docs/webapi/grabAttributeFromAll.mustache +0 -9
  186. package/docs/webapi/grabBrowserLogs.mustache +0 -9
  187. package/docs/webapi/grabCookie.mustache +0 -11
  188. package/docs/webapi/grabCssPropertyFrom.mustache +0 -11
  189. package/docs/webapi/grabCssPropertyFromAll.mustache +0 -10
  190. package/docs/webapi/grabCurrentUrl.mustache +0 -9
  191. package/docs/webapi/grabCurrentWindowHandle.mustache +0 -6
  192. package/docs/webapi/grabDataFromPerformanceTiming.mustache +0 -20
  193. package/docs/webapi/grabElementBoundingRect.mustache +0 -20
  194. package/docs/webapi/grabGeoLocation.mustache +0 -8
  195. package/docs/webapi/grabHTMLFrom.mustache +0 -10
  196. package/docs/webapi/grabHTMLFromAll.mustache +0 -9
  197. package/docs/webapi/grabNumberOfOpenTabs.mustache +0 -8
  198. package/docs/webapi/grabNumberOfVisibleElements.mustache +0 -9
  199. package/docs/webapi/grabPageScrollPosition.mustache +0 -8
  200. package/docs/webapi/grabPopupText.mustache +0 -5
  201. package/docs/webapi/grabSource.mustache +0 -8
  202. package/docs/webapi/grabTextFrom.mustache +0 -10
  203. package/docs/webapi/grabTextFromAll.mustache +0 -9
  204. package/docs/webapi/grabTitle.mustache +0 -8
  205. package/docs/webapi/grabValueFrom.mustache +0 -9
  206. package/docs/webapi/grabValueFromAll.mustache +0 -8
  207. package/docs/webapi/moveCursorTo.mustache +0 -12
  208. package/docs/webapi/openNewTab.mustache +0 -7
  209. package/docs/webapi/pressKey.mustache +0 -12
  210. package/docs/webapi/pressKeyDown.mustache +0 -12
  211. package/docs/webapi/pressKeyUp.mustache +0 -12
  212. package/docs/webapi/pressKeyWithKeyNormalization.mustache +0 -60
  213. package/docs/webapi/refreshPage.mustache +0 -6
  214. package/docs/webapi/resizeWindow.mustache +0 -6
  215. package/docs/webapi/rightClick.mustache +0 -14
  216. package/docs/webapi/saveElementScreenshot.mustache +0 -10
  217. package/docs/webapi/saveScreenshot.mustache +0 -12
  218. package/docs/webapi/say.mustache +0 -10
  219. package/docs/webapi/scrollIntoView.mustache +0 -11
  220. package/docs/webapi/scrollPageToBottom.mustache +0 -6
  221. package/docs/webapi/scrollPageToTop.mustache +0 -6
  222. package/docs/webapi/scrollTo.mustache +0 -12
  223. package/docs/webapi/see.mustache +0 -11
  224. package/docs/webapi/seeAttributesOnElements.mustache +0 -9
  225. package/docs/webapi/seeCheckboxIsChecked.mustache +0 -10
  226. package/docs/webapi/seeCookie.mustache +0 -8
  227. package/docs/webapi/seeCssPropertiesOnElements.mustache +0 -9
  228. package/docs/webapi/seeCurrentUrlEquals.mustache +0 -11
  229. package/docs/webapi/seeElement.mustache +0 -8
  230. package/docs/webapi/seeElementInDOM.mustache +0 -8
  231. package/docs/webapi/seeInCurrentUrl.mustache +0 -8
  232. package/docs/webapi/seeInField.mustache +0 -12
  233. package/docs/webapi/seeInPopup.mustache +0 -8
  234. package/docs/webapi/seeInSource.mustache +0 -7
  235. package/docs/webapi/seeInTitle.mustache +0 -8
  236. package/docs/webapi/seeNumberOfElements.mustache +0 -11
  237. package/docs/webapi/seeNumberOfVisibleElements.mustache +0 -10
  238. package/docs/webapi/seeTextEquals.mustache +0 -9
  239. package/docs/webapi/seeTitleEquals.mustache +0 -8
  240. package/docs/webapi/selectOption.mustache +0 -21
  241. package/docs/webapi/setCookie.mustache +0 -16
  242. package/docs/webapi/setGeoLocation.mustache +0 -12
  243. package/docs/webapi/switchTo.mustache +0 -9
  244. package/docs/webapi/switchToNextTab.mustache +0 -10
  245. package/docs/webapi/switchToPreviousTab.mustache +0 -10
  246. package/docs/webapi/type.mustache +0 -21
  247. package/docs/webapi/uncheckOption.mustache +0 -13
  248. package/docs/webapi/wait.mustache +0 -8
  249. package/docs/webapi/waitForClickable.mustache +0 -11
  250. package/docs/webapi/waitForDetached.mustache +0 -10
  251. package/docs/webapi/waitForElement.mustache +0 -11
  252. package/docs/webapi/waitForEnabled.mustache +0 -6
  253. package/docs/webapi/waitForFunction.mustache +0 -17
  254. package/docs/webapi/waitForInvisible.mustache +0 -10
  255. package/docs/webapi/waitForText.mustache +0 -13
  256. package/docs/webapi/waitForValue.mustache +0 -10
  257. package/docs/webapi/waitForVisible.mustache +0 -10
  258. package/docs/webapi/waitInUrl.mustache +0 -9
  259. package/docs/webapi/waitNumberOfVisibleElements.mustache +0 -10
  260. package/docs/webapi/waitToHide.mustache +0 -10
  261. package/docs/webapi/waitUrlEquals.mustache +0 -10
  262. package/docs/webdriver.md +0 -657
  263. package/docs/wiki/Books-&-Posts.md +0 -27
  264. package/docs/wiki/Community-Helpers-&-Plugins.md +0 -49
  265. package/docs/wiki/Converting-Playwright-to-Istanbul-Coverage.md +0 -29
  266. package/docs/wiki/Examples.md +0 -139
  267. package/docs/wiki/Google-Summer-of-Code-(GSoC)-2020.md +0 -68
  268. package/docs/wiki/Home.md +0 -16
  269. package/docs/wiki/Release-Process.md +0 -24
  270. package/docs/wiki/Roadmap.md +0 -23
  271. package/docs/wiki/Tests.md +0 -1393
  272. package/docs/wiki/Upgrading-to-CodeceptJS-3.md +0 -153
  273. package/docs/wiki/Videos.md +0 -19
@@ -1,49 +0,0 @@
1
- Here is the list of helpers created by our community.
2
- Please **add your own** by editing this page.
3
- ## Webhooks
4
-
5
- * [codeceptjs-webhook-helper](https://github.com/onemolegames/codeceptjs-webhook-helper) - to check webhook calls during the tests.
6
-
7
- ## Email Checking
8
-
9
- * [MailCatcher](https://gist.github.com/schmkr/026732dfa1627b927ff3a08dc31ee884) - to check emails via Mailcatcher locally.
10
- * [codeceptjs-mailhog-helper](https://github.com/tsuemura/codeceptjs-mailhog-helper) - to check emails via Mailhog locally.
11
- * [codeceptjs-testmailapp-helper](https://github.com/pavkam/codeceptjs-testmailapp-helper) - to check emails via Testmail.app service.
12
- * [codeceptjs-mailosaurhelper](https://github.com/yurkovychv/codeceptjs-mailosaur) - to check emails via [Mailosaur](https://mailosaur.com/) service.
13
-
14
- ## Data Sources
15
-
16
- * [codeceptjs-httpmock](https://github.com/testphony/codeceptjs-httpMock) - a helper which wraps mockttp library to manage http mock in tests.
17
- * [codeceptjs-http](https://github.com/testphony/codeceptjs-http) - a helper which wraps then-request library to process HTTP requests. It's alternative helper that provides more flexible request management.
18
- * [codeceptjs-dbhelper](https://github.com/thiagodp/codeceptjs-dbhelper) - allows you to execute queries or commands to databases using database-js.
19
-
20
- ## Cloud Providers
21
- * [codeceptjs-saucehelper](https://github.com/puneet0191/codeceptjs-saucehelper/) - a helper which updates `Test Names` & `Test Results` on Saucelabs
22
- * [codeceptjs-bshelper](https://github.com/PeterNgTr/codeceptjs-bshelper) - a helper which updates `Test Names` & `Test Results` on Browserstack
23
- * [codeceptjs-tbhelper](https://github.com/testingbot/codeceptjs-tbhelper) - a helper which updates `Test Names` & `Test Results` on TestingBot
24
-
25
- ## Integrations
26
- * [codeceptjs-testrail](https://github.com/PeterNgTr/codeceptjs-testrail) - a plugin to integrate with [Testrail](https://www.gurock.com/testrail)
27
-
28
- ## Visual-Testing
29
- * [codeceptjs-resemblehelper](https://github.com/puneet0191/codeceptjs-resemblehelper) - a helper which helps with visual testing using resemble.js.
30
- * [codeceptjs-applitoolshelper](https://www.npmjs.com/package/codeceptjs-applitoolshelper) - a helper which helps interaction with [Applitools](https://applitools.com)
31
- * [codeceptjs-pixelmatchhelper](https://github.com/stracker-phil/codeceptjs-pixelmatchhelper) - a helper that integrates pixelmatch for visual testing.
32
-
33
- ## Reporters
34
- * [codeceptjs-rphelper](https://github.com/reportportal/agent-js-codecept) is a CodeceptJS helper which can publish tests results on ReportPortal after execution.
35
- * [codeceptjs-xray-helper](https://www.npmjs.com/package/codeceptjs-xray-helper) is a CodeceptJS helper which can publish tests results on [XRAY](https://confluence.xpand-it.com/display/XRAYCLOUD/Import+Execution+Results+-+REST).
36
- * [codeceptjs-slack-reporter](https://www.npmjs.com/package/codeceptjs-slack-reporter) Get a Slack notification when one or more scenarios fail.
37
- * [codeceptjs-browserlogs-plugin](https://github.com/pavkam/codeceptjs-browserlogs-plugin) Record the browser logs for failed tests.
38
-
39
- ## Browser request control
40
- * [codeceptjs-resources-check](https://github.com/luarmr/codeceptjs-resources-check) Load a URL with Puppeteer and listen to the requests while the page is loading. Enabling count the number or check the sizes of the requests.
41
-
42
- ## Assertion & Validations
43
- * [codeceptjs-chai](https://www.npmjs.com/package/codeceptjs-chai) is a CodeceptJS helper which wraps
44
- [chai](https://www.chaijs.com/) library to complete chai assertion steps with CodeceptJS logging.
45
-
46
- ## Other
47
-
48
- * [codeceptjs-cmdhelper](https://github.com/thiagodp/codeceptjs-cmdhelper) allows you to run commands in the terminal/console
49
- * [eslint-plugin-codeceptjs](https://www.npmjs.com/package/eslint-plugin-codeceptjs) Eslint rules for CodeceptJS.
@@ -1,29 +0,0 @@
1
- How to convert `playwright` coverage format to `istanbul` coverage
2
-
3
- To convert coverage generated from `playwright` to `istanbul` coverage, you first need to install
4
- - [`v8-to-istanbul`](https://www.npmjs.com/package/v8-to-istanbul)
5
-
6
- Once installed, convert the coverage to a format which `istanbul` can recognize, by writing a script as shown below.
7
-
8
- ```js
9
- const v8toIstanbul = require('v8-to-istanbul');
10
- // read all the coverage file from output/coverage folder
11
- const coverage = require('./output/coverage/Visit_Home_1630335005.coverage.json');
12
- const fs = require('fs/promises');
13
-
14
- (async () => {
15
- for (const entry of coverage) {
16
- // Used to get file name
17
- const file = entry.url.match(/(?:http(s)*:\/\/.*\/)(?<file>.*)/);
18
- const converter = new v8toIstanbul(file.groups.file, 0, {
19
- source: entry.source
20
- });
21
-
22
- await converter.load();
23
- converter.applyCoverage(entry.functions);
24
-
25
- // Store converted coverage file which can later be used to generate report
26
- await fs.writeFile('./coverage/final.json', JSON.stringify(converter.toIstanbul(), null, 2));
27
- }
28
- })();
29
- ```
@@ -1,139 +0,0 @@
1
- ## [TodoMVC Examples](https://github.com/codecept-js/examples)
2
-
3
- ![](https://github.com/codecept-js/examples/raw/master/todo.png)
4
-
5
- Playground repository where you can run tests in different helpers on a basic single-page website.
6
-
7
- Tests repository demonstrate usage of
8
-
9
- * Puppeteer helper
10
- * WebDriver helper
11
- * TestCafe plugin
12
- * Toggle headless mode with env variables
13
- * PageObjects
14
- * Cucumber syntax
15
-
16
- ## [Basic Examples](https://github.com/Codeception/CodeceptJS/tree/master/examples)
17
-
18
- CodeceptJS repo contains basic tests (both failing and passing) just to show how it works.
19
- Our team uses it to test new features and run simple scenarios.
20
-
21
-
22
- ## [CodeceptJS Cucumber E2E Framework](https://github.com/gkushang/codeceptjs-e2e)
23
-
24
- This repository contains complete E2E framework for CodeceptJS with Cucumber and SauceLabs Integration
25
-
26
- * CodecepJS-Cucumber E2E Framework
27
- * Saucelabs Integration
28
- * Run Cross Browser tests in Parallel on SauceLabs with a simple command
29
- * Run tests on `chrome:headless`
30
- * Page Objects
31
- * `Should.js` Assertion Library
32
- * Uses `wdio` service (selenium-standalone, sauce)
33
- * Allure HTML Reports
34
- * Uses shared Master configuration
35
- * Sample example and feature files of GitHub Features
36
-
37
- ## [Enterprise Grade Tests](https://github.com/uc-cdis/gen3-qa)
38
-
39
- Complex testing solution by [Gen3](https://github.com/uc-cdis/gen3-qa)
40
-
41
- Includes
42
-
43
- * classical CodeceptJS tests
44
- * BDD tests
45
- * Jenkins integration
46
- * Complex Before/BeforeSuite scripts and more
47
-
48
- ## [Testing Single Page Application](https://github.com/bugiratracker/codeceptjs-demo)
49
-
50
- End 2 end tests for Task management app (currently offline).
51
-
52
- Tests repository demonstrate usage of
53
-
54
- * Puppeteer helper
55
- * ApiDataFactory helper
56
- * autoLogin plugin
57
- * Dynamic config with profiles
58
-
59
- ## [Practical E2E Tests](https://gitlab.com/paulvincent/codeceptjs-e2e-testing)
60
-
61
- Examples from the book [Practical End 2 End Testing with CodeceptJS](https://leanpub.com/codeceptjs/) by **Paul Vincent Beigang**.
62
-
63
- This repository demonstrates usage of:
64
-
65
- * dynamic config with profiles
66
- * testing WYSIWYG editor
67
- * GitLab CI
68
-
69
- ## [Amazon Tests v2](https://gitlab.com/thanhnguyendh/codeceptjs-wdio-services)
70
-
71
- Testing Amazon website using Selenium WebDriver.
72
-
73
- This repository demonstrates usage of:
74
-
75
- * WebDriver helper
76
- * Page Objects
77
- * wdio services (selenium-standalone)
78
- * Parallel execution
79
- * GitLab CI setup
80
-
81
- ## [Tests with Docker Compose](https://github.com/mathesouza/codeceptjs-docker-compose)
82
-
83
- Running CodeceptJS tests with Docker Compose
84
-
85
- This repository demonstrates usage of:
86
-
87
- * CodeceptJS Docker image
88
- * WebDriver helper
89
- * Allure plugin
90
-
91
-
92
- ## [AngularJS Example Tests](https://github.com/armno/angular-e2e-codeceptjs-example)
93
-
94
- Based on [Setting up End-to-End Testing in Angular Project with CodeceptJS](https://medium.com/@armno/setting-up-end-to-end-testing-in-angular-project-with-codeceptjs-ac1784de3420) post by Armno Prommarak.
95
-
96
- This repository demonstrates usage of
97
-
98
- * Puppeteer helper
99
- * Working with Angular CLI
100
- * Reports with Mochawesome helper
101
-
102
- ## [REST Example Tests](https://github.com/PeterNgTr/codeceptjs-rest-demo)
103
-
104
- This repository demonstrates usage of
105
-
106
- * REST helper
107
-
108
- ## [Automation Starter](https://github.com/sjorrillo/automation-starter)
109
-
110
- The purpose of this application is for learning the basics and how to use good practices and useful tools in automation.
111
-
112
- * Puppeteer helper
113
- * Working with gherkin, also it has type definitions and to be able to use them inside when, given and then make sure you add `declare function inject(): { I: CodeceptJS.I, [key: string]: any; };`in the `steps.d.ts`file
114
- * Linting `airbnb-base`, `codeceptjs/codeceptjs` and full ES6 support
115
-
116
- ## [Example for using: Puppeteer, Gherkin, Allure with parallel execution](https://github.com/SchnuckySchuster/codeceptJSExample)
117
-
118
- This is a ready to use example that shows how to integrate CodeceptJS with Puppeteer and Allure as reporting tool.
119
-
120
- * detailed ReadMe
121
- * tests written in cucumber alongside tests written in the codeceptJS DSL
122
- * puppeteer helper example
123
- * test steps, pages, fragments
124
- * examples for sequential and parallel execution
125
- * generation of allure test results
126
-
127
- ## [Example for Advanced REST API testing: TypeScript, Axios, CodeceptJS, Jest Expect, Docker, Allure, Mock-Server, Prettier + Eslint, pre-commit, Jest Unit Tests ](https://github.com/EgorBodnar/rest-axios-codeceptjs-allure-docker-test-example)
128
- One button example with built-in mocked backend.
129
-
130
- If you already have a UI testing solution based on the CodeceptJS and you need to implement advanced REST API testing you can just extend your existing framework. Use this implementation as an example.
131
- This is necessary if all integrations with TMS and CI/CD are already configured, and you do not want to reconnect and configure the plugins and libraries used for the new test runner. Use CodeceptJS!
132
-
133
- * Easy run
134
- * Detailed README
135
- * Well documented mocked backend's REST API endpoints
136
- * HTTP request client with session support and unit tests
137
- * Exemplary code control
138
- * Ready to launch in a CI/CD system as is
139
- * OOP, Test data models and builders, endpoint decorators
@@ -1,68 +0,0 @@
1
- ### About
2
- GSoC is an international annual program in which Google awards stipends to university students who successfully complete a requested coding project during the summer.
3
-
4
- Codecept-JS has decided to apply to participate in GSoC 2020, Please note that the final list of GSoC 2020 organizations will be announced on 22nd Feb 2020.
5
-
6
- To read more about the program please visit [GSoC Program](https://summerofcode.withgoogle.com/)
7
-
8
- The timeline for the program can be found on [Official Program Timeline](https://summerofcode.withgoogle.com/how-it-works/#timeline)
9
-
10
- ### Contact Information
11
-
12
- For all the students who are interested in working with Codecept-JS organization for GSoC 2020, you can start by reaching out to our organization team by posting your interest in our [Forum](https://codecept.discourse.group/)
13
-
14
- Read about the Project on our [Official Project Website](https://codecept.io/)
15
-
16
- You can also join our Community Slack, which is used for community conversation, our GSoC team will be available on slack, we will have dedicated channel for GSoC Students and Projects, join [here](http://bit.ly/chat-codeceptjs)
17
-
18
- ### Student Information
19
-
20
- If you are a student and are interested in participating, the following is useful information.
21
-
22
- #### Proposal Guidelines
23
- Before applying as a Codeceptjs Contributor, we suggest you review the points below. It can help you with creating a strong Proposal.
24
-
25
- 1. Read about Codeceptjs on our [Official Website](https://codecept.io/)
26
- 2. Setup Codeceptjs on your working system, and then Go through the list of open issues on our [Github Repo](https://github.com/Codeception/CodeceptJS/issues), try to help us with fixing some of them, or help in testing existing PR's from our developers.
27
- 3. Go through the guides available on our official website, understand how our helpers work and check the list of current helpers on our organization [Github](https://github.com/codecept-js)
28
-
29
- #### Application Template
30
-
31
- If you are planning to send us a proposal, please make sure you have addressed the following elements:
32
-
33
- 1. About you (your background, experience, education, hobbies)
34
- 2. Project background (current state of what exist)
35
- 3. Design/description of work
36
- 4. Benefit of your work to the project users and developers
37
- 5. Deliverables
38
- 6. Scheduling
39
- 7. Other commitments (i.e., exams, part time work, holidays, lectures, etc.)
40
- 8. Community engagement (involvement, sample PR's, forum discussions, other open-source involvement)
41
-
42
- ### Idea's for GSoC 2020
43
-
44
- #### Improve Visual Testing Support in Codeceptjs
45
- CodeceptJS has a visual testing helper which is based on resemble.js, instructions to set up and use the helper can be found [here](https://github.com/codecept-js/codeceptjs-resemblehelper)
46
-
47
- We have several improvements we want to make to our helper, here is the list.
48
- 1. Add Support for Allure Reporter
49
- 2. Add Support for Visual Testing with [Codecept UI](https://codecept.io/ui/)
50
- 3. Support for [Workers](https://codecept.io/parallel/)
51
-
52
- Knowledge Prerequisite: Github, Nodejs, CodeceptJS, Resemble.js
53
-
54
- Difficulty: Medium
55
-
56
- Possible Mentors: Puneet Kala, Koushik Mohan
57
-
58
- #### Improve Codecept UI
59
- CodeceptJS has an interactive, graphical test runner, which is called CodeceptUI. It works on Browsers and helps in managing tests.
60
- We need help with improving the CodeceptUI project, fixing existing issues.
61
- 1. To get started, please read about CodeceptUI [here](https://codecept.io/ui/)
62
- 2. To get your hands on the code, you can check out the Repo [here](https://github.com/codecept-js/ui), look at the list of open issues and start with fixing them.
63
-
64
- Knowledge Prerequisite: Github, CodeceptJS, JS, VueJS, Express.js, WebSockets, NodeJS
65
-
66
- Difficulty: Medium
67
-
68
- Possible Mentors: Michael Bodnarchuk, Paul
package/docs/wiki/Home.md DELETED
@@ -1,16 +0,0 @@
1
- Wiki Pages contain community content which is partly copied into the website.
2
-
3
- * :toolbox: [Community Helpers & Plugins](https://github.com/codeceptjs/CodeceptJS/wiki/Community-Helpers-&-Plugins) - collection of community-driven plugins and helpers (synced with website).
4
- * :eyes: [Examples](https://github.com/codeceptjs/CodeceptJS/wiki/Examples) - collection of CodeceptJS sample projects (synced with website).
5
- * :book: [Books & Posts](https://github.com/Codeception/CodeceptJS/wiki/Books-&-Posts) - posts about CodeceptJS (synced with website).
6
- * :tv: [Videos](https://github.com/codeceptjs/CodeceptJS/wiki/Videos) - videos on CodeceptJS (synced with website).
7
- Add your own entries to these lists.
8
-
9
- Other useful links:
10
- * [Official Site](http://codecept.io)
11
- * [Roadmap](https://github.com/Codeception/CodeceptJS/wiki/Roadmap)
12
- * [Code on Github](https://github.com/Codeception/CodeceptJS)
13
- * [Change log](https://github.com/Codeception/CodeceptJS/blob/master/CHANGELOG.md)
14
- * [GSoC](https://github.com/Codeception/CodeceptJS/wiki/Google-Summer-of-Code-(GSoC)-2020)
15
-
16
-
@@ -1,24 +0,0 @@
1
- This is the guide for maintainers:
2
-
3
- ## Release Process
4
-
5
- 1. Pull the latest changes from main branch for release stream e.g. 3.x
6
- 2. Create a release branch and switch to it by `git checkout -b release-x.x.x`
7
- 3. Update version in `package.json`
8
- 4. Go through the commits for the new release and add them to the CHANGELOG.md:
9
- * Changelog should be written for humans (not for robots).
10
- * Use simple wording explaining what the change is, how to use a new feature (maybe with a code example) and mention the related issue.
11
- * When using `#123` a link for issue #123 will be automatically added.
12
- * A contributor must be mentioned. We use GitHub names with `@` prefix. A link to user profile is automatically added.
13
- 5. Run `./runok.js docs` to build documentation
14
- 6. Commit all changes, push and create a PR
15
- 7. Check that all tests pass and merge your PR
16
- 8. Run `./runok.js release` to publish latest release. The website will be updated.
17
- * To update version for patch release: `./runok.js release patch`
18
- * To update version for minor release: `./runok.js release minor`
19
- 9. Post announcements in Twitter & Slack
20
-
21
- ## Updating the website
22
-
23
- * Run `./runok.js docs:helpers` to build docs from helpers
24
- * Run `./runok.js publish:site` to update a website
@@ -1,23 +0,0 @@
1
- [Upcoming releases](https://github.com/Codeception/CodeceptJS/projects)
2
-
3
- ## Backlog
4
-
5
- * Shadow-DOM locator integration with webdriverio 5.x
6
- * Cypress integration
7
- * Reuse a single browser session while writing tests
8
-
9
- ---
10
-
11
- ## Done
12
-
13
- To make those features implemented, consider [sponsoring CodeceptJS](https://github.com/Codeception/CodeceptJS/issues/1462).
14
-
15
- * ~GraphQL helper~
16
- * ~Cypress-like Development mode:~
17
- * ~UI for selecting and executing tests~
18
- * ~[Detox](https://github.com/wix/Detox) integration for React Native and mobile testing~
19
- * ~TestCafe integration~
20
- * ~Parallel execution via workers (improves CPU consumation, reporting)~
21
- * ~Mock Request/Response in Puppeteer helper via [PollyJS](https://github.com/Netflix/pollyjs).~
22
- * Update BDD/Gherkin support to Gherkin version 6 specification
23
- * [See Version 6.0.13](https://github.com/cucumber/cucumber/blob/master/gherkin/CHANGELOG.md#6013---2018-09-25)