diff --git a/html/js/routes/grid.js b/html/js/routes/grid.js index 2e61559b..e1a4b44a 100644 --- a/html/js/routes/grid.js +++ b/html/js/routes/grid.js @@ -158,7 +158,7 @@ routes.push({ path: '/grid', name: 'grid', component: { return false; }, async gridMemberTest() { - const nodeId = this.hideTestConfirm(); + const nodeId = this.hideTestConfirm().replace('_so-', '_'); this.$root.startLoading(); try { await this.$root.papi.post('gridmembers/' + nodeId + "/test"); diff --git a/html/js/routes/grid.test.js b/html/js/routes/grid.test.js index af0c4c2b..3e6c0a18 100644 --- a/html/js/routes/grid.test.js +++ b/html/js/routes/grid.test.js @@ -109,7 +109,7 @@ test('canTest', () => { test('gridMemberTest', async () => { resetPapi(); const mock = mockPapi("post"); - comp.selectedId = '123'; + comp.selectedId = 'fwd01_so-sensor'; await comp.gridMemberTest(); - expect(mock).toHaveBeenCalledWith('gridmembers/123/test'); + expect(mock).toHaveBeenCalledWith('gridmembers/fwd01_sensor/test'); }); \ No newline at end of file