mirror of
				https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
				synced 2025-10-30 19:46:49 +00:00 
			
		
		
		
	fixed the pathing issue for images in main.e2e.test.js
This commit is contained in:
		| @@ -65,12 +65,12 @@ describe("test App end to end", async () => { | |||||||
| 			it("check details page", async () => { | 			it("check details page", async () => { | ||||||
| 				// check the details page for correctness | 				// check the details page for correctness | ||||||
| 				let expected = { | 				let expected = { | ||||||
| 					imgSrc: "http://localhost:8080/assets/images/icons/plate_with_cutlery.png", | 					imgSrc: "http://localhost:8080/assets/images/plate_with_cutlery.png", | ||||||
| 					mealName: "sample name", | 					mealName: "sample name", | ||||||
| 					comments: "sample comment", | 					comments: "sample comment", | ||||||
| 					restaurant: "sample restaurant", | 					restaurant: "sample restaurant", | ||||||
| 					tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], | 					tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], | ||||||
| 					rating: "http://localhost:8080/assets/images/icons/1-star.svg" | 					rating: "http://localhost:8080/assets/images/1-star.svg" | ||||||
| 				}; | 				}; | ||||||
| 				await checkCorrectness(page, "d", expected); | 				await checkCorrectness(page, "d", expected); | ||||||
| 			}); | 			}); | ||||||
| @@ -86,12 +86,12 @@ describe("test App end to end", async () => { | |||||||
| 				let shadowRoot = await review_card.getProperty("shadowRoot"); | 				let shadowRoot = await review_card.getProperty("shadowRoot"); | ||||||
|  |  | ||||||
| 				let expected = { | 				let expected = { | ||||||
| 					imgSrc: "http://localhost:8080/assets/images/icons/plate_with_cutlery.png", | 					imgSrc: "http://localhost:8080/assets/images/plate_with_cutlery.png", | ||||||
| 					mealName: "sample name", | 					mealName: "sample name", | ||||||
| 					comments: "sample comment", | 					comments: "sample comment", | ||||||
| 					restaurant: "sample restaurant", | 					restaurant: "sample restaurant", | ||||||
| 					tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], | 					tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], | ||||||
| 					rating: "http://localhost:8080/assets/images/icons/1-star.svg" | 					rating: "http://localhost:8080/assets/images/1-star.svg" | ||||||
| 				}; | 				}; | ||||||
| 				await checkCorrectness(shadowRoot, "a", expected); | 				await checkCorrectness(shadowRoot, "a", expected); | ||||||
| 			}); | 			}); | ||||||
| @@ -111,12 +111,12 @@ describe("test App end to end", async () => { | |||||||
|  |  | ||||||
| 				// check the details page for correctness | 				// check the details page for correctness | ||||||
| 				let expected = { | 				let expected = { | ||||||
| 					imgSrc: "http://localhost:8080/assets/images/icons/plate_with_cutlery.png", | 					imgSrc: "http://localhost:8080/assets/images/plate_with_cutlery.png", | ||||||
| 					mealName: "sample name", | 					mealName: "sample name", | ||||||
| 					comments: "sample comment", | 					comments: "sample comment", | ||||||
| 					restaurant: "sample restaurant", | 					restaurant: "sample restaurant", | ||||||
| 					tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], | 					tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], | ||||||
| 					rating: "http://localhost:8080/assets/images/icons/1-star.svg" | 					rating: "http://localhost:8080/assets/images/1-star.svg" | ||||||
| 				}; | 				}; | ||||||
| 				await checkCorrectness(page, "d", expected); | 				await checkCorrectness(page, "d", expected); | ||||||
| 			}); | 			}); | ||||||
| @@ -133,12 +133,12 @@ describe("test App end to end", async () => { | |||||||
|  |  | ||||||
| 				// check the details page for correctness | 				// check the details page for correctness | ||||||
| 				let expected = { | 				let expected = { | ||||||
| 					imgSrc: "http://localhost:8080/assets/images/icons/plate_with_cutlery.png", | 					imgSrc: "http://localhost:8080/assets/images/plate_with_cutlery.png", | ||||||
| 					mealName: "sample name", | 					mealName: "sample name", | ||||||
| 					comments: "sample comment", | 					comments: "sample comment", | ||||||
| 					restaurant: "sample restaurant", | 					restaurant: "sample restaurant", | ||||||
| 					tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], | 					tags: ["tag 0", "tag 1", "tag 2", "tag 3", "tag 4"], | ||||||
| 					rating: "http://localhost:8080/assets/images/icons/1-star.svg" | 					rating: "http://localhost:8080/assets/images/1-star.svg" | ||||||
| 				}; | 				}; | ||||||
| 				await checkCorrectness(shadowRoot, "a", expected); | 				await checkCorrectness(shadowRoot, "a", expected); | ||||||
| 			}); | 			}); | ||||||
| @@ -176,12 +176,12 @@ describe("test App end to end", async () => { | |||||||
| 			it("check details page", async () => { | 			it("check details page", async () => { | ||||||
| 				// check the details page for correctness | 				// check the details page for correctness | ||||||
| 				let expected = { | 				let expected = { | ||||||
| 					imgSrc: "http://localhost:8080/assets/images/icons/plate_with_cutlery.png", | 					imgSrc: "http://localhost:8080/assets/images/plate_with_cutlery.png", | ||||||
| 					mealName: "updated name", | 					mealName: "updated name", | ||||||
| 					comments: "updated comment", | 					comments: "updated comment", | ||||||
| 					restaurant: "updated restaurant", | 					restaurant: "updated restaurant", | ||||||
| 					tags: ["tag -0", "tag -1", "tag -2", "tag -3", "tag -4", "tag -5"], | 					tags: ["tag -0", "tag -1", "tag -2", "tag -3", "tag -4", "tag -5"], | ||||||
| 					rating: "http://localhost:8080/assets/images/icons/5-star.svg" | 					rating: "http://localhost:8080/assets/images/5-star.svg" | ||||||
| 				}; | 				}; | ||||||
| 				await checkCorrectness(page, "d", expected); | 				await checkCorrectness(page, "d", expected); | ||||||
| 			}); | 			}); | ||||||
| @@ -198,12 +198,12 @@ describe("test App end to end", async () => { | |||||||
|  |  | ||||||
| 				// check the details page for correctness | 				// check the details page for correctness | ||||||
| 				let expected = { | 				let expected = { | ||||||
| 					imgSrc: "http://localhost:8080/assets/images/icons/plate_with_cutlery.png", | 					imgSrc: "http://localhost:8080/assets/images/plate_with_cutlery.png", | ||||||
| 					mealName: "updated name", | 					mealName: "updated name", | ||||||
| 					comments: "updated comment", | 					comments: "updated comment", | ||||||
| 					restaurant: "updated restaurant", | 					restaurant: "updated restaurant", | ||||||
| 					tags: ["tag -0", "tag -1", "tag -2", "tag -3", "tag -4", "tag -5"], | 					tags: ["tag -0", "tag -1", "tag -2", "tag -3", "tag -4", "tag -5"], | ||||||
| 					rating: "http://localhost:8080/assets/images/icons/5-star.svg" | 					rating: "http://localhost:8080/assets/images/5-star.svg" | ||||||
| 				}; | 				}; | ||||||
| 				await checkCorrectness(shadowRoot, "a", expected); | 				await checkCorrectness(shadowRoot, "a", expected); | ||||||
| 			}); | 			}); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user