mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-15 10:44:41 -04:00
Removed comments in settings test. (#6431)
* Removed comments in settings test. * Fixed admin tests.
This commit is contained in:
parent
5cbf644f83
commit
94985923a7
6 changed files with 8 additions and 681 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue