Removed comments in settings test. (#6431)

* Removed comments in settings test.

* Fixed admin tests.
This commit is contained in:
SamTV12345 2024-06-05 21:36:05 +02:00 committed by GitHub
parent 5cbf644f83
commit 94985923a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 681 deletions

View file

@ -17,10 +17,10 @@ test.describe('admin settings',()=> {
const settingsVal = await settings.inputValue()
const settingsLength = settingsVal.length
await settings.fill(`/* test */\n${settingsVal}`)
await settings.fill(`{"title": "Etherpad123"}`)
const newValue = await settings.inputValue()
expect(newValue).toContain('/* test */')
expect(newValue.length).toEqual(settingsLength+11)
expect(newValue).toContain('{"title": "Etherpad123"}')
expect(newValue.length).toEqual(24)
await saveSettings(page)
// Check if the changes were actually saved
@ -31,7 +31,7 @@ test.describe('admin settings',()=> {
const newSettings = page.locator('.settings');
const newSettingsVal = await newSettings.inputValue()
expect(newSettingsVal).toContain('/* test */')
expect(newSettingsVal).toContain('{"title": "Etherpad123"}')
// Change back to old settings