Skip to content

Commit

Permalink
#210 waits needed and solution to filtering
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 e0bf355 commit 3999bb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Expand Up @@ -43,15 +43,13 @@ describe('Create test: create material receipt with quality issue, https://githu
/**if found, deselect it */
cy.get('tr').then(el => {
if (el.length > 1) {
var element = el
.get(1)
debugger;
cy.get(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();
}
.find('.meta-icon-checkbox-1')
.dblclick();
cy.setCheckBoxValue('IsIssueWarehouse', false);
cy.waitUntilProcessIsFinished();
}
});
/**create a new quality issue warehouse */
Expand Down
Expand Up @@ -120,7 +120,7 @@ describe('Create Purchase order - material receipt - invoice', function() {
getLanguageSpecific(miscDictionary, DocumentStatusKey.Completed)
);
});

cy.waitUntilProcessIsFinished();
/**purchase order should be completed */
cy.log('purchase order should be completed');
cy.fixture('misc/misc_dictionary.json').then(miscDictionary => {
Expand All @@ -129,13 +129,14 @@ describe('Create Purchase order - material receipt - invoice', function() {
});
/**Reactivate purchase order */
it('Reactivate the purchase order', function() {
cy.waitUntilProcessIsFinished();
cy.fixture('misc/misc_dictionary.json').then(miscDictionary => {
cy.processDocument(
getLanguageSpecific(miscDictionary, DocumentActionKey.Reactivate),
getLanguageSpecific(miscDictionary, DocumentStatusKey.InProgress)
);
});
cy.wait(8000);
cy.waitUntilProcessIsFinished();
cy.fixture('misc/misc_dictionary.json').then(miscDictionary => {
cy.get('.tag.tag-default').contains(getLanguageSpecific(miscDictionary, DocumentStatusKey.InProgress));
});
Expand Down

0 comments on commit 3999bb6

Please sign in to comment.