aboutsummaryrefslogtreecommitdiffstats
path: root/cypress
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-01-31 14:18:26 +0100
committerLouis Chemineau <louis@chmn.me>2023-01-31 14:18:26 +0100
commitfc1a16283eb736d6aa09ab80b8efa1e68a29eb23 (patch)
tree306e8e5a767e41d08fe71770dd8aa586bd5259f9 /cypress
parente7c9fdb1ac1765972b811d17556fdb74fa7a2051 (diff)
downloadnextcloud-server-fc1a16283eb736d6aa09ab80b8efa1e68a29eb23.tar.gz
nextcloud-server-fc1a16283eb736d6aa09ab80b8efa1e68a29eb23.zip
Reset theming in cypress test
The test in admin-settings does not reset the theming. So when it is run before user-background, the "Default cloud background is not rendered" test fails. This makes sure that the theming is reset before running "User default background settings" Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/e2e/theming/user-background.cy.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/cypress/e2e/theming/user-background.cy.ts b/cypress/e2e/theming/user-background.cy.ts
index 8f9e42d6ad4..86b66627ee6 100644
--- a/cypress/e2e/theming/user-background.cy.ts
+++ b/cypress/e2e/theming/user-background.cy.ts
@@ -19,15 +19,18 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-import type { User } from '@nextcloud/cypress'
+import { User } from '@nextcloud/cypress'
import { pickRandomColor, validateBodyThemingCss } from './themingUtils'
const defaultPrimary = '#006aa3'
const defaultBackground = 'kamil-porembinski-clouds.jpg'
+const admin = new User('admin', 'admin')
describe('User default background settings', function() {
before(function() {
+ cy.resetAdminTheming()
+ cy.resetUserTheming(admin)
cy.createRandomUser().then((user: User) => {
cy.login(user)
})