diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-06-09 11:37:41 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-06-09 11:37:41 +0200 |
commit | de66336f9c6cef3de5e298b48fdc3769bd307568 (patch) | |
tree | 1fce53f93e2aad5463763ead04adc153e25b1839 /tests/acceptance/features/apps.feature | |
parent | 44c6d22b2222fa8f8107cef9718eefbb30434374 (diff) | |
download | nextcloud-server-de66336f9c6cef3de5e298b48fdc3769bd307568.tar.gz nextcloud-server-de66336f9c6cef3de5e298b48fdc3769bd307568.zip |
Add basic acceptance tests for apps management
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests/acceptance/features/apps.feature')
-rw-r--r-- | tests/acceptance/features/apps.feature | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/tests/acceptance/features/apps.feature b/tests/acceptance/features/apps.feature new file mode 100644 index 00000000000..a7dd14d3fab --- /dev/null +++ b/tests/acceptance/features/apps.feature @@ -0,0 +1,90 @@ +Feature: apps + + Scenario: enable an installed app + Given I act as Jane + And I am logged in as the admin + And I open the Apps management + When I enable the "QA testing" app + Then I see that the "QA testing" app has been enabled + + Scenario: disable a installed app + Given I act as Jane + And I am logged in as the admin + And I open the Apps management + When I disable the "Update notification" app + Then I see that the "Update notification" app has been disabled + + Scenario: Browse enabled apps + Given I act as Jane + And I am logged in as the admin + And I open the Apps management + When I open the "Active apps" section + Then I see that the current section is "Active apps" + And I see that there are only enabled apps + + Scenario: Browse disabled apps + Given I act as Jane + And I am logged in as the admin + And I open the Apps management + When I open the "Disabled apps" section + Then I see that the current section is "Disabled apps" + And I see that there are only disabled apps + + Scenario: Browse app bundles + Given I act as Jane + And I am logged in as the admin + And I open the Apps management + When I open the "App bundles" section + Then I see that the current section is "App bundles" + And I see the app bundles + And I see that the "Enterprise bundle" is disabled + + Scenario: Enable an app bundle + Given I act as Jane + And I am logged in as the admin + And I open the Apps management + And I open the "App bundles" section + When I enable all apps from the "Enterprise bundle" + Then I see that the "Auditing / Logging" app has been enabled + And I see that the "LDAP user and group backend" app has been enabled + + Scenario: View app details + Given I act as Jane + And I am logged in as the admin + And I open the Apps management + When I click on the "QA testing" app + Then I see that the sidebar is open + + # TODO: Improve testing with app store as external API + # The following scenarios require the files_antivirus and calendar app + # being present in the app store with support for the current server version + # Ideally we would have either a dummy app store endpoint with some test apps + # or even an app store instance running somewhere to properly test this. + # This is also a requirement to properly test updates of apps + + Scenario: Show section from app store + Given I act as Jane + And I am logged in as the admin + And I open the Apps management + And I see that the current section is "Your apps" + When I open the "Files" section + Then I see that there some apps listed from the app store + And I see that the current section is "Files" + + Scenario: View app details for app store apps + Given I act as Jane + And I am logged in as the admin + And I open the Apps management + And I open the "Tools" section + When I click on the "Antivirus App for files" app + Then I see that the sidebar is open + + Scenario: Install an app from the app store + Given I act as Jane + And I am logged in as the admin + And I open the Apps management + And I open the "Office & text" section + And I click on the "Calendar" app + And I see that the sidebar is open + Then I download and enable the "Calendar" app + And I see that the "Calendar" app has been enabled |