Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced Edit of HU Editor Line doesn't work #327

Open
TheBestPessimist opened this issue Aug 20, 2019 · 0 comments

Comments

@TheBestPessimist
Copy link
Member

commented Aug 20, 2019

Test shall include:

  • Customer Fixtures to use: (if needed)
  • What to test
  • Expectation for the test to be successful

Related issues

Todo for developer (besides coding)

  • Always make sure the issue is in the correct project lane
  • run your test in jenkins e2e on a vanilla db
  • jenkins console URL / cypress dashboard URL to the successful test suite run (not just yours)
  • get it integrated into master
    • (pull request URL)

All Flags are ticked? Congratulations, you have delivered!

Issue

In most single view windows, selecting a line in a tab (via cy.selectNthRow(0); or cy.selectSingleRow()) then running cy.openAdvancedEdit(); works ok and it opens the advanced edit of said line.

In Handling Unit Editor however, Handling Units Storage tab, selecting the tab line then trying to open advanced yelds the advanced edit of the HU, not of the line.

Trying manually works ok though (left click tab line, pressing alt+e).

Why isn't this working in cypress only for this particular window?

Relevant code:

it('In HU Editor i expect the line to open, but it doesnt', function() {
  cy.visitWindow('540189', '1000050');
  cy.selectTab('M_HU_Storage');
  cy.selectNthRow(0);
  cy.openAdvancedEdit();
  cy.getStringFieldValue('Qty').should('equals', '80'); // the field exists, qty could be different
  cy.pressDoneButton();
});



it('In Sales Order, the line advanced edit opens correctly', function() {
  cy.visitWindow('143','1000071');
  cy.selectTab('C_OrderLine');
  cy.selectNthRow(0);
  cy.openAdvancedEdit();
  cy.getStringFieldValue('Qty').should('equals', '80'); // the field doesn't exist, it's ok to error
  cy.pressDoneButton();

});

@TheBestPessimist TheBestPessimist added this to To do in e2e via automation Aug 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
2 participants
You can’t perform that action at this time.