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
- For translations: gettext (`aptdcon --install gettext` or `sudo apt-get install gettext`)
@@ -193,44 +190,6 @@ If you need to be able to login or use the admin-page while running the code wit
193
190
$ python3 manage.py test
194
191
```
195
192
196
-
### Selenium integration tests
197
-
198
-
Selenium tests check end-to-end -functioning from a user-perspective.
199
-
The tests will automatically open and direct Firefox browser windows.
200
-
Currently, the tests depend on a Unix type shell and are run within a virtual environment created above.
201
-
202
-
1. Install the necessary requirements:
203
-
204
-
```sh
205
-
$ pip3 install -r requirements_testing.txt
206
-
```
207
-
208
-
2. Download the latest release of geckodriver (choose the appropriate tar.gz file based on your machine) from https://github.com/mozilla/geckodriver/releases and extract it.
209
-
210
-
3. Check the path to your extracted geckodriver and add it to PATH:
4. To setup the servers and run all the tests at one go:
217
-
218
-
```sh
219
-
$ selenium_test/run_servers_and_tests.sh
220
-
```
221
-
222
-
5. Alternatively you can run individual tests:
223
-
224
-
```sh
225
-
$ cd selenium_test/test/
226
-
$ ../run_servers.sh
227
-
228
-
$ python3 login_test.py
229
-
$ python3 home_page_test.py
230
-
231
-
$ ../kill_servers.sh
232
-
```
233
-
234
193
### Updating translations for Finnish and English versions
235
194
236
195
Before creating a pull request, you need to ensure that the [English strings](https://github.com/apluslms/a-plus/blob/master/locale/en/LC_MESSAGES/django.po) and [Finnish translations](https://github.com/apluslms/a-plus/blob/master/locale/fi/LC_MESSAGES/django.po) are up-to-date.
0 commit comments