mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 05:54:43 -04:00
fix(frontend): fix motd e2e test
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
dd4e50103f
commit
dfbd45301c
6 changed files with 31 additions and 9 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
import { AuthProviderType } from '../../src/api/config/types'
|
||||
import { HttpMethod } from '../../src/handler-utils/respond-to-matching-request'
|
||||
import { IGNORE_MOTD, MOTD_LOCAL_STORAGE_KEY } from '../../src/components/global-dialogs/motd-modal/local-storage-keys'
|
||||
|
||||
declare namespace Cypress {
|
||||
interface Chainable {
|
||||
|
@ -87,6 +88,7 @@ Cypress.Commands.add('logOut', () => {
|
|||
|
||||
beforeEach(() => {
|
||||
cy.loadConfig()
|
||||
window.localStorage.setItem(MOTD_LOCAL_STORAGE_KEY, IGNORE_MOTD)
|
||||
cy.logIn()
|
||||
|
||||
cy.intercept('GET', '/public/motd.md', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue