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
Copy file name to clipboardExpand all lines: README.md
+46-72Lines changed: 46 additions & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,106 +140,80 @@ Verify you have a local hsg-project running at localhost:8080/exist/apps/hsg-she
140
140
141
141
### How to run local web tests
142
142
143
-
#### 1. Install Chrome
143
+
#### 1. Install Dependencies
144
144
145
-
Make sure you have Google Chrome >= 110 and all required node_modules installed (`npm install`).
145
+
Make sure you have all required node_modules installed (`npm install`). Cypress will be installed as part of the devDependencies.
146
146
147
-
##### Troubleshooting Chromedriver Problems
147
+
####2. Configuration
148
148
149
-
If you have problems with installing or running Chromedriver, have a look at these resources: [webdriver.io/docs/wdio-chromedriver-service.html](https://webdriver.io/docs/wdio-chromedriver-service.html), [stackoverflow](https://stackoverflow.com/questions/54940853/chrome-version-must-be-between-71-and-75-error-after-updating-to-chromedriver-2)
149
+
Test configuration is in `cypress.config.cjs`. The baseUrl is set to `http://localhost:8080/exist/apps/hsg-shell` by default. Test files are located in `tests/cypress/e2e/`and organized by feature area.
All available chromedriver versions are listed here: [https://chromedriver.storage.googleapis.com/](https://chromedriver.storage.googleapis.com/).
158
-
159
-
If your current Chrome version doesn't match the required one.
160
-
This command will check the required version and install a suitable Chromedriver for you.
161
-
162
-
Note: If you are using an Apple M1 computer, the filename for chromedriver has been changed by Chrome between version 105 and 106 [See fix for node_chromedriver: https://github.com/giggio/node-chromedriver/pull/386/](https://github.com/giggio/node-chromedriver/pull/386/commits/7bc8dc46583ca484ca17707d9d98f8a1f98b9be4#).
163
-
When running this project's ant script on an M1 with a Chrome version <=105, you should either update Chrome to 110 like defined in file `package.json`, or change the chromedriver version to your current Chrome version to match the expected chromedriver filename.
164
-
165
-
#### 2. Optional: Edit configuration
166
-
167
-
* Optional: Edit which test files or suites you would like to run.
Custom commands are available in `tests/cypress/support/commands.js` which provide helper methods converted from the original WebdriverIO Page Objects.
232
206
233
-
#### 4. Further documentation
207
+
#### 5. Further documentation
234
208
235
-
This web test is configured to use the framework `Mocha` with `Chai` and activated Chai plugin `assert`(`global.assert = chai.assert;`) for assertions.
209
+
This test suite uses Cypress with Mocha and Chai for assertions. The `assert` global is available (matching the previous WebdriverIO setup).
236
210
237
211
Have a look at the documentation:
238
212
239
-
*General overview about "webdriver.io": [webdriver.io/docs/gettingstarted](https://webdriver.io/docs/gettingstarted.html)
0 commit comments