Compare commits

..

No commits in common. "6f33186d7e1995467eed6040d1bb4c435773a165" and "ce083d8abb92965c3883170c335016b6a6604b8f" have entirely different histories.

10 changed files with 1925 additions and 2080 deletions

View File

@ -282,11 +282,11 @@ export const getBestDeals = async (amount: number): Promise<Prices> => {
'price_in_cents': lowestPrice.price_in_cents,
'timestamp': lowestPrice.timestamp,
'amazonDifference': (amazonPrice.price_in_cents - lowestPrice.price_in_cents),
'amazonDifferencePercent': ((amazonPrice.price_in_cents / lowestPrice.price_in_cents) * 100),
'amazonDifferencePercent': ((1 - (lowestPrice.price_in_cents / amazonPrice.price_in_cents)) * 100),
};
// Push only deals were the amazon price is actually higher
if (deal.amazonDifferencePercent > 0 && deal.amazonDifference > 0) {
if (deal.amazonDifferencePercent > 0) {
deals.push(deal as Deal);
}
}

View File

@ -9,15 +9,13 @@ import stepdefs.Preconditions;
@RunWith(Cucumber.class)
@CucumberOptions(
features = {"src/test/resource/searchProduct.feature",
"src/test/resource/priceAlarms.feature",
"src/test/resource/favoriteShopList.feature",
"src/test/resource/manageVendor.feature"}
"src/test/resource/priceAlarms.feature"}
)
public class RunTest {
@BeforeClass
public static void setup() {
Preconditions.driver = new FirefoxDriver();
Preconditions.driver= new FirefoxDriver();
}
@AfterClass

View File

@ -1,27 +0,0 @@
package stepdefs;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
public class FavoriteShopList {
@Given("^the user has at least (\\d+) favorite shop$")
public void the_user_has_at_least_favorite_shop(int arg1) throws Exception {
}
@When("^the user clicks on favorite shops$")
public void the_user_clicks_on_favorite_shops() throws Exception {
}
@Then("^he should see his favorite shops list$")
public void he_Should_see_his_favorite_shops_list() throws Exception {
}
@When("^he clicks on delete a favorite shop entry$")
public void he_clicks_on_delete_a_favorite_shop_enty() throws Exception {
}
@Then("^the favorite shop entry should be deleted$")
public void the_favorite_shop_entry_should_be_deleted() throws Exception {
}
}

View File

@ -1,31 +0,0 @@
package stepdefs;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
public class ManageVendor {
@Given("^the user is logged in as vendor manager$")
public void the_user_is_logged_in_as_vendor_manager() throws Exception {
}
@When("^the user opens the shop managing page$")
public void the_user_opens_the_shop_managing_page() throws Exception {
}
@When("^the user clicks on deactivate a listing$")
public void the_user_clicks_on_deactivate_a_listing() throws Exception {
}
@Then("^the listing should be deactivated$")
public void the_listing_should_be_deactivated() throws Exception {
}
@When("^the user clicks on deactivate the shop$")
public void the_user_clicks_on_deactivate_the_shop() throws Exception {
}
@Then("^the shop and all related listings should be deactivated$")
public void the_shop_and_all_related_listings_should_be_deactivated() throws Exception {
}
}

View File

@ -1,20 +0,0 @@
Feature: Favorite Shop List
Scenario: Access Favorite Shop List
Given the user is on the landing page
And the user is logged in
And the user has at least 1 favorite shop
When the user clicks on the profile icon
Then the profile details popup should open
When the user clicks on favorite shops
Then he should see his favorite shops list
Scenario: Remove Favorite Shop Entry
Given the user is on the landing page
And the user is logged in
And the user has at least 1 favorite shop
When the user clicks on the profile icon
Then the profile details popup should open
When the user clicks on favorite shops
And he clicks on delete a favorite shop entry
Then the favorite shop entry should be deleted

View File

@ -1,15 +0,0 @@
Feature: Manage Vendor Shop
Scenario: Deactivate Product Listing
Given the user is on the landing page
And the user is logged in as vendor manager
When the user opens the shop managing page
And the user clicks on deactivate a listing
Then the listing should be deactivated
Scenario: Deactivate Shop Completely
Given the user is on the landing page
And the user is logged in as vendor manager
When the user opens the shop managing page
And the user clicks on deactivate the shop
Then the shop and all related listings should be deactivated

View File

@ -1,3 +1,3 @@
<div class="copyright py-4 text-center text-white">
<div class="container"><small>Copyright &copy; Betterzon 2021</small></div>
<div class="container"><small>Copyright &copy; Your Website 2021</small></div>
</div>

View File

@ -1 +1 @@
<mxfile host="Electron" modified="2021-06-15T10:10:23.336Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/13.4.5 Chrome/83.0.4103.122 Electron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o9lyhgeIUXYPmDBgfn+dVS+feaHjz1xUCCelW7IznqNUZaPsVLaqKxiMIxRKshRFuqhEbZ8llS6K2IDbglGFxSeopB7M/goZcdWsh+q6VZM/Nfc55hqp/ul65Q2vYfyc/L79+mD+GiuhpO3lAHd6zlu1atu+KI7UsKoOyDvXviLtRiPcz2+/hs+Li9Xw5uPsuz1WxtHltGOtN5paZkflTgqdIyzQuYa6hlkmLpdixB4vylpUIWtRFYnX6bWSwW8R77e5VpKhLJbva0W5AczsNrcVSzF77TvtdauuqYofyeKL8w37kGNL6uemKQHfyj+J0LKixOoTWzz4eCLo69Vs/OZ1ZwNJqaGxEqtMCWLv4ocg8lHA8HL/HUVYsi2gTSliV0Qp61t8D59xVmf7Tl0XJieofAvQShTwMtpKeZ1ZrIvamM6laAMB7YFL6a6EaN6r4bdYasCMLxoXzDsZZkcvAY9aznGzb22N8i/T41QTfJEBzDVftV2Ab4tvrl1ACuLRO2+kKQON+7M7g0BP7hHx6KuwSad2OknaUbrIJy49oFUl1JtiSsxHaplSksZzN/DC9GclWOs5x6+291Ic5fH5vRSmIcYkTe2lkKItrnnvs40UG9CPauc/STDCW4PZ5n4KKc71rFj/1qPtMrC9Ds08pUPTuYnNrOrP+FWA8Fsgld0ZPd38jm16++bHgLV3/wM=</diagram></mxfile>
<mxfile host="app.diagrams.net" modified="2020-12-03T09:39:52.243Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36" etag="RUzsjnuqX_zRTCHSTruo" version="13.10.6" type="github"><diagram id="QFWcWedTnleHV76omDGD" name="Page-1">5Vzbdps6EP0aPzYLxMX40Una9JbTNG5Pc56yZFBsWkCukGM7X38kDBgkxXYxt6QPyTJjkGHPnotGIwbGRbi+InAxv8YeCgZA89YD43IAwNDR2H8u2GQCcyuYEd/bivSdYOI/oVSYXjdb+h6KSydSjAPqL8pCF0cRcmlJBgnBq/JpDzgo/+oCzpAkmLgwkK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l/8J+zX7Xqobjo1+VP7kGOukeqfrp782ysYP9Jfn7/d2T+nWqRoFznCnUqTP0EFCsV3toZQ1ws8Dr5homFFyRMMgkL8yOfxtbbQSRnoUcp8poUurxm2kpSqYKur77U9n3nYliq24T1Pq66M0xA2TVZu9DBsYaCWjbPh5taqE8yTbNkSbDlfAuvMluV+hAZaiGvFzGlza7kSs3qaDvob302npvguDjRsboeGUlGntgi8NEVJ+FZNxNpWlLz+dhPAKEo6+rZ9USblr+uaoBAp26779Hqi07I9QaUOUKzaNLaSrNKN3HD5IVwETBEML66f5CUk1+zukCJQvFq9DFWvVKhJL+xw9xrWrYnt3mVrvP0f</diagram></mxfile>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

@ -273,8 +273,6 @@
" }\r",
"}, function (err, response) {\r",
" pm.expect(err).to.not.be.ok;\r",
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
"});"
],
"type": "text/javascript"
@ -286,7 +284,7 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"vendor_id\": 7,\r\n \"first_name\": \"Test\",\r\n \"last_name\": \"Contact\",\r\n \"gender\": \"Unix\",\r\n \"email\": \"testcontact@betterzon.xyz\",\r\n \"phone\": \"+49 123 456789\"\r\n}",
"raw": "{\r\n \"vendor_id\": 7,\r\n \"first_name\": \"Test\",\r\n \"last_name\": \"Contact\",\r\n \"gender\": \"Unix\",\r\n \"email\": \"testcontact@betterzon.xyz\",\r\n \"phone\": \"+49 123 456789\"\r\n}",
"options": {
"raw": {
"language": "json"
@ -340,8 +338,6 @@
" }\r",
"}, function (err, response) {\r",
" pm.expect(err).to.not.be.ok;\r",
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
"});"
],
"type": "text/javascript"
@ -353,7 +349,7 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"vendor_id\": 7,\r\n \"first_name\": \"Test\",\r\n \"last_name\": \"Contact\",\r\n \"gender\": \"Unix\",\r\n \"email\": \"testcontact@betterzon.xyz\",\r\n \"phone\": \"+49 123 456789\"\r\n}",
"raw": "{\r\n \"vendor_id\": 7,\r\n \"first_name\": \"Test\",\r\n \"last_name\": \"Contact\",\r\n \"gender\": \"Unix\",\r\n \"email\": \"testcontact@betterzon.xyz\",\r\n \"phone\": \"+49 123 456789\"\r\n}",
"options": {
"raw": {
"language": "json"
@ -416,8 +412,6 @@
" }\r",
"}, function (err, response) {\r",
" pm.expect(err).to.not.be.ok;\r",
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
"});\r",
""
],
@ -441,7 +435,7 @@
}
},
"url": {
"raw": "https://backend.betterzon.xyz/crawlingstatus?session_id={{session_id}}&session_key={{session_key}}",
"raw": "https://backend.betterzon.xyz/crawlingstatus",
"protocol": "https",
"host": [
"backend",
@ -450,16 +444,6 @@
],
"path": [
"crawlingstatus"
],
"query": [
{
"key": "session_id",
"value": "{{session_id}}"
},
{
"key": "session_key",
"value": "{{session_key}}"
}
]
}
},
@ -577,8 +561,6 @@
" }\r",
"}, function (err, response) {\r",
" pm.expect(err).to.not.be.ok;\r",
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
"});\r",
""
],
@ -591,7 +573,7 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"vendor_id\": 7\r\n}",
"raw": "{\r\n \"vendor_id\": 7\r\n}",
"options": {
"raw": {
"language": "json"
@ -648,8 +630,6 @@
" }\r",
"}, function (err, response) {\r",
" pm.expect(err).to.not.be.ok;\r",
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
" getNewFavId();\r",
"});\r",
"\r",
@ -663,8 +643,6 @@
" body: {\r",
" mode: 'raw',\r",
" raw: JSON.stringify({\r",
" session_id: pm.collectionVariables.get(\"session_id\"),\r",
" session_key: pm.collectionVariables.get(\"session_key\"),\r",
" vendor_id: 7\r",
" })\r",
" }\r",
@ -674,7 +652,7 @@
"\r",
" // Get the id of the entry\r",
" pm.sendRequest({\r",
" url: ('https://backend.betterzon.xyz/favoriteshops?session_id=' + pm.collectionVariables.get(\"session_id\") + '&session_key=' + pm.collectionVariables.get(\"session_key\")),\r",
" url: 'https://backend.betterzon.xyz/favoriteshops',\r",
" method: 'GET'\r",
" }, function (err, response) {\r",
" pm.expect(err).to.not.be.ok;\r",
@ -699,7 +677,7 @@
}
},
"url": {
"raw": "https://backend.betterzon.xyz/favoriteshops/{{created_favshop_id}}",
"raw": "https://backend.betterzon.xyz/favoriteshops/4",
"protocol": "https",
"host": [
"backend",
@ -708,7 +686,7 @@
],
"path": [
"favoriteshops",
"{{created_favshop_id}}"
"4"
]
}
},
@ -873,8 +851,6 @@
" }\r",
"}, function (err, response) {\r",
" pm.expect(err).to.not.be.ok;\r",
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
"});"
],
"type": "text/javascript"
@ -885,7 +861,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "https://backend.betterzon.xyz/pricealarms?session_id={{session_id}}&session_key={{session_key}}",
"raw": "https://backend.betterzon.xyz/pricealarms",
"protocol": "https",
"host": [
"backend",
@ -894,16 +870,6 @@
],
"path": [
"pricealarms"
],
"query": [
{
"key": "session_id",
"value": "{{session_id}}"
},
{
"key": "session_key",
"value": "{{session_key}}"
}
]
}
},
@ -944,8 +910,6 @@
" }\r",
"}, function (err, response) {\r",
" pm.expect(err).to.not.be.ok;\r",
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
"});"
],
"type": "text/javascript"
@ -957,7 +921,7 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"product_id\": 1,\r\n \"defined_price\": 23400\r\n}",
"raw": "{\r\n \"product_id\": 1,\r\n \"defined_price\": 23400\r\n}",
"options": {
"raw": {
"language": "json"
@ -1014,8 +978,6 @@
" }\r",
"}, function (err, response) {\r",
" pm.expect(err).to.not.be.ok;\r",
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
"});"
],
"type": "text/javascript"
@ -1027,7 +989,7 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"alarm_id\": 12,\r\n \"defined_price\": 23400\r\n}",
"raw": "{\r\n \"alarm_id\": 12,\r\n \"defined_price\": 23400\r\n}",
"options": {
"raw": {
"language": "json"
@ -1240,8 +1202,6 @@
" }\r",
"}, function (err, response) {\r",
" pm.expect(err).to.not.be.ok;\r",
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
"});"
],
"type": "text/javascript"
@ -1253,7 +1213,7 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"session_id\": \"{{session_id}}\",\r\n \"session_key\": \"{{session_key}}\",\r\n \"vendor_id\": 7,\r\n \"product_id\": 1,\r\n \"price_in_cents\": 123456\r\n}",
"raw": "{\r\n \"vendor_id\": 7,\r\n \"product_id\": 1,\r\n \"price_in_cents\": 123456\r\n}",
"options": {
"raw": {
"language": "json"
@ -1553,7 +1513,7 @@
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"username\": \"Testuser\",\r\n \"password\": \"never_gonna_give_you_up\",\r\n \"email\": \"Wrongemail\"\r\n}",
"raw": "{\r\n \"username\": \"Testuser\",\r\n \"password\": \"Testpassword\",\r\n \"email\": \"Wrongemail\"\r\n}",
"options": {
"raw": {
"language": "json"
@ -1891,8 +1851,6 @@
" }\r",
"}, function (err, response) {\r",
" pm.expect(err).to.not.be.ok;\r",
" pm.collectionVariables.set(\"session_id\", response.json().session_id);\r",
" pm.collectionVariables.set(\"session_key\", response.json().session_key);\r",
"});"
],
"type": "text/javascript"
@ -1903,7 +1861,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "https://backend.betterzon.xyz/vendors/managed?session_id={{session_id}}&session_key={{session_key}}",
"raw": "https://backend.betterzon.xyz/vendors/managed",
"protocol": "https",
"host": [
"backend",
@ -1913,16 +1871,6 @@
"path": [
"vendors",
"managed"
],
"query": [
{
"key": "session_id",
"value": "{{session_id}}"
},
{
"key": "session_key",
"value": "{{session_key}}"
}
]
}
},
@ -1967,14 +1915,6 @@
{
"key": "rand_user_id",
"value": ""
},
{
"key": "session_id",
"value": ""
},
{
"key": "session_key",
"value": ""
}
]
}