@things-factory/operato-wms 4.1.40 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/.eslintrc.json +11 -0
  2. package/client/pages/constants/index.js +1 -0
  3. package/client/pages/constants/inventory-item-change.js +10 -0
  4. package/client/pages/constants/order.js +5 -0
  5. package/client/pages/constants/picking-strategy.js +4 -0
  6. package/client/pages/constants/setting.js +1 -0
  7. package/client/pages/inbound/serial-number-list-popup.js +0 -1
  8. package/client/pages/inventory/inventory-adjustment-approval.js +34 -3
  9. package/client/pages/inventory/inventory-adjustment.js +144 -5
  10. package/client/pages/inventory/serial-number-list-popup.js +468 -0
  11. package/client/pages/master/pallet-list.js +24 -0
  12. package/client/pages/order/arrival-notice/edit-product-popup.js +13 -0
  13. package/client/pages/order/release-order/b2b/b2b-order-list.js +24 -1
  14. package/client/pages/order/release-order/batch-picking-popup.js +8 -0
  15. package/client/pages/order/release-order/release-extra-product-popup.js +15 -10
  16. package/client/pages/outbound/inventory-assign-popup.js +3 -24
  17. package/client/pages/outbound/inventory-auto-assign-popup.js +25 -50
  18. package/client/pages/outbound/loading-product.js +3 -3
  19. package/client/pages/outbound/merged-outbound-worksheet.js +148 -3
  20. package/client/pages/outbound/packing-product.js +109 -9
  21. package/client/pages/outbound/picking-product.js +21 -8
  22. package/client/pages/outbound/picking-replacement-popup.js +5 -0
  23. package/client/pages/outbound/return-pallet-check-popup.js +7 -1
  24. package/client/pages/outbound/route-label-popup.js +464 -0
  25. package/client/pages/outbound/select-operator-popup.js +1 -1
  26. package/client/pages/outbound/serial-number-popup.js +55 -26
  27. package/client/pages/outbound/single-outbound-worksheet.js +83 -14
  28. package/client/pages/outbound/sorting-product.js +125 -34
  29. package/client/pages/outbound/worksheet-batch-picking.js +13 -17
  30. package/client/pages/outbound/worksheet-picking.js +2 -6
  31. package/cypress/fixtures/globals.json +3 -0
  32. package/cypress/fixtures/master-data/location.json +31 -0
  33. package/cypress/fixtures/master-data/pallet.json +129 -0
  34. package/cypress/fixtures/master-data/palletImport.xlsx +0 -0
  35. package/cypress/fixtures/master-data/transport-driver.json +22 -0
  36. package/cypress/fixtures/master-data/transport-vehicle.json +24 -0
  37. package/cypress/fixtures/master-data/transportDriverDeletedImport.xlsx +0 -0
  38. package/cypress/fixtures/master-data/transportDriverImport.xlsx +0 -0
  39. package/cypress/fixtures/master-data/transportVehicleDeletedImport.xlsx +0 -0
  40. package/cypress/fixtures/master-data/transportVehicleImport.xlsx +0 -0
  41. package/cypress/fixtures/master-data/transportVehicleNameSizeImport.xlsx +0 -0
  42. package/cypress/fixtures/master-data/transportVehicleNameStatusImport.xlsx +0 -0
  43. package/cypress/fixtures/master-data/warehouse.json +20 -0
  44. package/cypress/fixtures/master-data/warehouseImport.xlsx +0 -0
  45. package/cypress/integration/master-data/location.spec.js +31 -0
  46. package/cypress/integration/master-data/pallet.spec.js +176 -0
  47. package/cypress/integration/master-data/transport-driver.spec.js +131 -0
  48. package/cypress/integration/master-data/transport-vehicle.spec.js +165 -0
  49. package/cypress/integration/master-data/warehouse.spec.js +135 -0
  50. package/cypress/plugins/index.js +22 -0
  51. package/cypress/support/commands.js +425 -0
  52. package/cypress/support/index.js +31 -0
  53. package/cypress.json +9 -0
  54. package/dist-server/graphql/resolvers/board-setting/board-settings.js +2 -1
  55. package/dist-server/graphql/resolvers/board-setting/board-settings.js.map +1 -1
  56. package/dist-server/opa-app-setting-constants.js +2 -1
  57. package/dist-server/opa-app-setting-constants.js.map +1 -1
  58. package/helps/release-note.ko.md +0 -2
  59. package/helps/release-note.md +0 -2
  60. package/helps/release-note.ms.md +0 -2
  61. package/helps/release-note.zh.md +0 -2
  62. package/package.json +20 -10
  63. package/server/graphql/resolvers/board-setting/board-settings.ts +4 -2
  64. package/server/opa-app-setting-constants.ts +2 -1
  65. package/translations/en.json +15 -5
  66. package/translations/ko.json +13 -2
  67. package/translations/ms.json +12 -2
  68. package/translations/zh.json +12 -2
