codeceptjs 2.6.10 → 2.6.11

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 (61) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/docs/basics.md +2 -1
  3. package/docs/bdd.md +1 -2
  4. package/docs/build/Appium.js +1 -2
  5. package/docs/build/FileSystem.js +3 -3
  6. package/docs/build/Mochawesome.js +1 -1
  7. package/docs/build/Nightmare.js +5 -5
  8. package/docs/build/Playwright.js +40 -14
  9. package/docs/build/Protractor.js +2 -2
  10. package/docs/build/WebDriver.js +18 -6
  11. package/docs/changelog.md +134 -127
  12. package/docs/community-helpers.md +1 -1
  13. package/docs/helpers/Playwright.md +1 -1
  14. package/docs/translation.md +20 -0
  15. package/docs/wiki/{Community-Helpers.md → Community-Helpers-&-Plugins.md} +1 -1
  16. package/docs/wiki/Home.md +8 -4
  17. package/docs/wiki/Tests.md +64 -61
  18. package/lib/actor.js +1 -1
  19. package/lib/assert/empty.js +1 -1
  20. package/lib/assert/equal.js +1 -1
  21. package/lib/assert/include.js +1 -1
  22. package/lib/assert/truth.js +1 -1
  23. package/lib/codecept.js +2 -3
  24. package/lib/command/configMigrate.js +3 -5
  25. package/lib/command/definitions.js +1 -2
  26. package/lib/command/dryRun.js +1 -2
  27. package/lib/command/gherkin/init.js +1 -1
  28. package/lib/command/gherkin/snippets.js +3 -3
  29. package/lib/command/gherkin/steps.js +2 -3
  30. package/lib/command/info.js +1 -2
  31. package/lib/command/init.js +1 -1
  32. package/lib/command/interactive.js +1 -2
  33. package/lib/command/list.js +3 -4
  34. package/lib/command/run-multiple.js +2 -3
  35. package/lib/command/run-rerun.js +2 -4
  36. package/lib/command/run.js +1 -2
  37. package/lib/container.js +1 -1
  38. package/lib/data/context.js +1 -1
  39. package/lib/event.js +1 -1
  40. package/lib/helper/Appium.js +1 -2
  41. package/lib/helper/FileSystem.js +3 -3
  42. package/lib/helper/Mochawesome.js +1 -1
  43. package/lib/helper/Nightmare.js +5 -5
  44. package/lib/helper/Playwright.js +40 -14
  45. package/lib/helper/Protractor.js +2 -2
  46. package/lib/helper/WebDriver.js +18 -6
  47. package/lib/helper/clientscripts/PollyWebDriverExt.js +1 -1
  48. package/lib/hooks.js +1 -2
  49. package/lib/interfaces/gherkin.js +0 -1
  50. package/lib/listener/helpers.js +1 -2
  51. package/lib/listener/mocha.js +0 -1
  52. package/lib/locator.js +2 -2
  53. package/lib/pause.js +1 -1
  54. package/lib/plugin/allure.js +1 -1
  55. package/lib/plugin/autoDelay.js +2 -2
  56. package/lib/plugin/autoLogin.js +1 -1
  57. package/lib/plugin/standardActingHelpers.js +0 -2
  58. package/lib/recorder.js +1 -1
  59. package/package.json +3 -2
  60. package/translations/fr-FR.js +63 -0
  61. package/translations/index.js +5 -4
@@ -36,7 +36,7 @@ Please **add your own** by editing this page.
36
36
  ## Reporters
37
37
  * [codeceptjs-rphelper](https://github.com/reportportal/agent-js-codecept) is a CodeceptJS helper which can publish tests results on ReportPortal after execution.
38
38
  * [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).
39
-
39
+ * [codeceptjs-slack-reporter](https://www.npmjs.com/package/codeceptjs-slack-reporter) Get a Slack notification when one or more scenarios fail.
40
40
 
41
41
  ## Page Object Code Generator
42
42
  * [codeceptjs-CodeGenerator](https://github.com/senthillkumar/CodeCeptJS-PageObject) is a CodeceptJS custom wrapper which can create page class with action methods from the page object file(JSON) and project setup(Folder Structure).
@@ -127,7 +127,7 @@ This helper should be configured in codecept.json or codecept.conf.js
127
127
  }
128
128
  ```
129
129
 
130
- #### Example #6: Lunach tests emulating iPhone 6
130
+ #### Example #6: Launch tests emulating iPhone 6
131
131
 
132
132
  ```js
133
133
  const { devices } = require('playwright');
@@ -66,6 +66,26 @@ Scenario('Efetuar login', (Eu) => {
66
66
  });
67
67
  ```
68
68
 
69
+ ## French
70
+
71
+ To write your tests in French you can enable the French translation by adding to config:
72
+
73
+ ```json
74
+ "translation": "fr-FR"
75
+ ```
76
+
77
+ Now you can write tests like this:
78
+
79
+ ```js
80
+ Scenario('Se connecter sur GitHub', (Je) => {
81
+ Je.suisSurLaPage('https://github.com/login');
82
+ Je.remplisLeChamp("Username or email address", "jean-dupond");
83
+ Je.remplisLeChamp("Password", "*********");
84
+ Je.cliqueSur("Sign in");
85
+ Je.vois("Learn Git and GitHub without any code!");
86
+ });
87
+ ```
88
+
69
89
  ## Italian
70
90
 
71
91
  Add to config
@@ -27,7 +27,7 @@ Please **add your own** by editing this page.
27
27
  ## Reporters
28
28
  * [codeceptjs-rphelper](https://github.com/reportportal/agent-js-codecept) is a CodeceptJS helper which can publish tests results on ReportPortal after execution.
29
29
  * [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).
30
-
30
+ * [codeceptjs-slack-reporter](https://www.npmjs.com/package/codeceptjs-slack-reporter) Get a Slack notification when one or more scenarios fail.
31
31
 
32
32
  ## Page Object Code Generator
33
33
  * [codeceptjs-CodeGenerator](https://github.com/senthillkumar/CodeCeptJS-PageObject) is a CodeceptJS custom wrapper which can create page class with action methods from the page object file(JSON) and project setup(Folder Structure).
package/docs/wiki/Home.md CHANGED
@@ -1,10 +1,14 @@
1
- Welcome to the CodeceptJS wiki!
1
+ Wiki Pages contain community content which is partly copied into the website.
2
2
 
3
- Some useful links:
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:
4
10
  * [Official Site](http://codecept.io)
5
11
  * [Roadmap](https://github.com/Codeception/CodeceptJS/wiki/Roadmap)
6
- * [Books & Posts](https://github.com/Codeception/CodeceptJS/wiki/Books-&-Posts)
7
- * [Community Helpers](https://github.com/Codeception/CodeceptJS/wiki/Community-Helpers)
8
12
  * [Code on Github](https://github.com/Codeception/CodeceptJS)
9
13
  * [Change log](https://github.com/Codeception/CodeceptJS/blob/master/CHANGELOG.md)
10
14
  * [GSoC](https://github.com/Codeception/CodeceptJS/wiki/Google-Summer-of-Code-(GSoC)-2020)