565556b277
The PHP built-in server can crash when certain actions are performed in Nextcloud (but although the crash is triggered by Nextcloud it does not seem to be a Nextcloud bug), which can lead to failures in the acceptance tests that would have otherwise passed. A crash of the PHP built-in server during an acceptance test can be identified by the message "sh: 1: kill: No such process" in the acceptance tests output; as the PHP built-in server crashed its process does no longer exist when it is tried to be killed when the scenario ends. Although the crash has been observed in other tests too it is more prevalent in the tests for tags and the theming app. In order to reduce the false positives those tests are now run on Apache instead of on the PHP built-in sever. However, the rest of tests are still run on the PHP built-in server due to its lower resource consumption. In order to run a feature or just a scenario using Apache it has to be tagged with "@apache"; features or scenarios without that tag (the default) will run on the PHP built-in server instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
27 lines
1.3 KiB
Gherkin
27 lines
1.3 KiB
Gherkin
@apache
|
|
Feature: app-theming
|
|
|
|
Scenario: changing the color updates the header color
|
|
Given I am logged in as the admin
|
|
And I visit the settings page
|
|
And I open the "Theming" section
|
|
And I see that the color selector in the Theming app has loaded
|
|
# The "eventually" part is not really needed here, as the colour is not
|
|
# being animated at this point, but there is no need to create a specific
|
|
# step just for this.
|
|
And I see that the header color is eventually "#0082C9"
|
|
When I set the "Color" parameter in the Theming app to "#C9C9C9"
|
|
Then I see that the parameters in the Theming app are eventually saved
|
|
And I see that the header color is eventually "#C9C9C9"
|
|
|
|
Scenario: resetting the color updates the header color
|
|
Given I am logged in as the admin
|
|
And I visit the settings page
|
|
And I open the "Theming" section
|
|
And I see that the color selector in the Theming app has loaded
|
|
And I set the "Color" parameter in the Theming app to "#C9C9C9"
|
|
And I see that the parameters in the Theming app are eventually saved
|
|
And I see that the header color is eventually "#C9C9C9"
|
|
When I reset the "Color" parameter in the Theming app to its default value
|
|
Then I see that the parameters in the Theming app are eventually saved
|
|
And I see that the header color is eventually "#0082C9"
|