Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
#46 update
Browse files Browse the repository at this point in the history
  • Loading branch information
metas-dh committed Jul 3, 2019
1 parent 27480be commit 17cbe86
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions cypress/integration/masterdata/warehouse_setup_spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
describe('Create test: warehouse, https://github.com/metasfresh/metasfresh-e2e/issues/46', function() {
const timestamp = new Date().getTime(); // used in the document names, for ordering
const warehouseName = `TestWarehouseName ${timestamp}`;
const warehouseValue = `TestWarehouseValue ${timestamp}`;

it('Create a new warehouse', function() {
cy.visitWindow('139', 'NEW')
.writeIntoStringField('Name', warehouseName)
.clearField('Value')
.writeIntoStringField('Value', warehouseValue);
cy.selectNthInListField('C_BPartner_Location_ID', 1, false);
//create locator
cy.get(`#tab_M_Locator`).click();
cy.pressAddNewButton()
.writeIntoStringField('X', '0')
.writeIntoStringField('X1', '0')
.writeIntoStringField('Z', '0')
.writeIntoStringField('Y', '0')
.pressDoneButton();
//create warehouse routing
cy.get(`#tab_M_Warehouse_Routing`).click();
cy.pressAddNewButton()
.selectInListField('DocBaseType', 'Distribution Order', true)
.selectInListField('DocBaseType', 'Sales Order', true)
.pressDoneButton();
});
});

0 comments on commit 17cbe86

Please sign in to comment.