Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from radekBednarik/dev
Browse files Browse the repository at this point in the history
dev: test values now taken from poms
  • Loading branch information
radekBednarik authored Apr 9, 2024
2 parents 36a289d + d276ccb commit 1bd1b40
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playwright-test-skeleton",
"version": "0.3.2",
"version": "0.4.0",
"description": "Package for creating Playwright Test skeleton project. Includes default linter, formatter and precommit-hooks settings.",
"repository": {
"type": "git",
4 changes: 2 additions & 2 deletions templates/js/tests/example.spec.js
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ test.describe("example tests", () => {
});

test("visited page url is correct", async () => {
await expect(homepage.page).toHaveURL("/");
await expect(homepage.page).toHaveURL(homepage.url);
});

test("homepage contains button 'Get Started'", async () => {
@@ -24,7 +24,7 @@ test.describe("example tests", () => {
test("click on 'Get Started' button leads to intro page", async () => {
await homepage.locatorButton.click();

await expect.soft(intro.page).toHaveURL("/docs/intro");
await expect.soft(intro.page).toHaveURL(intro.url);
await expect.soft(intro.locatorHeader).toHaveText("Installation");
});
});
4 changes: 2 additions & 2 deletions templates/ts/tests/example.spec.ts
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ test.describe("example tests", () => {
});

test("visited page url is correct", async () => {
await expect(homepage.page).toHaveURL("/");
await expect(homepage.page).toHaveURL(homepage.url);
});

test("homepage contains button 'Get Started'", async () => {
@@ -24,7 +24,7 @@ test.describe("example tests", () => {
test("click on 'Get Started' button leads to intro page", async () => {
await homepage.locatorButton.click();

await expect.soft(intro.page).toHaveURL("/docs/intro");
await expect.soft(intro.page).toHaveURL(intro.url);
await expect.soft(intro.locatorHeader).toHaveText("Installation");
});
});

0 comments on commit 1bd1b40

Please sign in to comment.