pomwright 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # pomwright
2
2
 
3
+ ## 0.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 0d4924e: adds additional inforamtion to package.json and shields in readme
8
+
3
9
  ## 0.0.7
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  # POMWright
2
2
 
3
+ ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/DyHex/POMWright/main.yaml?label=CI%20on%20main) ![NPM Version](https://img.shields.io/npm/v/pomwright?link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fpomwright) ![NPM Downloads](https://img.shields.io/npm/dt/pomwright) ![GitHub License](https://img.shields.io/github/license/DyHex/POMWright) ![NPM dev or peer Dependency Version](https://img.shields.io/npm/dependency-version/pomwright/peer/%40playwright%2Ftest)
4
+
5
+
3
6
  POMWright is a TypeScript-based framework that implements the Page Object Model Design Pattern, designed specifically to augment Playwright's testing capabilities.
4
7
 
5
- POMWright provides a way of abstracting the implementation details of a web page and encapsulating them into a reusable page object. This approach makes the tests easier to read and maintain, and helps reduce duplicated code by breaking down the code into smaller, reusable components, making the code more maintainable and organized.
8
+ POMWright provides a way of abstracting the implementation details of a web page and encapsulating them into a reusable page object. This approach makes the tests easier to read, write and maintain, and helps reduce duplicated code by breaking down the code into smaller, reusable components, making the code more maintainable and organized.
6
9
 
7
10
  ## Features
8
11
 
@@ -182,9 +185,9 @@ test("update a locator before use", async ({ profile }) => {
182
185
  * content.region.details
183
186
  * content.region.details.button.edit (updated)
184
187
  */
185
- const editBtn = await profile.getLocatorSchema()
188
+ const editBtn = await profile.getLocatorSchema("content.region.details.button.edit")
186
189
  .update({ roleOptions: { name: "Edit details" }})
187
- .getNestedLocator("content.region.details.button.edit");
190
+ .getNestedLocator();
188
191
 
189
192
  await editBtn.click();
190
193
 
@@ -205,14 +208,14 @@ test("update a nested locator before use", async ({ profile }) => {
205
208
  * content.region.details (updated)
206
209
  * content.region.details.button.edit
207
210
  */
208
- const editBtn = await profile.getLocatorSchema()
211
+ const editBtn = await profile.getLocatorSchema("content.region.details.button.edit")
209
212
  .updates({
210
213
  2: { // content.region.details
211
214
  locator: ".profile-details",
212
215
  locatorMethod: GetByMethod.locator
213
216
  }
214
217
  })
215
- .getNestedLocator("content.region.details.button.edit");
218
+ .getNestedLocator();
216
219
 
217
220
  await editBtn.click();
218
221
 
@@ -238,7 +241,7 @@ test("make multiple versions of a locator", async ({ profile }) => {
238
241
  await editBtnUpdated.click();
239
242
 
240
243
  /**
241
- * Calling profile.getLocatorSchema(content.region.details.button.edit) again
244
+ * Calling profile.getLocatorSchema("content.region.details.button.edit") again
242
245
  * will return a new deepCopy of the original LocatorSchema
243
246
  */
244
247
 
package/package.json CHANGED
@@ -1,7 +1,19 @@
1
1
  {
2
2
  "name": "pomwright",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "POMWright is a complementary test framework for Playwright written in TypeScript.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/DyHex/POMWright"
8
+ },
9
+ "homepage": "https://github.com/DyHex/POMWright#readme",
10
+ "bugs": {
11
+ "url": "https://github.com/DyHex/POMWright/issues"
12
+ },
13
+ "author": {
14
+ "name": "Magnus Blütecher Dysthe"
15
+ },
16
+ "license": "Apache 2.0",
5
17
  "main": "dist/index.js",
6
18
  "module": "dist/index.mjs",
7
19
  "types": "dist/index.d.ts",
@@ -11,8 +23,6 @@
11
23
  "Page Object Model",
12
24
  "Test Framework"
13
25
  ],
14
- "author": "Magnus Blütecher Dysthe",
15
- "license": "Apache 2.0",
16
26
  "devDependencies": {
17
27
  "@biomejs/biome": "^1.5.1",
18
28
  "@changesets/cli": "^2.27.1",