diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-01-31 19:53:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-31 19:53:39 +0100 |
commit | 873501a141c3ddfc3d8ce4291123a7a2842ece8e (patch) | |
tree | 4b982749286f4f52c7bbdcb0b78b93a32af88a44 /cypress | |
parent | ca3f53ab88b06c8ceea5d7991ff40641a9820728 (diff) | |
parent | fc1a16283eb736d6aa09ab80b8efa1e68a29eb23 (diff) | |
download | nextcloud-server-873501a141c3ddfc3d8ce4291123a7a2842ece8e.tar.gz nextcloud-server-873501a141c3ddfc3d8ce4291123a7a2842ece8e.zip |
Merge pull request #36455 from nextcloud/artonge/e2e/reset_theming
Reset theming in cypress test
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/e2e/theming/user-background.cy.ts | 5 |
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) }) |