-
Notifications
You must be signed in to change notification settings - Fork 31
fixing branding test #31
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import Env from "./env"; | ||
|
||
export const defaultBranding = { | ||
name: "Shady Meadows B&B", | ||
map: { | ||
latitude: 52.6351204, | ||
longitude: 1.2733774, | ||
}, | ||
logoUrl: "https://automationintesting.online/images/rbp-logo.jpg", | ||
logoUrl: `${Env.URL}/images/room2.jpg`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
description: | ||
"Welcome to Shady Meadows, a delightful Bed & Breakfast nestled in the hills on Newingtonfordburyshire. A place so beautiful you will never want to leave. All our rooms have comfortable beds and we provide breakfast from the locally sourced supermarket. It is a delightful place.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
contact: { | ||
Comment on lines
+1
to
12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
No changes detected in this line range. Keep it sharp, developer! Remember, details matter when it comes to code changes. Don't let those bugs sneak in like ninjas in the night! 💥🐰 |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
|
||
expect(response.status()).toBe(200); | ||
const body = await response.json(); | ||
expect(body).toEqual(defaultBodyShort); | ||
Check failure on line 18 in tests/branding/branding.spec.ts
|
||
|
||
await validateJsonSchema("GET_branding", "branding", body); | ||
await validateAgainstSchema(body, "Branding", "branding"); | ||
|
@@ -35,10 +35,11 @@ | |
}); | ||
|
||
test.afterEach(async ({ request }) => { | ||
await request.put("branding/", { | ||
const response = await request.put("branding/", { | ||
headers: headers, | ||
data: defaultBody, | ||
}); | ||
expect(response.status()).toBe(202); | ||
Comment on lines
+38
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bruh, we got a spicy issue here! 🌶️ Looks like you misspelled - expect(response.status()).toBe(202);
+ expect(response.status).toBe(202); |
||
}); | ||
|
||
test("PUT website branding", async ({ request }) => { | ||
|
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.
Bruh, what's good with this import statement change? You swapped out the direct URL for a dynamic one from
Env.URL
. Make sure this change doesn't mess up the URL resolution logic. 🤔