Add onboarding weather and template gradients
This commit is contained in:
@@ -7,7 +7,7 @@ require('../src/common');
|
||||
|
||||
const renderDashboardPage = require('../src/web/routes/signage/dashboard');
|
||||
|
||||
test('dashboard onboarding link uses the player base url', () => {
|
||||
test('dashboard pairing link uses the clients pairing permission', () => {
|
||||
const html = renderDashboardPage(
|
||||
{
|
||||
screens: [
|
||||
@@ -22,11 +22,11 @@ test('dashboard onboarding link uses the player base url', () => {
|
||||
connectedPlayersCount: 0
|
||||
},
|
||||
'',
|
||||
{ id: 1, permissions: ['screens.read', 'clients.read'] }
|
||||
{ id: 1, permissions: ['screens.read', 'clients.read', 'pairing.allow'] }
|
||||
);
|
||||
|
||||
assert.match(html, /href="http:\/\/player\.local"/);
|
||||
assert.doesNotMatch(html, /http:\/\/player\.local\//);
|
||||
assert.match(html, /href="\/pairing"/);
|
||||
assert.doesNotMatch(html, /http:\/\/player\.local/);
|
||||
});
|
||||
|
||||
test('dashboard screen snapshot omits player links and duplicate connection counts', () => {
|
||||
@@ -200,7 +200,6 @@ test('dashboard move client button opens the move modal for the selected row', (
|
||||
addEventListener() {}
|
||||
};
|
||||
const connectionInput = { value: '' };
|
||||
const deviceInput = { value: '' };
|
||||
const clientNameInput = { value: '' };
|
||||
const playerBaseUrlInput = { value: '' };
|
||||
const targetSelect = { value: 'alpha' };
|
||||
@@ -263,9 +262,6 @@ test('dashboard move client button opens the move modal for the selected row', (
|
||||
if (selector === '[data-client-move-connection-id]') {
|
||||
return connectionInput;
|
||||
}
|
||||
if (selector === '[data-client-move-device-id]') {
|
||||
return deviceInput;
|
||||
}
|
||||
if (selector === '[data-client-move-client-name]') {
|
||||
return clientNameInput;
|
||||
}
|
||||
@@ -338,7 +334,6 @@ test('dashboard move client button opens the move modal for the selected row', (
|
||||
assert.equal(targetSelect.options[0].disabled, true);
|
||||
assert.equal(targetSelect.options[1].disabled, false);
|
||||
assert.equal(connectionInput.value, 'conn-123');
|
||||
assert.equal(deviceInput.value, 'device-123');
|
||||
assert.equal(clientNameInput.value, 'Lobby Client');
|
||||
assert.equal(playerBaseUrlInput.value, 'http://player.local');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user