Skip to content

Commit

Permalink
Attempt to fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucaspains committed Jan 17, 2025
1 parent 200830c commit 073e78c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion browser-extensions/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function parseRecipe(url, downloadImage, body, sendResponse) {
body: data
};

fetch(`https://delightful-flower-0c3edd710-383.centralus.2.azurestaticapps.net/api/parse-recipe-html`, options)
fetch(`https://sharpcooking.lpains.net/api/parse-recipe-html`, options)
.then(response => {
if (response.ok) {
return response.json();
Expand Down
2 changes: 2 additions & 0 deletions tests/edit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ test('video media shows thumbnail', async ({ page, browserName, isMobile }) => {

await page.getByTestId("topbar-single-button").click();

await page.waitForTimeout(500);

await page.goto('/');
await expect(page.getByTestId('recipe-image')).toHaveAttribute("src", "https://img.youtube.com/vi/0YY7K7Xa5rE/0.jpg")
});
Expand Down

0 comments on commit 073e78c

Please sign in to comment.