23 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
7b05d7433d
functional_tests: cosmetic: Minor yapf chnage
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-15 15:36:11 -05:00
Sunil Mohan Adapa
45bd9d3905
jsxc: Fix functional test case failure
The optimization for not visiting FreedomBox pages again while on FreedomBox
pages fails as it assumes that all URLs starting with /plinth/ are part of
FreedomBox. /plinth/app/jsxc/jsxc/ is an exception. Fix the optimization
condition by adding a conditional check. Better ways can be found later.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-15 15:36:04 -05:00
Veiko Aasa
0f16a0fbee
storage: Show disks if FreedomBox is running in an unprivileged container
- Get disks info from df command and add info from udisks, if available.
  Before, it was other way round.
- Add a functional test that asserts root disk is available
- Remove unused key file_system_type from disks info

Closes #1765

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-02 09:40:12 -05:00
Veiko Aasa
7cd5b11a49
users: Fix functional test delete user
Django messages can contain usernames, check instead user edit link.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-01-30 14:24:04 -08:00
Joseph Nuthalapati
26100b50c1
functional-tests: Avoid unnecessary trips to Home
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: Check fo '/plinth/' instead of 'plinth' in URL checking for UI]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-01-25 19:25:32 -08:00
Joseph Nuthalapati
8b4ccceb6b
functional-tests: Make nav_to_module efficient
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-01-25 19:25:22 -08:00
Joseph Nuthalapati
ce906b1fef
functional-tests: Login only once per session
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: Fix fixture name for searx]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-01-25 19:24:01 -08:00
James Valleroy
b8737ad663
help: Add functional test to check status logs page
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 09:57:02 -08:00
Michael Pimmer
5632326802
Functional tests: assert that module installation succeeded
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-17 16:22:28 -05:00
Joseph Nuthalapati
1eacbf1be7
ssh: Enable backup/restore
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:05 -04:00
Joseph Nuthalapati
b04ac3c76c
security: Add functional tests for restricted logins
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:26 -04:00
Joseph Nuthalapati
a043063ee2
bind: Add functional tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:17 -04:00
Joseph Nuthalapati
382e23636a
pagekite: Add functional tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 18:29:11 -04:00
Joseph Nuthalapati
c83a3cd22e
coquelicot: Implement functional tests with uploading file
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-03 19:19:11 -04:00
James Valleroy
0a5ac4a7f1
functional_tests: Test dynamicdns backup and restore
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-09-24 19:44:01 +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
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
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
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
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
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