-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #894 from FlowFuse/892-group-ordering
Ensure consistency on group ordering
- Loading branch information
Showing
6 changed files
with
242 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
[ | ||
{ | ||
"id": "dashboard-ui-base", | ||
"type": "ui-base", | ||
"name": "UI Name", | ||
"path": "/dashboard", | ||
"includeClientData": true, | ||
"acceptsClientConfig": [ | ||
"ui-notification", | ||
"ui-control" | ||
] | ||
}, | ||
{ | ||
"id": "dashboard-ui-page-grid", | ||
"type": "ui-page", | ||
"name": "Layout: Grid", | ||
"ui": "dashboard-ui-base", | ||
"path": "/grid", | ||
"icon": "", | ||
"layout": "grid", | ||
"theme": "dashboard-ui-theme", | ||
"order": 2, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": false | ||
}, | ||
{ | ||
"id": "dashboard-ui-page-fixed", | ||
"type": "ui-page", | ||
"name": "Layout: Fixed", | ||
"ui": "dashboard-ui-base", | ||
"path": "/fixed", | ||
"icon": "", | ||
"layout": "flex", | ||
"theme": "dashboard-ui-theme", | ||
"order": 1, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": false | ||
}, | ||
{ | ||
"id": "dashboard-ui-page-notebook", | ||
"type": "ui-page", | ||
"name": "Layout: Notebook", | ||
"ui": "dashboard-ui-base", | ||
"path": "/notebook", | ||
"icon": "", | ||
"layout": "notebook", | ||
"theme": "dashboard-ui-theme", | ||
"order": 1, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": false | ||
}, | ||
{ | ||
"id": "dashboard-ui-theme", | ||
"type": "ui-theme", | ||
"name": "Theme Name", | ||
"colors": { | ||
"surface": "#ffffff", | ||
"primary": "#0094ce", | ||
"bgPage": "#eeeeee", | ||
"groupBg": "#ffffff", | ||
"groupOutline": "#cccccc" | ||
} | ||
}, | ||
{ | ||
"id": "dashboard-ui-group-grid1", | ||
"type": "ui-group", | ||
"name": "Order 1", | ||
"page": "dashboard-ui-page-grid", | ||
"width": "6", | ||
"height": "1", | ||
"order": 1, | ||
"showTitle": true, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": "false" | ||
}, | ||
{ | ||
"id": "dashboard-ui-group-grid2", | ||
"type": "ui-group", | ||
"name": "Order 2", | ||
"page": "dashboard-ui-page-grid", | ||
"width": "6", | ||
"height": "1", | ||
"order": 2, | ||
"showTitle": true, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": "false" | ||
}, | ||
{ | ||
"id": "dashboard-ui-group-grid3", | ||
"type": "ui-group", | ||
"name": "Order 3", | ||
"page": "dashboard-ui-page-grid", | ||
"width": "6", | ||
"height": "1", | ||
"order": 3, | ||
"showTitle": true, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": "false" | ||
}, | ||
{ | ||
"id": "dashboard-ui-group-fixed1", | ||
"type": "ui-group", | ||
"name": "Order 1", | ||
"page": "dashboard-ui-page-fixed", | ||
"width": "6", | ||
"height": "1", | ||
"order": 1, | ||
"showTitle": true, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": "false" | ||
}, | ||
{ | ||
"id": "dashboard-ui-group-fixed2", | ||
"type": "ui-group", | ||
"name": "Order 2", | ||
"page": "dashboard-ui-page-fixed", | ||
"width": "6", | ||
"height": "1", | ||
"order": 2, | ||
"showTitle": true, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": "false" | ||
}, | ||
{ | ||
"id": "dashboard-ui-group-fixed3", | ||
"type": "ui-group", | ||
"name": "Order 3", | ||
"page": "dashboard-ui-page-fixed", | ||
"width": "6", | ||
"height": "1", | ||
"order": 3, | ||
"showTitle": true, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": "false" | ||
}, | ||
{ | ||
"id": "dashboard-ui-group-notebook1", | ||
"type": "ui-group", | ||
"name": "Order 1", | ||
"page": "dashboard-ui-page-notebook", | ||
"width": "6", | ||
"height": "1", | ||
"order": 1, | ||
"showTitle": true, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": "false" | ||
}, | ||
{ | ||
"id": "dashboard-ui-group-notebook3", | ||
"type": "ui-group", | ||
"name": "Order 3", | ||
"page": "dashboard-ui-page-notebook", | ||
"width": "6", | ||
"height": "1", | ||
"order": 3, | ||
"showTitle": true, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": "false" | ||
}, | ||
{ | ||
"id": "dashboard-ui-group-notebook2", | ||
"type": "ui-group", | ||
"name": "Order 2", | ||
"page": "dashboard-ui-page-notebook", | ||
"width": "6", | ||
"height": "1", | ||
"order": 2, | ||
"showTitle": true, | ||
"className": "", | ||
"visible": "true", | ||
"disabled": "false" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// test admin rights & access in FlowForge | ||
|
||
describe('Node-RED Dashboard 2.0 - Layout: Grid', () => { | ||
beforeEach(() => { | ||
cy.deployFixture('dashboard-layouts') | ||
cy.visit('/dashboard/grid') | ||
}) | ||
|
||
it('should render groups in the correct order', () => { | ||
cy.get('.nrdb-ui-group').should('have.length', 3) | ||
cy.get('.nrdb-ui-group').eq(0).should('have.text', 'Order 1') | ||
cy.get('.nrdb-ui-group').eq(1).should('have.text', 'Order 2') | ||
cy.get('.nrdb-ui-group').eq(2).should('have.text', 'Order 3') | ||
}) | ||
}) | ||
describe('Node-RED Dashboard 2.0 - Layout: Fixed', () => { | ||
beforeEach(() => { | ||
cy.deployFixture('dashboard-layouts') | ||
cy.visit('/dashboard/fixed') | ||
}) | ||
|
||
it('should render groups in the correct order', () => { | ||
cy.get('.nrdb-ui-group').should('have.length', 3) | ||
cy.get('.nrdb-ui-group').eq(0).should('have.text', 'Order 1') | ||
cy.get('.nrdb-ui-group').eq(1).should('have.text', 'Order 2') | ||
cy.get('.nrdb-ui-group').eq(2).should('have.text', 'Order 3') | ||
}) | ||
}) | ||
describe('Node-RED Dashboard 2.0 - Layout: Notebook', () => { | ||
beforeEach(() => { | ||
cy.deployFixture('dashboard-layouts') | ||
cy.visit('/dashboard/notebook') | ||
}) | ||
|
||
it('should render groups in the correct order', () => { | ||
cy.get('.nrdb-ui-group').should('have.length', 3) | ||
cy.get('.nrdb-ui-group').eq(0).should('have.text', 'Order 1') | ||
cy.get('.nrdb-ui-group').eq(1).should('have.text', 'Order 2') | ||
cy.get('.nrdb-ui-group').eq(2).should('have.text', 'Order 3') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters