artes 1.0.17 → 1.0.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "The package provide step definitions and user writes feature files, and the package handles automation, with optional POM files and custom step definitions.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -180,11 +180,7 @@ Then(
180
180
  );
181
181
 
182
182
  // Check if the page should have a specific URL
183
- Then("User expects the page url should be {string}", async function (url) {
184
- await assert.shouldPageHaveURL(url);
185
- });
186
-
187
- Then("User is on {string} page", async function (url) {
183
+ Then("User expects to be in {string} page", async function (url) {
188
184
  await assert.shouldPageHaveURL(url);
189
185
  });
190
186
 
@@ -1,5 +1,5 @@
1
1
  const { When, context, selector } = require("../helper/imports/commons");
2
- const { page } = require("../helper/stepFunctions/exporter");
2
+ const { page, assert } = require("../helper/stepFunctions/exporter");
3
3
 
4
4
  When("User navigates to {string} page", async function (url) {
5
5
  const URL = await selector(url);
@@ -8,7 +8,7 @@ When("User navigates to {string} page", async function (url) {
8
8
 
9
9
  When("User is on {string} page", async function (url) {
10
10
  const URL = await selector(url);
11
- await page.navigateTo(URL);
11
+ await assert.shouldPageHaveURL(URL);
12
12
  });
13
13
 
14
14
  When("User navigates previous page", async function () {