Skip to content

Commit

Permalink
#210 fixed failing tests
Browse files Browse the repository at this point in the history
#210 Create material receipt with quality issue
  • Loading branch information
cristinastefan90 committed Jul 25, 2019
1 parent 4309b22 commit e0bf355
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
Expand Up @@ -41,15 +41,19 @@ describe('Create test: create material receipt with quality issue, https://githu
applyFilters();
cy.waitUntilProcessIsFinished();
/**if found, deselect it */
cy.get('tr > td:nth-of-type(7)').then(el => {
var element = el.find('.meta-icon-checkbox-1');
if (element.length) {
cy.get(element).dblclick();
cy.setCheckBoxValue('IsIssueWarehouse', false);
cy.waitUntilProcessIsFinished();
cy.get('tr').then(el => {
if (el.length > 1) {
var element = el
.get(1)
.find('td:nth-of-type(7)')
.find('.meta-icon-checkbox-1');
if (element.length) {
cy.get(element).dblclick();
cy.setCheckBoxValue('IsIssueWarehouse', false);
cy.waitUntilProcessIsFinished();
}
}
});
cy.waitUntilProcessIsFinished();
/**create a new quality issue warehouse */
cy.visitWindow('139', 'NEW')
.writeIntoStringField('Name', warehouseName)
Expand Down Expand Up @@ -136,7 +140,7 @@ describe('Create test: create material receipt with quality issue, https://githu
.should('have.value', '0.1')
.clear()
.type('10{enter}');
cy.get('#lookup_M_Product_ID .input-dropdown').should('not.have.class', 'input-block');
cy.waitUntilProcessIsFinished();
/**Complete purchase order */
cy.fixture('misc/misc_dictionary.json').then(miscDictionary => {
cy.processDocument(
Expand Down
Expand Up @@ -112,7 +112,7 @@ describe('Create Purchase order - material receipt - invoice', function() {
.should('have.value', '0.1')
.clear()
.type('5{enter}');
cy.get('#lookup_M_Product_ID .input-dropdown').should('not.have.class', 'input-block');
cy.waitUntilProcessIsFinished();
/**Complete purchase order */
cy.fixture('misc/misc_dictionary.json').then(miscDictionary => {
cy.processDocument(
Expand Down
Expand Up @@ -123,7 +123,7 @@ describe('Create Purchase order - material receipt - invoice', function() {
.should('have.value', '0.1')
.clear()
.type('1{enter}');
cy.get('#lookup_M_Product_ID .input-dropdown').should('not.have.class', 'input-block');
cy.waitUntilProcessIsFinished();

cy.get('.quick-input-container .form-group').should('exist');
cy.writeIntoLookupListField('M_Product_ID', productName2, productName2, false, false, null, true);
Expand All @@ -141,7 +141,7 @@ describe('Create Purchase order - material receipt - invoice', function() {
.should('have.value', '0.1')
.clear()
.type('1{enter}');
cy.get('#lookup_M_Product_ID .input-dropdown').should('not.have.class', 'input-block');
cy.waitUntilProcessIsFinished();
/**Complete purchase order */
cy.fixture('misc/misc_dictionary.json').then(miscDictionary => {
cy.processDocument(
Expand Down Expand Up @@ -192,8 +192,8 @@ describe('Create Purchase order - material receipt - invoice', function() {
.click({ force: true });
cy.contains('Material Receipt (#').click();
/**Navigate back in the purchase order */
cy.waitUntilProcessIsFinished();
cy.go('back');
cy.waitUntilProcessIsFinished();
let grandTotal = null;
cy.openAdvancedEdit()
.get('.form-field-GrandTotal input')
Expand Down

0 comments on commit e0bf355

Please sign in to comment.