Skip to content

Commit 9d3167a

Browse files
committed
Merge branch 'develop'
2 parents 89e8158 + eb1ebb1 commit 9d3167a

File tree

7 files changed

+19
-16
lines changed

7 files changed

+19
-16
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.3.2
2+
3+
### Notable enhancements and fixes
4+
5+
- Fixed admin ui displaying incorrect text
6+
17
# 2.3.1
28

39
### Notable enhancements and fixes

admin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "admin",
33
"private": true,
4-
"version": "2.3.1",
4+
"version": "2.3.2",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

bin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bin",
3-
"version": "2.3.1",
3+
"version": "2.3.2",
44
"description": "",
55
"main": "checkAllPads.js",
66
"directories": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
"type": "git",
5151
"url": "https://github.com/ether/etherpad-lite.git"
5252
},
53-
"version": "2.3.1",
53+
"version": "2.3.2",
5454
"license": "Apache-2.0"
5555
}

src/node/hooks/express/admin.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ exports.expressCreateServer = (hookName: string, args: ArgsExpressType, cb: Func
2323
return cb();
2424
}
2525
args.app.get('/admin/*', (req: any, res: any) => {
26-
// parse URL
27-
const parsedUrl = url.parse(req.url);
2826
// extract URL path
29-
let pathname = ADMIN_PATH + `${parsedUrl.pathname}`;
30-
pathname = path.normalize(path.join(ADMIN_PATH), parsedUrl.pathname)
27+
let pathname = path.join(ADMIN_PATH, req.url);
28+
pathname = path.normalize(pathname)
3129

3230
if (!pathname.startsWith(ADMIN_PATH)) {
3331
res.statusCode = 403;

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,6 @@
142142
"debug:socketio": "cross-env DEBUG=socket.io* node --require tsx/cjs node/server.ts",
143143
"test:vitest": "vitest"
144144
},
145-
"version": "2.3.1",
145+
"version": "2.3.2",
146146
"license": "Apache-2.0"
147147
}

src/tests/frontend-new/admin-spec/adminupdateplugins.spec.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,17 @@ test.describe('Plugins page', ()=> {
1313
await page.waitForSelector('.search-field');
1414
const pluginTable = page.locator('table tbody').nth(1);
1515
await expect(pluginTable).not.toBeEmpty()
16-
const plugins = await pluginTable.locator('tr').count()
17-
expect(plugins).toBeGreaterThan(10)
16+
await expect(pluginTable.locator('tr')).toHaveCount(190)
1817
})
1918

2019
test('Searches for a plugin', async ({page}) => {
2120
await page.waitForSelector('.search-field');
2221
await page.click('.search-field')
23-
await page.keyboard.type('ep_font_color3')
22+
await page.keyboard.type('ep_font_color')
2423
await page.keyboard.press('Enter')
2524
const pluginTable = page.locator('table tbody').nth(1);
2625
await expect(pluginTable.locator('tr')).toHaveCount(1)
27-
await expect(pluginTable.locator('tr').first()).toContainText('ep_font_color3')
26+
await expect(pluginTable.locator('tr').first()).toContainText('ep_font_color')
2827
})
2928

3029

@@ -35,17 +34,17 @@ test.describe('Plugins page', ()=> {
3534
timeout: 15000
3635
})
3736
const plugins = await pluginTable.locator('tr').count()
38-
expect(plugins).toBeGreaterThan(10)
37+
await expect(pluginTable.locator('tr')).toHaveCount(190)
3938

4039
// Now everything is loaded, lets install a plugin
4140

4241
await page.click('.search-field')
43-
await page.keyboard.type('ep_font_color3')
42+
await page.keyboard.type('ep_font_color')
4443
await page.keyboard.press('Enter')
4544

4645
await expect(pluginTable.locator('tr')).toHaveCount(1)
4746
const pluginRow = pluginTable.locator('tr').first()
48-
await expect(pluginRow).toContainText('ep_font_color3')
47+
await expect(pluginRow).toContainText('ep_font_color')
4948

5049
// Select Installation button
5150
await pluginRow.locator('td').nth(4).locator('button').first().click()
@@ -59,7 +58,7 @@ test.describe('Plugins page', ()=> {
5958

6059
const installedPluginRow = installedPluginsRows.nth(1)
6160

62-
await expect(installedPluginRow).toContainText('ep_font_color3')
61+
await expect(installedPluginRow).toContainText('ep_font_color')
6362
await installedPluginRow.locator('td').nth(2).locator('button').first().click()
6463

6564
// Wait for the uninstallation to complete

0 commit comments

Comments
 (0)