Skip to content

Commit

Permalink
removed word and links
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaileshmishra committed Oct 16, 2023
1 parent 02d4a32 commit 43cbc9f
Show file tree
Hide file tree
Showing 11 changed files with 133 additions and 133 deletions.
6 changes: 3 additions & 3 deletions src/test/java/com/contentstack/utils/RTEResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ public class RTEResult {
public static String kH6Html = "<h6>Nunc porta diam vitae purus semper, ut consequat lorem vehicula.</h6>";
public static String kOrderListHtml = "<ol><li redactor-attributes=\"{}\" style=\"text-align: justify; \">Morbi in quam molestie, fermentum diam vitae, bibendum ipsum.</li><li redactor-attributes=\"{}\" style=\"text-align: justify; \">Pellentesque mattis lacus in quam aliquam congue</li><li redactor-attributes=\"{}\" style=\"text-align: justify; \">Integer feugiat leo dignissim, lobortis enim vitae, mollis lectus.</li><li redactor-attributes=\"{}\" style=\"text-align: justify; \">Sed in ante lacinia, molestie metus eu, fringilla sapien.</li></ol>";
public static String kIUnorderListHtml = "<ul><li>Sed quis metus sed mi hendrerit mollis vel et odio.</li><li>Integer vitae sem dignissim, elementum libero vel, fringilla massa.</li><li>Integer imperdiet arcu sit amet tortor faucibus aliquet.</li><li>Aenean scelerisque velit vitae dui vehicula, at congue massa sagittis.</li></ul>";
public static String kImgHtml = "<img redactor-attributes=\"{\"asset_uid\":\"47f1aa5ae422cd1\"}\" width=\"33.69418132611637\" height=\"auto\" src=\"https://images.contentstack.com/v3/assets/UID_13/Donald.jog.png\" />";
public static String kImgHtml = "<img redactor-attributes=\"{\"asset_uid\":\"47f1aa5ae422cd1\"}\" width=\"33.69418132611637\" height=\"auto\" src=\"images.contentstack.com/v3/assets/UID_13/Donald.jog.png\" />";
public static String kTableHtml = "<table><thead><tr><th><p>Header 1</p></th><th><p>Header 2</p></th></tr></thead><tbody><tr><td><p>Body row 1 data 1</p></td><td><p>Body row 1 data 2</p></td></tr><tr><td><p>Body row 2 data 1</p></td><td><p>Body row 2 data 2</p></td></tr></tbody></table>";
public static String kBlockquoteHtml = "<blockquote>Praesent eu ex sed nibh venenatis pretium.</blockquote>";
public static String kCodeHtml = "<code>Code template.</code>";
public static String kLinkInPHtml = "<p><strong><em><u><sub></sub></u></em></strong><a href=\"LINK.com\">LINK</a></p>";
public static String kEmbedHtml = "<iframe src=\"https://www.youtube.com/watch?v=AOP0yARiW8U\"></iframe>";
public static String kWFSAffectedHtml = "<p redactor-attributes=\"{}\" style=\"\" dir=\"ltr\"><strong>In this article:<br />\t</strong><a target=\"_self\" href=\"#Overview\">Overview</a><br />\t<a target=\"_self\" href=\"#Fulfillment\">Standard Fulfillment</a><br />\t<a target=\"_self\" href=\"#AdditionalFees\">Additional Fees</a><br />\t<a target=\"_self\" href=\"#BigBulkyFulfillment\">Big & Bulky Fulfillment</a><br />\t<a target=\"_self\" href=\"#Storage\">Storage</a><br />\t<a target=\"_self\" href=\"#ProblemInventory\">Problem Inventory</a><br />\t<a target=\"_self\" href=\"#Return\">Return Shipping & Exceptions</a><br />\t<a target=\"_self\" href=\"#DisposalRemoval\">Disposal & Removal</a><br />\t<a target=\"_self\" href=\"#AdditionalPrograms\">Additional WFS Programs</a></p><h2 redactor-attributes=\"{}\" style=\"\" id=\"Overview\" dir=\"ltr\">Overview</h2><p redactor-attributes=\"{}\" style=\"\" dir=\"ltr\">Walmart Fulfillment Services is a competitive and cost-effective solution that offers an end-to-end ecommerce fulfillment experience. Our fee structure is simple and straightforward, without signup or monthly subscription fees. You're also free to ship and store any amount of inventory you choose, without minimums or maximums. Use the <a href=\"https://marketplace.walmart.com/walmart-fulfillment-services-pricing/?_gl=1*1t4i6i1*_ga*OTkwMDc3NzQuMTY1MjM3NjY3Nw..*_ga_1LB22TM2MG*MTY1MjcyNDU5My41OS4xLjE2NTI3MjY5NzIuMA..\">WFS Calculator</a> to estimate your fulfillment and storage fees.<br /><br />The following fees are effective as of August 2023 and are subject to change.</p>";
public static String kEmbedHtml = "<iframe src=\"www.youtube.com/watch?v=AOP0yARiW8U\"></iframe>";
public static String kWFSAffectedHtml = "<p redactor-attributes=\"{}\" style=\"\" dir=\"ltr\"><strong>In this article:<br />\t</strong><a target=\"_self\" href=\"#Overview\">Overview</a><br />\t<a target=\"_self\" href=\"#Fulfillment\">Standard Fulfillment</a><br />\t<a target=\"_self\" href=\"#AdditionalFees\">Additional Fees</a><br />\t<a target=\"_self\" href=\"#BigBulkyFulfillment\">Big & Bulky Fulfillment</a><br />\t<a target=\"_self\" href=\"#Storage\">Storage</a><br />\t<a target=\"_self\" href=\"#ProblemInventory\">Problem Inventory</a><br />\t<a target=\"_self\" href=\"#Return\">Return Shipping & Exceptions</a><br />\t<a target=\"_self\" href=\"#DisposalRemoval\">Disposal & Removal</a><br />\t<a target=\"_self\" href=\"#AdditionalPrograms\">Additional WFS Programs</a></p><h2 redactor-attributes=\"{}\" style=\"\" id=\"Overview\" dir=\"ltr\">Overview</h2><p redactor-attributes=\"{}\" style=\"\" dir=\"ltr\">Fulfillment Services is a competitive and cost-effective solution that offers an end-to-end ecommerce fulfillment experience. Our fee structure is simple and straightforward, without signup or monthly subscription fees. You're also free to ship and store any amount of inventory you choose, without minimums or maximums. Use the <a href=\"www.abcd.com/?_gl=1*1t4i6i1*_ga*OTkwMDc3NzQuMTY1MjM3NjY3Nw..*_ga_1LB22TM2MG*MTY1MjcyNDU5My41OS4xLjE2NTI3MjY5NzIuMA..\">WFS Calculator</a> to estimate your fulfillment and storage fees.<br /><br />The following fees are effective as of August 2023 and are subject to change.</p>";
public static String kAnchorHtml = "<p redactor-attributes=\"{}\" style=\"\" dir=\"ltr\">This is a paragraph with break true and<br />backslash nThis para has just one line break without any break key<br />Third paragraph with multiple line breaks<br /><br /><br />Fourth paragraph with multiple line breaks and break key<br /><br />Fifth paragraph with multiple only tab \t and this is text after tab<br />\tThis paragraph should start with a tab and should have a break before.</p>";
public static String kWFSFeesHtml = "<p redactor-attributes=\"{}\" style=\"\" dir=\"ltr\">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. <br /><br /><br />\t\t\t\tUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. <br />Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <br />\tExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>";

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/contentstack/utils/RTEString.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class RTEString {
public static String kH6Json = "{ \"uid\": \"06e34a71190849d7fcd\", \"_version\": 13, \"attrs\": { }, \"children\": [ { \"type\": \"h6\", \"attrs\": {}, \"uid\": \"c2dfa672242cfb7e2e1\", \"children\": [ { \"text\": \"Nunc porta diam vitae purus semper, ut consequat lorem vehicula.\", } ] } ], \"type\": \"doc\" }";
public static String kOrderListJson = "{ \"uid\":\"06e35 48119084 9d7fc2acd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"2b5b4acbb3cfce02d3e\",\"type\":\"ol\",\"children\":[{\"type\":\"li\",\"attrs\":{\"style\":{\"text-align\":\"justify\"},\"redactor-attributes\":{ }},\"uid\":\"160bbd7430b98bd3d996\",\"children\":[{\"text\":\"Morbi in quam molestie, fermentum diam vitae, bibendum ipsum.\"}]},{ \"type\":\"li\",\"attrs\":{ \"style\":{ \"text-align\":\"justify\"},\"redactor-attributes\":{ } },\"uid\":\"a15f4d749bc2903d\",\"children\":[{ \"text\":\"Pellentesque mattis lacus in quam aliquam congue\"}]},{ \"type\":\"li\",\"attrs\":{ \"style\":{ \"text-align\":\"justify\"},\"redactor-attributes\":{ } },\"uid\":\"e54224bbcb6f9e8f1e43\",\"children\":[{ \"text\":\"Integer feugiat leo dignissim, lobortis enim vitae, mollis lectus.\"}]},{ \"type\":\"li\",\"attrs\":{ \"style\":{ \"text-align\":\"justify\"},\"redactor-attributes\":{ } },\"uid\":\"c0148bab9af758784\",\"children\":[{ \"text\":\"Sed in ante lacinia, molestie metus eu, fringilla sapien.\"}]}],\"id\":\"7f413d448a\",\"attrs\":{ }}],\"type\":\"doc\"}";
public static String kUnorderListJson = "{ \"uid\":\"0e5481190849a\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"a3a2b443ebffc867b\",\"type\":\"ul\",\"children\":[{\"uid\":\"f67354d4eed64451922\",\"type\":\"li\",\"children\":[{\"text\":\"Sed quis metus sed mi hendrerit mollis vel et odio.\"}],\"attrs\":{ }},{ \"uid\":\"5 50cba5 bea92f23e36fd1\",\"type\":\"li\",\"children\":[{ \"text\":\"Integer vitae sem dignissim, elementum libero vel, fringilla massa.\"}],\"attrs\":{ } },{ \"uid\":\"0e5c9b4cd983e8fd543\",\"type\":\"li\",\"children\":[{ \"text\":\"Integer imperdiet arcu sit amet tortor faucibus aliquet.\"}],\"attrs\":{ } },{ \"uid\":\"6d9a43a3816bd83a9a\",\"type\":\"li\",\"children\":[{ \"text\":\"Aenean scelerisque velit vitae dui vehicula, at congue massa sagittis.\"}],\"attrs\":{ } }],\"id\":\"b083fa46ef899420ab19\",\"attrs\":{ }}],\"type\":\"doc\"}";
public static String kImgJson = "{ \"uid\":\"06e34a7a4849d7fc2acd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"f3be74be3b64646e626\",\"type\":\"img\",\"attrs\":{\"url\":\"https://images.contentstack.com/v3/assets/UID_13/Donald.jog.png\",\"width\":33.69418132611637,\"height\":\"auto\",\"redactor-attributes\":{\"asset_uid\":\"47f1aa5ae422cd1\"}},\"children\":[{\"text\":\"\"}]}],\"type\":\"doc\"}";
public static String kImgJson = "{ \"uid\":\"06e34a7a4849d7fc2acd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"f3be74be3b64646e626\",\"type\":\"img\",\"attrs\":{\"url\":\"images.contentstack.com/v3/assets/UID_13/Donald.jog.png\",\"width\":33.69418132611637,\"height\":\"auto\",\"redactor-attributes\":{\"asset_uid\":\"47f1aa5ae422cd1\"}},\"children\":[{\"text\":\"\"}]}],\"type\":\"doc\"}";
public static String kParagraphJson = "{ \"uid\":\"0d7fd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"type\":\"p\",\"attrs\":{},\"uid\":\"0a1b5676aa510e5a\",\"children\":[{\"text\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed condimentum iaculis magna in vehicula. Vestibulum vitae convallis lacus. Praesent a diam iaculis turpis rhoncus faucibus. Aliquam sed pulvinar sem.\"}]}],\"type\":\"doc\"}";
public static String kBlockquoteJson = "{ \"uid\":\"06084d7fd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"503f9cc97534db55\",\"type\":\"blockquote\",\"id\":\"431f78e567161460\",\"children\":[{\"text\":\"Praesent eu ex sed nibh venenatis pretium.\"}],\"attrs\":{ }}],\"type\":\"doc\"}";
public static String kCodeJson = "{ \"uid\":\"06ea490849d7fc2acd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"83fba92c91b30002b\",\"type\":\"code\",\"attrs\":{},\"children\":[{\"text\":\"Code template.\"}]}],\"type\":\"doc\"}";
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Wallmart</title>
<title>Response</title>
</head>
<body>
<p redactor-attributes="{}" style="" dir="ltr"><strong>In this article:</strong></p> <a target="_self" href="#Overview">Overview</a><br /> <a target="_self" href="#Create_Variant_Groups">Create Variant Groups</a> <a target="_self" href="#Items_Dashboard_Method">Items Dashboard Method</a><br /> <a target="_self" href="#Full_Item_Spec_Method">Full Item Spec Method</a><br /> <a target="_self" href="#API_Method">API Method</a> <a target="_self" href="#Multi-select">Multi-select Attributes</a> <br /> <a target="_self" href="#Update_Variant_Group">Update Variant Groups</a> <a redactor-attributes="{}" style="" dir="ltr" target="_self" href="#Adding_Items_to_an_Existing_Group">Add Items to an Existing Variant Group</a><br /> <a target="_self" href="#Removing_Items_from_a_Variant_Group">Remove Items from a Variant Group</a> <a target="_self" href="#Combine_group">Combine Two Variant Groups</a> <br /> <a target="_self" href="#Separate_Group">Separate a Single Variant Group into Multiple Groups</a><br /> <a target="_self" href="#Add_New_Attribute">Add New Variant Attributes</a> <a target="_self" href="#Merged_Variant_Groups">Merged Variant Groups</a> <a redactor-attributes="{}" style="" dir="ltr" target="_self" href="#Variant_Limits">Variant Limits</a> <a redactor-attributes="{}" style="" dir="ltr" target="_self" href="#Variant_Errors">Variant Group Errors</a> <a redactor-attributes="{}" style="" dir="ltr" target="_self" href="#Selecting_Invalid_Variant_Attributes">Selecting Invalid Variant Attributes</a><br /> <a target="_self" href="#Variant_Group_Limits">Variant Group Limits</a><br /> <a target="_self" href="#Duplicate_Variants">Duplicate Variants</a> <a redactor-attributes="{}" style="" dir="ltr" target="_self" href="#Helpful_Resources">Helpful Resources</a> <p></p><h2 redactor-attributes="{}" style="" id="Overview" dir="ltr">Overview</h2><p>A variant group is a group of individual items that only differ by a few attributes. This is what a variant group looks like on Walmart.com:</p><p redactor-attributes="{}" style="" dir="ltr"></p><img display-type="display" redactor-attributes="{"position":"left"}" inline="false" asset-name="rtaImage_(25).jpeg" asset-type="image/jpeg" asset-uid="blta78588c5804da9e9" style="" type="asset" dir="ltr" content-type-uid="sys_assets" class-name="embedded-asset" src="https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blta78588c5804da9e9/64ff36130812c3000a04e7bc/rtaImage_(25).jpeg" /><p redactor-attributes="{}" style="" dir="ltr"></p><p redactor-attributes="{}" style="" dir="ltr"><strong><em>**NOTE: </em></strong><em>All items in a variant group should be included as separate items in the spec sheet. For instance, if you have a T-shirt that comes in two colors and three different sizes, you should have a total of six rows with each variation defined in a separate row. </em></p>
<p redactor-attributes="{}" style="" dir="ltr"><strong>In this article:</strong></p> <a target="_self" href="#Overview">Overview</a><br /> <a target="_self" href="#Create_Variant_Groups">Create Variant Groups</a> <a target="_self" href="#Items_Dashboard_Method">Items Dashboard Method</a><br /> <a target="_self" href="#Full_Item_Spec_Method">Full Item Spec Method</a><br /> <a target="_self" href="#API_Method">API Method</a> <a target="_self" href="#Multi-select">Multi-select Attributes</a> <br /> <a target="_self" href="#Update_Variant_Group">Update Variant Groups</a> <a redactor-attributes="{}" style="" dir="ltr" target="_self" href="#Adding_Items_to_an_Existing_Group">Add Items to an Existing Variant Group</a><br /> <a target="_self" href="#Removing_Items_from_a_Variant_Group">Remove Items from a Variant Group</a> <a target="_self" href="#Combine_group">Combine Two Variant Groups</a> <br /> <a target="_self" href="#Separate_Group">Separate a Single Variant Group into Multiple Groups</a><br /> <a target="_self" href="#Add_New_Attribute">Add New Variant Attributes</a> <a target="_self" href="#Merged_Variant_Groups">Merged Variant Groups</a> <a redactor-attributes="{}" style="" dir="ltr" target="_self" href="#Variant_Limits">Variant Limits</a> <a redactor-attributes="{}" style="" dir="ltr" target="_self" href="#Variant_Errors">Variant Group Errors</a> <a redactor-attributes="{}" style="" dir="ltr" target="_self" href="#Selecting_Invalid_Variant_Attributes">Selecting Invalid Variant Attributes</a><br /> <a target="_self" href="#Variant_Group_Limits">Variant Group Limits</a><br /> <a target="_self" href="#Duplicate_Variants">Duplicate Variants</a> <a redactor-attributes="{}" style="" dir="ltr" target="_self" href="#Helpful_Resources">Helpful Resources</a> <p></p><h2 redactor-attributes="{}" style="" id="Overview" dir="ltr">Overview</h2><p>A variant group is a group of individual items that only differ by a few attributes. This is what a variant group looks like:</p><p redactor-attributes="{}" style="" dir="ltr"></p><img display-type="display" redactor-attributes="{"position":"left"}" inline="false" asset-name="rtaImage_(25).jpeg" asset-type="image/jpeg" asset-uid="blta78588c5804da9e9" style="" type="asset" dir="ltr" content-type-uid="sys_assets" class-name="embedded-asset" src="abcd.com/png.jpeg" /><p redactor-attributes="{}" style="" dir="ltr"></p><p redactor-attributes="{}" style="" dir="ltr"><strong><em>**NOTE: </em></strong><em>All items in a variant group should be included as separate items in the spec sheet. For instance, if you have a T-shirt that comes in two colors and three different sizes, you should have a total of six rows with each variation defined in a separate row. </em></p>
</body>
</html>
Loading

0 comments on commit 43cbc9f

Please sign in to comment.