-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fatal error page occurs if use wrong shipment id ,invoice id ,creditmemo id passed in url #30410
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
Merged
magento-engcom-team
merged 24 commits into
magento:2.4-develop
from
GovindaSharma:dcmm2020
Dec 23, 2020
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ff1a003
Fixed issue related with wrong invoice id ,creditmemo id and shipmen …
0e78fe4
Fixed issue related with wrong invoice id ,creditmemo id and shipmen …
ff5de32
Update ViewTest.php
1dab430
Merge branch '2.4-develop' into dcmm2020
6b1837b
Added new line to to mftf files, added words to csv and fixed compila…
589b1d2
Merge branch '2.4-develop' into dcmm2020
engcom-Charlie 4ba689a
Fixed some test case issues
9e99f43
Fixed MFTF issue
6359ac5
Fixed MFTF issue
ade5168
updated test files
1f0bcbf
Merge branch '2.4-develop' into dcmm2020
engcom-Charlie 937f9e5
fix mftf, static
engcom-Charlie 2221a8b
Merge branch '2.4-develop' into dcmm2020
engcom-Charlie 32ae2ff
fix static
engcom-Charlie 3fb5db4
Merge branch '2.4-develop' into dcmm2020
engcom-Charlie e38122a
fix i18n
engcom-Charlie 3b0e854
fix action group, revert i18n changes
engcom-Charlie 7006a96
revert i18n shipping changes
engcom-Charlie beac203
remove redundant spaces
engcom-Charlie 564a8a6
Merge branch '2.4-develop' into dcmm2020
engcom-Charlie ffc0ab7
update severity, testCaseId
engcom-Charlie 247817a
update severity, testCaseId
engcom-Charlie 5ec7bd4
Merge branch '2.4-develop' into dcmm2020
engcom-Charlie 52b5270
Merge branch '2.4-develop' into dcmm2020
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminGoToCreditmemoViewActionGroup.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AdminGoToCreditmemoViewActionGroup"> | ||
<annotations> | ||
<description>Goes to the Order Creditmemo View Page.</description> | ||
</annotations> | ||
<arguments> | ||
<argument name="identifier" type="string"/> | ||
</arguments> | ||
|
||
<amOnPage url="{{AdminCreditMemoViewPage.url}}{{identifier}}" stepKey="amOnCreditmemoViewPage"/> | ||
<waitForPageLoad stepKey="waitForPageLoad"/> | ||
</actionGroup> | ||
</actionGroups> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...ode/Magento/Sales/Test/Mftf/Test/AdminOpenCreditmemoViewPageWithWrongCreditmemoIdTest.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminOpenCreditmemoViewPageWithWrongCreditmemoIdTest"> | ||
<annotations> | ||
<stories value="Creditmemo Page With Wrong Creditmemo Id"/> | ||
<title value="Open Creditmemo View Page with Wrong Creditmemo Id"/> | ||
<description value="Open Creditmemo View Page with Wrong Creditmemo Id."/> | ||
<severity value="BLOCKER"/> | ||
<testCaseId value="MC-39500"/> | ||
<group value="sales"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> | ||
</after> | ||
|
||
<actionGroup ref="AdminGoToCreditmemoViewActionGroup" stepKey="navigateOpenCreditmemoViewPage"> | ||
<argument name="identifier" value="test"/> | ||
</actionGroup> | ||
|
||
<waitForPageLoad stepKey="waitForPageLoad"/> | ||
<seeInCurrentUrl url="{{AdminCreditMemosGridPage.url}}" stepKey="redirectToCreditMemosGridPage"/> | ||
<see selector="{{AdminMessagesSection.error}}" userInput='This creditmemo no longer exists.' stepKey="seeErrorMessage"/> | ||
</test> | ||
</tests> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest renaming this action group to something like
AdminOpenCreditMemoByEntityIdActionGroup
. Just to use more or less the same naming as, for example, in the following implementationmagento2/app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminOpenOrderByEntityIdActionGroup.xml
Line 11 in ae280ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rogyar .Thaks for your review. But can you please let me know what is the need of renaming the action group name? i have used this name based on other action group name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is not critical, but you may find the example of another action group in the Sales module in my previous comment. My recommendation is more about keeping the names transparent, i.e.