Skip to content

Commit

Permalink
update e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
akellbl4 committed Nov 12, 2023
1 parent a41ec55 commit f18152b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions frontend/e2e/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
/test-results/
/playwright-report/
/playwright/.cache/
node_modules
test-results
playwright-report
playwright/.cache
screenshots
Binary file removed frontend/e2e/screenshot-chromium.png
Binary file not shown.
Binary file removed frontend/e2e/screenshot-firefox.png
Binary file not shown.
Binary file removed frontend/e2e/screenshot-webkit.png
Binary file not shown.
4 changes: 2 additions & 2 deletions frontend/e2e/tests/post-comment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test.describe("Post comment", () => {
} else {
await page.press("iframe[name]", "Tab");
}
const message = `Hello world! ${nanoid()}`;
const message = `Hello world, ${browserName}! ${nanoid()}`;
await page
.frameLocator("iframe[name]")
.getByPlaceholder("Your comment here")
Expand All @@ -41,7 +41,7 @@ test.describe("Post comment", () => {
.frameLocator("iframe[name]")
.locator("body")
.screenshot({
path: `screenshot-${browserName}.png`,
path: `./screenshots/${browserName}.png`,
});
await expect(
page.frameLocator("iframe[name]").getByText(message)
Expand Down

0 comments on commit f18152b

Please sign in to comment.