mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
29 lines
917 B
JavaScript
29 lines
917 B
JavaScript
'use strict';
|
|
|
|
describe('Admin page', function () {
|
|
before(async function () {
|
|
let success = false;
|
|
$.ajax({
|
|
url: `${location.protocol}//admin:changeme@${location.hostname}:${location.port}/admin/`,
|
|
type: 'GET',
|
|
success: () => success = true,
|
|
});
|
|
await helper.waitForPromise(() => success === true);
|
|
});
|
|
|
|
beforeEach(async function () {
|
|
helper.newAdmin('');
|
|
await helper.waitForPromise(
|
|
() => helper.admin$ && helper.admin$('.menu').find('li').length >= 3);
|
|
});
|
|
|
|
it('Shows Plugin Manager Link', async function () {
|
|
helper.admin$('a[data-l10n-id="admin_plugins"]').is(':visible');
|
|
});
|
|
it('Shows Troubleshooting Info Link', async function () {
|
|
helper.admin$('a[data-l10n-id="admin_plugins_info"]').is(':visible');
|
|
});
|
|
it('Shows Settings Link', async function () {
|
|
helper.admin$('a[data-l10n-id="admin_settings"]').is(':visible');
|
|
});
|
|
});
|