26 Commits

Author SHA1 Message Date
Vignan Lavu
537e2c7de8
mediawiki: Enable SVG support for MediaWiki
- Changed configuration file FreedomBoxSettings.php to enable SVG extension.
- Added functional test for upload and viewing of svg file.
- Modified the existing functional test with image file name as parameter.

Closes #1354

Signed-off-by: Vignan Lavu <vignan.lavu@gmail.com>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-08-31 00:14:11 +05:30
Joseph Nuthalapati
bc3a43d18c
functional tests: Fix failing test change default app
- Added an additional pre-condition to check whether the Syncthing app is
  enabled.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-08-13 15:07:09 +05:30
Joseph Nuthalapati
8f88f0f6b4
mediawiki: Fix images throwing 403s
- Increment version number
- Functional test for uploading files

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-11 20:26:10 -04:00
Hemanth Kumar Veeranki
13a3f6add7
Add functional test to enable/disable Message Archive Management
- Test will ensure that ejabberd still continues to run, when MAM is
  enabled or disabled

Signed-off-by: Hemanth Kumar Veeranki <hems.india1997@gmail.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-07 20:39:40 -04:00
Joseph Nuthalapati
9a3af288fa
configuration: Option to set a default app for FreedomBox
Closes #1315

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 20:50:10 -04:00
Joseph Nuthalapati
36f7322d08
functional_tests: Use body instead of html for state change check
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-07-29 12:23:02 -04:00
Joseph Nuthalapati
cd38e4d352
functional tests: Fix first test failing on a pristine VM
When a user creates an admin account on a pristine VM, the user is already
logged in. The tests wrongly assume that another login is required.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-07-27 12:50:53 +05:30
James Valleroy
68061f848d
functional_tests: Rename features, organize by app
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-07-16 11:23:40 +05:30
Joseph Nuthalapati
7a63504c62
mediawiki: Image uploads: improve logic and add functional tests
- Handled cases where the setting for uploading files may be commented out or
  not present in the LocalSettings.php
- Added functional test for logging in as admin and checking whether there is an
  option to upload files.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-06-18 20:48:15 +05:30
Joseph Nuthalapati
62ccfdfebd
mediawiki: Make private mode and public registrations mutually exclusive
- Added JavaScript code to make sure that only one of the checkboxes can be
  enabled at any time.
- Handled the condition where a user disables JavaScript and tries to enable
  public registrations when private mode is active. The action will not proceed
  and a warning will be displayed in the response page.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-06-17 11:34:25 -04:00
Hemanth Kumar Veeranki
6f5b4fba38
Added an option to enable/disable private mode in mediawiki
Add tests for mediawiki private mode

Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-06-04 17:37:26 -04:00
Joseph Nuthalapati
0c334b7231
mediawiki: enable/disable public registrations - refactoring & tests
- Add two functional tests to test enabling and disabling public registrations
  for MediaWiki
- Refactor and simplify config-file editing logic in actions script

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-05-07 19:41:33 +05:30
Joseph Nuthalapati
9037749c78
tests: Fix delete_user fixture
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-04-08 12:36:42 -04:00
Joseph Nuthalapati
42e434351a
tests: Fix tests depending on language being English
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-04-08 12:36:31 -04:00
Joseph Nuthalapati
c382df927a
tests: Recover from server restart during installation
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-04-08 12:36:25 -04:00
Joseph Nuthalapati
42e2995abc
tor: Make tests independent of language
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-04-08 12:36:22 -04:00
Joseph Nuthalapati
a152811d70
test: sharing: Fix tests that check text in English
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-04-08 12:36:14 -04:00
Joseph Nuthalapati
2ac2726752
tests: snapshots: Remove find_by_value usages
- find_by_value depends on the language being English

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-04-08 12:36:10 -04:00
Joseph Nuthalapati
a950371d2a
Fix tests for firstboot, users and groups
- Make browser actions independent of language
- Increase timeout for submit actions since actions like enable take too long on
  slower machines

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-04-08 12:36:04 -04:00
Joseph Nuthalapati
e99b7c942b
tests: Improve waiting for installation and configuration
- Use Selenium's built-in waiting constructs to wait for page loads to complete
- Make tests independent of language (tested in Chinese)

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-04-08 12:35:47 -04:00
Joseph Nuthalapati
b2fea1b0de
language: Fix tests broken by recent feature
Tests were breaking because of the following reasons:
- Language options were moved to another page
- Language selections were changed from English to their respective languages

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-04-08 12:35:39 -04:00
Joseph Nuthalapati
143a24a64a
snapshots: Fix tests broken by UI changes
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-04-08 12:35:26 -04:00
Sunil Mohan Adapa
436a32d358
sharing: Add functional tests
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-03-12 18:27:29 +05:30
James Valleroy
075ccf402a
functional-tests: Minor cleanup of license headers and whitespace
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-28 19:13:11 +01:00
Joseph Nuthalapati
af1406119d
searx: Add basic functional tests
- Tests to enable/disable Searx

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-28 19:01:03 +01:00
Joseph Nuthalapati
0bdc2802f2
functional-tests: Merge plinth-tester into plinth
- Rename Plinth-tester to FreedomBox
- Add pytest.ini to discover the root directory for tests easily
- Update README to say that py.test should be run from functional_tests
  directory.
- Add geckodriver.log to .gitignore

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-28 19:00:42 +01:00