@@ -0,0 +1,165 @@
1
+ /// <reference types="cypress" />
2
+
3
+ const path = require('path')
4
+
5
+ describe('transport vehicle', () => {
6
+ beforeEach(() => {
7
+ cy.fixture('globals').as('globals')
8
+ cy.fixture('master-data/transport-vehicle').as('vehicle')
9
+ cy.visit('/domain/el-cold-chain-warehouse/transport_vehicle')
10
+ cy.waitGristLoad()
11
+ })
12
+
13
+ it('filters the grist by registration number with the same letter case', function () {
14
+ const data = this.vehicle.regNumberLetterCase
15
+ cy.get('input[name="regNumber"]').type(`${data.regNumber}{enter}`)
16
+ cy.waitOneRecord()
17
+ cy.vehicleExists(data)
18
+ })
19
+
20
+ it('filters the grist by registration number with a different letter case', function () {
21
+ const data = this.vehicle.regNumberLetterCase
22
+ cy.get('input[name="regNumber"]').type(`${data.regNumber.toLowerCase()}{enter}`)
23
+ cy.waitOneRecord()
24
+ cy.vehicleExists(data)
25
+ })
26
+
27
+ it('filters the grist by size with the same letter case', function () {
28
+ const data = this.vehicle.sizeLetterCase
29
+ cy.get('input[name="size"]').type(`${data.size}{enter}`)
30
+ cy.waitOneRecord()
31
+ cy.vehicleExists(data)
32
+ })
33
+
34
+ it('filters the grist by size with a different letter case', function () {
35
+ const data = this.vehicle.sizeLetterCase
36
+ cy.get('input[name="size"]').type(`${data.size.toLowerCase()}{enter}`)
37
+ cy.waitOneRecord()
38
+ cy.vehicleExists(data)
39
+ })
40
+
41
+ it('filters the grist by status with the same letter case', function () {
42
+ const data = this.vehicle.statusLetterCase
43
+ cy.get('input[name="status"]').type(`${data.status}{enter}`)
44
+ cy.waitOneRecord()
45
+ cy.vehicleExists(data)
46
+ })
47
+
48
+ it('filters the grist by status with a different letter case', function () {
49
+ const data = this.vehicle.statusLetterCase
50
+ cy.get('input[name="status"]').type(`${data.status.toLowerCase()}{enter}`)
51
+ cy.waitOneRecord()
52
+ cy.vehicleExists(data)
53
+ })
54
+
55
+ it('adds transport vehicle', function () {
56
+ const data = this.vehicle.add1
57
+ cy.addTransportVehicle(data)
58
+ cy.clickSaveButton()
59
+ cy.contains('span', 'data updated successfully').should('be.visible')
60
+ cy.vehicleExists(data)
61
+ })
62
+
63
+ it('adds duplicate [registration number, description, size], different letter case', function () {
64
+ const data = this.vehicle.add2
65
+ cy.addTransportVehicle(data)
66
+ cy.clickSaveButton()
67
+ cy.contains('span', 'data updated successfully').should('be.visible')
68
+ cy.vehicleExists(data)
69
+ })
70
+
71
+ it('adds duplicate [registration number, description, size], same letter case', function () {
72
+ const data = this.vehicle.add3
73
+ cy.addTransportVehicle(data)
74
+ cy.clickSaveButton()
75
+ cy.contains('span', 'duplicate key value violates unique constraint "ix_transport-vehicle_0"').should('be.visible')
76
+ })
77
+
78
+ it('deletes a transport vehicle', function () {
79
+ const data = this.vehicle.delete1
80
+ cy.checkGristRecords(data)
81
+ cy.clickDeleteButton()
82
+ cy.clickPopupButton('delete')
83
+ cy.contains('span', 'data deleted successfully').should('be.visible')
84
+ cy.contains('span', data[0]).should('not.exist')
85
+ })
86
+
87
+ it('deletes 3 transport drivers', function () {
88
+ const names = this.vehicle.deleteMultiple
89
+ cy.checkGristRecords(names)
90
+ cy.clickDeleteButton()
91
+ cy.clickPopupButton('delete')
92
+ cy.contains('span', 'data deleted successfully').should('be.visible')
93
+ for (const name of names) {
94
+ cy.contains('span', name).should('not.exist')
95
+ }
96
+ })
97
+
98
+ it('edits a name of transport vehicle', function () {
99
+ const data = this.vehicle.edit1
100
+ cy.editField(data.oldVal, data.newVal)
101
+ cy.clickSaveButton()
102
+ cy.contains('span', 'data updated successfully').should('be.visible')
103
+ cy.contains('span', data.newVal).should('exist')
104
+ })
105
+
106
+ it('edits a description of transport vehicle', function () {
107
+ const data = this.vehicle.edit2
108
+ cy.editField(data.oldVal, data.newVal)
109
+ cy.clickSaveButton()
110
+ cy.contains('span', 'data updated successfully').should('be.visible')
111
+ cy.contains('span', data.newVal).should('exist')
112
+ })
113
+
114
+ it('edits a size of transport vehicle', function () {
115
+ const data = this.vehicle.edit3
116
+ cy.editField(data.oldVal, data.newVal)
117
+ cy.clickSaveButton()
118
+ cy.contains('span', 'data updated successfully').should('be.visible')
119
+ cy.contains('span', data.newVal).should('exist')
120
+ })
121
+
122
+ it('edits a status of transport vehicle', function () {
123
+ const data = this.vehicle.edit4
124
+ cy.editField(data.oldVal, data.newVal)
125
+ cy.clickSaveButton()
126
+ cy.contains('span', 'data updated successfully').should('be.visible')
127
+ cy.contains('span', data.newVal).should('exist')
128
+ })
129
+
130
+ it('downloads the json, csv, xlsx, xls files', function () {
131
+ const fileTypes = this.globals.fileTypes
132
+ cy.exportGrist(path, fileTypes, 'transport vehicle')
133
+ })
134
+
135
+ it('imports new vehicles from an xlsx file', function () {
136
+ const data = this.vehicle.importNew
137
+ cy.importGrist('master-data/transportVehicleImport.xlsx')
138
+ for (const i of data) {
139
+ cy.recordExists(i)
140
+ }
141
+ })
142
+
143
+ it('imports deleted vehicles from an xlsx file', function () {
144
+ const data = this.vehicle.importDeleted
145
+ cy.importGrist('master-data/transportVehicleDeletedImport')
146
+ cy.importAllPopup()
147
+ for (const i of data) {
148
+ cy.recordExists(i)
149
+ }
150
+ })
151
+
152
+ it('imports vehicles from a partial [name, size] xlsx file', function () {
153
+ cy.importGrist('master-data/transportVehicleNameSizeImport')
154
+ cy.importAllPopup()
155
+ // false positive
156
+ // need to see actual error and check for it
157
+ })
158
+
159
+ it('imports vehicles from a partial [name, status] xlsx file', function () {
160
+ cy.importGrist('master-data/transportVehicleNameStatusImport')
161
+ cy.importAllPopup()
162
+ // false positive
163
+ // need to see actual error and check for it
164
+ })
165
+ })
@@ -0,0 +1,135 @@
1
+ /// <reference types="cypress" />
2
+
3
+ const path = require('path')
4
+
5
+ describe('warehouse', () => {
6
+ beforeEach(() => {
7
+ cy.fixture('globals').as('globals')
8
+ cy.fixture('master-data/warehouse').as('warehouse')
9
+ cy.visit('/domain/el-cold-chain-warehouse/warehouses')
10
+ cy.waitGristLoad()
11
+ })
12
+
13
+ it('filters the grist by name with a space in front', function () {
14
+ const data = this.warehouse.nameLetterCase
15
+ cy.get('input[name="name"]').type(` ${data['name']}{enter}`, { force: true })
16
+ cy.contains('span', 'total 0 records.', { timeout: 10000 }).should('exist')
17
+ cy.dataNotExists(data)
18
+ })
19
+
20
+ it('filters the grist by name with a space at the back', function () {
21
+ const data = this.warehouse.nameLetterCase
22
+ cy.get('input[name="name"]').type(`${data['name']} {enter}`, { force: true })
23
+ cy.contains('span', 'total 0 records.', { timeout: 10000 }).should('exist')
24
+ cy.dataNotExists(data)
25
+ })
26
+
27
+ it('filters the grist by name with the same letter case', function () {
28
+ const data = this.warehouse.nameLetterCase
29
+ cy.get('input[name="name"]').type(`${data['name']}{enter}`)
30
+ cy.waitOneRecord()
31
+ cy.recordExists(data)
32
+ })
33
+
34
+ it('filters the grist by name with a different letter case', function () {
35
+ const data = this.warehouse.nameLetterCase
36
+ cy.get('input[name="name"]').type(`${data['name'].toLowerCase()}{enter}`)
37
+ cy.waitOneRecord()
38
+ cy.recordExists(data)
39
+ })
40
+
41
+ it('adds a warehouse', function () {
42
+ const data = this.warehouse.add1
43
+ cy.addWarehouse(data)
44
+ cy.clickSaveButton()
45
+ cy.contains('span', 'data updated successfully').should('be.visible')
46
+ cy.recordExists(data)
47
+ })
48
+
49
+ it('adds duplicate [name, type], same letter case', function () {
50
+ const data = this.warehouse.add2
51
+ cy.addWarehouse(data)
52
+ cy.clickSaveButton()
53
+ cy.contains('span', /.*duplicate key value.*/, { timeout: 15000 }).should('be.visible')
54
+ cy.searchGrist()
55
+ cy.warehouseNotAdded(data)
56
+ })
57
+
58
+ it('adds duplicate [name, type], different letter case', function () {
59
+ const data = this.warehouse.add3
60
+ cy.addWarehouse(data)
61
+ cy.clickSaveButton()
62
+ cy.contains('span', 'data updated successfully').should('be.visible')
63
+ cy.recordExists(data)
64
+ })
65
+
66
+ it('adds duplicate name, same letter case', function () {
67
+ const data = this.warehouse.add4
68
+ cy.addWarehouse(data)
69
+ cy.clickSaveButton()
70
+ cy.contains('span', /.*duplicate key value.*/, { timeout: 15000 }).should('be.visible')
71
+ cy.searchGrist()
72
+ cy.warehouseNotAdded(data)
73
+ })
74
+
75
+ it('adds duplicate name, different letter case', function () {
76
+ const data = this.warehouse.add5
77
+ cy.addWarehouse(data)
78
+ cy.clickSaveButton()
79
+ cy.contains('span', 'data updated successfully').should('be.visible')
80
+ cy.recordExists(data)
81
+ })
82
+
83
+ it('adds multiple warehouses', function () {
84
+ const warehouses = this.warehouse.addMultiple
85
+ for (const warehouse of warehouses) {
86
+ cy.addWarehouse(warehouse)
87
+ }
88
+ cy.clickSaveButton()
89
+ cy.contains('span', 'data updated successfully').should('be.visible')
90
+ for (const warehouse of warehouses) {
91
+ cy.recordExists(warehouse)
92
+ }
93
+ })
94
+
95
+ it('deletes a warehouse', function () {
96
+ const data = this.warehouse.delete1
97
+ cy.checkWarehouseRecords([data.name])
98
+ cy.clickDeleteButton()
99
+ cy.clickPopupButton('delete')
100
+ cy.contains('span', 'data deleted successfully').should('be.visible')
101
+ cy.contains('span', data.name).should('not.exist')
102
+ })
103
+
104
+ it('deletes multiple warehouses', function () {
105
+ const data = this.warehouse.deleteMultiple
106
+ cy.checkWarehouseRecords(data)
107
+ cy.clickDeleteButton()
108
+ cy.clickPopupButton('delete')
109
+ cy.contains('span', 'data deleted successfully').should('be.visible')
110
+ cy.contains('span', data.name).should('not.exist')
111
+ })
112
+
113
+ it('downloads the json, csv, xlsx, xls files', function () {
114
+ const fileTypes = this.globals.fileTypes
115
+ cy.exportGrist(path, fileTypes, 'warehouse')
116
+ })
117
+
118
+ it('imports warehouses from an xlsx file', function () {
119
+ const warehouses = this.warehouse.importNew
120
+ cy.importGrist('master-data/warehouseImport.xlsx')
121
+ cy.importAllPopup()
122
+ for (const warehouse of warehouses) {
123
+ cy.recordExists(warehouse)
124
+ }
125
+ })
126
+
127
+ it('imports already deleted warehouses from an xlsx file', function () {
128
+ cy.importGrist('master-data/warehouseDeletedImport.xlsx')
129
+ cy.importAllPopup()
130
+ cy.log('false positive')
131
+ // pending fix for import function
132
+ // code for next assertion steps goes here
133
+ // will return false positive!
134
+ })
135
+ })
@@ -0,0 +1,22 @@
1
+ /// <reference types="cypress" />
2
+ // ***********************************************************
3
+ // This example plugins/index.js can be used to load plugins
4
+ //
5
+ // You can change the location of this file or turn off loading
6
+ // the plugins file with the 'pluginsFile' configuration option.
7
+ //
8
+ // You can read more here:
9
+ // https://on.cypress.io/plugins-guide
10
+ // ***********************************************************
11
+
12
+ // This function is called when a project is opened or re-opened (e.g. due to
13
+ // the project's config changing)
14
+
15
+ /**
16
+ * @type {Cypress.PluginConfig}
17
+ */
18
+ // eslint-disable-next-line no-unused-vars
19
+ module.exports = (on, config) => {
20
+ // `on` is used to hook into various events Cypress emits
21
+ // `config` is the resolved Cypress config
22
+ }