vasu-playwright-utils 0.3.0 → 0.4.1

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.
@@ -1,7 +1,9 @@
1
1
  export * from './utils/action-utils';
2
+ export * from './utils/assert-utils';
2
3
  export * from './utils/element-utils';
3
4
  export * from './utils/locator-utils';
4
5
  export * from './utils/page-utils';
5
6
  export * from './constants';
7
+ export * from './setup';
6
8
  export * from './types';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vasu-playwright-lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vasu-playwright-lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -2,9 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./utils/action-utils"), exports);
5
+ tslib_1.__exportStar(require("./utils/assert-utils"), exports);
5
6
  tslib_1.__exportStar(require("./utils/element-utils"), exports);
6
7
  tslib_1.__exportStar(require("./utils/locator-utils"), exports);
7
8
  tslib_1.__exportStar(require("./utils/page-utils"), exports);
8
9
  tslib_1.__exportStar(require("./constants"), exports);
10
+ tslib_1.__exportStar(require("./setup"), exports);
9
11
  tslib_1.__exportStar(require("./types"), exports);
10
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/vasu-playwright-lib/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,gEAAsC;AACtC,gEAAsC;AACtC,6DAAmC;AACnC,sDAA4B;AAC5B,kDAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/vasu-playwright-lib/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC;AACrC,+DAAqC;AACrC,gEAAsC;AACtC,gEAAsC;AACtC,6DAAmC;AACnC,sDAA4B;AAC5B,kDAAwB;AACxB,kDAAwB"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * custom-logger.ts: This module provides a custom logger for Playwright tests. It implements the Reporter interface from Playwright
3
+ * and uses the Winston logging library to provide detailed logs for test execution. The logger includes custom colors
4
+ * for different log levels and can be configured to log to the console or a file.
5
+ */
6
+ import { Reporter, TestCase, TestError, TestResult } from '@playwright/test/reporter';
7
+ import winston from 'winston';
8
+ /**
9
+ * Logger configuration
10
+ */
11
+ export declare const logger: winston.Logger;
12
+ /**
13
+ * CustomLogger class that implements the Reporter interface from Playwright
14
+ */
15
+ export default class CustomLogger implements Reporter {
16
+ /**
17
+ * Logs the start of a test case
18
+ * @param {TestCase} test - The test case that is starting
19
+ */
20
+ onTestBegin(test: TestCase): void;
21
+ /**
22
+ * Logs the end of a test case
23
+ * @param {TestCase} test - The test case that ended
24
+ * @param {TestResult} result - The result of the test case
25
+ */
26
+ onTestEnd(test: TestCase, result: TestResult): void;
27
+ /**
28
+ * Logs an error
29
+ * @param {TestError} error - The error
30
+ */
31
+ onError(error: TestError): void;
32
+ }
33
+ //# sourceMappingURL=custom-logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-logger.d.ts","sourceRoot":"","sources":["../../../src/vasu-playwright-lib/setup/custom-logger.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,OAAO,MAAM,SAAS,CAAC;AAW9B;;GAEG;AACH,eAAO,MAAM,MAAM,gBAcjB,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,YAAW,QAAQ;IACnD;;;OAGG;IACH,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAIjC;;;;OAIG;IACH,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI;IAanD;;;OAGG;IACH,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;CAGhC"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /**
3
+ * custom-logger.ts: This module provides a custom logger for Playwright tests. It implements the Reporter interface from Playwright
4
+ * and uses the Winston logging library to provide detailed logs for test execution. The logger includes custom colors
5
+ * for different log levels and can be configured to log to the console or a file.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.logger = void 0;
9
+ const tslib_1 = require("tslib");
10
+ const winston_1 = tslib_1.__importDefault(require("winston"));
11
+ /**
12
+ * Custom colors for the logger
13
+ */
14
+ const customColors = {
15
+ info: 'blue',
16
+ error: 'red',
17
+ };
18
+ winston_1.default.addColors(customColors);
19
+ /**
20
+ * Logger configuration
21
+ */
22
+ exports.logger = winston_1.default.createLogger({
23
+ level: 'info',
24
+ format: winston_1.default.format.combine(winston_1.default.format.colorize({ all: true }), winston_1.default.format.timestamp(), winston_1.default.format.printf(({ timestamp, level, message }) => {
25
+ return `${timestamp} [${level}]: ${message}`;
26
+ })),
27
+ transports: [
28
+ new winston_1.default.transports.Console(),
29
+ // If you want to log to a file uncomment below line
30
+ // new winston.transports.File({ filename: 'logs/info.log', level: 'info' }),
31
+ ],
32
+ });
33
+ /**
34
+ * CustomLogger class that implements the Reporter interface from Playwright
35
+ */
36
+ class CustomLogger {
37
+ /**
38
+ * Logs the start of a test case
39
+ * @param {TestCase} test - The test case that is starting
40
+ */
41
+ onTestBegin(test) {
42
+ exports.logger.info(`Test Case Started : ${test.title}`);
43
+ }
44
+ /**
45
+ * Logs the end of a test case
46
+ * @param {TestCase} test - The test case that ended
47
+ * @param {TestResult} result - The result of the test case
48
+ */
49
+ onTestEnd(test, result) {
50
+ if (result.status === 'passed') {
51
+ exports.logger.info(`\x1b[32mTest Case Passed : ${test.title}\x1b[0m`); // Green color
52
+ }
53
+ else if (result.status === 'skipped') {
54
+ exports.logger.info(`\x1b[33mTest Case Skipped : ${test.title}\x1b[0m`); // Yellow color
55
+ }
56
+ else if (result.status === 'failed' && result.error) {
57
+ // Playwright inbuild reporter logs the error
58
+ // logger.error(
59
+ // `Test Case Failed: ${test.title} Error: ${result.error.message}`,
60
+ // );
61
+ }
62
+ }
63
+ /**
64
+ * Logs an error
65
+ * @param {TestError} error - The error
66
+ */
67
+ onError(error) {
68
+ exports.logger.error(error.message);
69
+ }
70
+ }
71
+ exports.default = CustomLogger;
72
+ //# sourceMappingURL=custom-logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-logger.js","sourceRoot":"","sources":["../../../src/vasu-playwright-lib/setup/custom-logger.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAGH,8DAA8B;AAE9B;;GAEG;AACH,MAAM,YAAY,GAAG;IACnB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,KAAK;CACb,CAAC;AACF,iBAAO,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;AAEhC;;GAEG;AACU,QAAA,MAAM,GAAG,iBAAO,CAAC,YAAY,CAAC;IACzC,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,iBAAO,CAAC,MAAM,CAAC,OAAO,CAC5B,iBAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EACtC,iBAAO,CAAC,MAAM,CAAC,SAAS,EAAE,EAC1B,iBAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;QACtD,OAAO,GAAG,SAAS,KAAK,KAAK,MAAM,OAAO,EAAE,CAAC;IAC/C,CAAC,CAAC,CACH;IACD,UAAU,EAAE;QACV,IAAI,iBAAO,CAAC,UAAU,CAAC,OAAO,EAAE;QAChC,oDAAoD;QACpD,6EAA6E;KAC9E;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,MAAqB,YAAY;IAC/B;;;OAGG;IACH,WAAW,CAAC,IAAc;QACxB,cAAM,CAAC,IAAI,CAAC,uBAAuB,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IACnD,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,IAAc,EAAE,MAAkB;QAC1C,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE;YAC9B,cAAM,CAAC,IAAI,CAAC,8BAA8B,IAAI,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc;SAC/E;aAAM,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE;YACtC,cAAM,CAAC,IAAI,CAAC,+BAA+B,IAAI,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,eAAe;SACjF;aAAM,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,EAAE;YACrD,6CAA6C;YAC7C,gBAAgB;YAChB,sEAAsE;YACtE,KAAK;SACN;IACH,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,KAAgB;QACtB,cAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;CACF;AAlCD,+BAkCC"}
@@ -0,0 +1,3 @@
1
+ export * from './custom-logger';
2
+ export * from './page-setup';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vasu-playwright-lib/setup/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./custom-logger"), exports);
5
+ tslib_1.__exportStar(require("./page-setup"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/vasu-playwright-lib/setup/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,uDAA6B"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * page-setup.ts: This module is responsible for setting up the initial state of a page before each test.
3
+ * It includes a hook that runs before each test, setting the page context. By centralizing these setup operations,
4
+ * it ensures a consistent starting point for each test, improving test reliability. It also exports a base test object
5
+ * with a beforeEach hook already set up. This can be used to define tests with the page context set up.
6
+ */
7
+ /**
8
+ * The base test object with a beforeEach hook already set up.
9
+ * This can be used to define tests with the page context set up.
10
+ */
11
+ export declare const test: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
12
+ //# sourceMappingURL=page-setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-setup.d.ts","sourceRoot":"","sources":["../../../src/vasu-playwright-lib/setup/page-setup.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH;;;GAGG;AACH,eAAO,MAAM,IAAI,6OAAW,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * page-setup.ts: This module is responsible for setting up the initial state of a page before each test.
4
+ * It includes a hook that runs before each test, setting the page context. By centralizing these setup operations,
5
+ * it ensures a consistent starting point for each test, improving test reliability. It also exports a base test object
6
+ * with a beforeEach hook already set up. This can be used to define tests with the page context set up.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.test = void 0;
10
+ const test_1 = require("@playwright/test");
11
+ const page_utils_1 = require("../utils/page-utils");
12
+ /**
13
+ * A hook that runs before each test, setting the page context.
14
+ * @param {Page} page - The page context provided by Playwright.
15
+ */
16
+ test_1.test.beforeEach(({ page }) => {
17
+ (0, page_utils_1.setPage)(page);
18
+ });
19
+ /**
20
+ * The base test object with a beforeEach hook already set up.
21
+ * This can be used to define tests with the page context set up.
22
+ */
23
+ exports.test = test_1.test;
24
+ //# sourceMappingURL=page-setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-setup.js","sourceRoot":"","sources":["../../../src/vasu-playwright-lib/setup/page-setup.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAA0D;AAC1D,oDAA8C;AAE9C;;;GAGG;AACH,WAAQ,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,EAAkB,EAAE,EAAE;IAC/C,IAAA,oBAAO,EAAC,IAAI,CAAC,CAAC;AAChB,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,IAAI,GAAG,WAAQ,CAAC"}
@@ -0,0 +1,170 @@
1
+ /**
2
+ * AssertUtils.ts: This module contains utility functions for assertions in tests.
3
+ * All expect assertions will dynamically wait until either the expect timeout specified in the
4
+ * playwright.config is reached or the condition becomes true.
5
+ * @module AssertUtils
6
+ */
7
+ import { Locator, TestInfo } from '@playwright/test';
8
+ import { ExpectOptions, ExpectTextOptions } from '../types/optional-parameter-types';
9
+ /**
10
+ * Use this function to assert all the soft assertions.
11
+ * @param {TestInfo} testInfo - The TestInfo object containing the test's information.
12
+ */
13
+ export declare function assertAllSoftAssertions(testInfo: TestInfo): void;
14
+ /**
15
+ * 1. Locator Assertions: This section contains functions that perform assertions on specific locators.
16
+ * These functions check for various conditions such as visibility, presence in the DOM, text content, etc.
17
+ */
18
+ /**
19
+ * Asserts that the given element is not present in the DOM or is Hidden.
20
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
21
+ * @param {ExpectOptions} options - The options to pass to the expect function.
22
+ */
23
+ export declare function expectElementToBeHidden(input: string | Locator, options?: ExpectOptions): Promise<void>;
24
+ /**
25
+ * Asserts that the given element is present in the DOM and visible.
26
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
27
+ * @param {ExpectOptions} options - The options to pass to the expect function.
28
+ */
29
+ export declare function expectElementToBeVisible(input: string | Locator, options?: ExpectOptions): Promise<void>;
30
+ /**
31
+ * Asserts that the given element is present in the DOM.
32
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
33
+ * @param {ExpectOptions} options - The options to pass to the expect function.
34
+ */
35
+ export declare function expectElementToBeAttached(input: string | Locator, options?: ExpectOptions): Promise<void>;
36
+ /**
37
+ * Asserts that the given element is present in the DOM and visible in the viewport of the page.
38
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
39
+ * @param {ExpectOptions} options - The options to pass to the expect function.
40
+ */
41
+ export declare function expectElementToBeInViewport(input: string | Locator, options?: ExpectOptions): Promise<void>;
42
+ /**
43
+ * Asserts that the given element is checked.
44
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
45
+ * @param {ExpectOptions} options - The options to pass to the expect function.
46
+ */
47
+ export declare function expectElementToBeChecked(input: string | Locator, options?: ExpectOptions): Promise<void>;
48
+ /**
49
+ * Asserts that the given element is not checked.
50
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
51
+ * @param {ExpectOptions} options - The options to pass to the expect function.
52
+ */
53
+ export declare function expectElementNotToBeChecked(input: string | Locator, options?: ExpectOptions): Promise<void>;
54
+ /**
55
+ * Asserts that the given element is disabled.
56
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
57
+ * @param {ExpectOptions} options - The options to pass to the expect function.
58
+ */
59
+ export declare function expectElementToBeDisabled(input: string | Locator, options?: ExpectOptions): Promise<void>;
60
+ /**
61
+ * Asserts that the given element is enabled.
62
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
63
+ * @param {ExpectOptions} options - The options to pass to the expect function.
64
+ */
65
+ export declare function expectElementToBeEnabled(input: string | Locator, options?: ExpectOptions): Promise<void>;
66
+ /**
67
+ * Asserts that the given element is editable.
68
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
69
+ * @param {ExpectOptions} options - The options to pass to the expect function.
70
+ */
71
+ export declare function expectElementToBeEditable(input: string | Locator, options?: ExpectOptions): Promise<void>;
72
+ /**
73
+ * Asserts that the element equals the provided string or string array or regular expression.
74
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the text to assert.
75
+ * @param {string | string[] | RegExp} text - The string, string array or regular expression to match against the element's text.
76
+ * @param {ExpectOptions & ExpectTextOptions} options - The options to pass to the expect function.
77
+ */
78
+ export declare function expectElementToHaveText(input: string | Locator, text: string | RegExp | Array<string | RegExp>, options?: ExpectOptions & ExpectTextOptions): Promise<void>;
79
+ /**
80
+ * Asserts that the element does not equal the provided string or string array or regular expression.
81
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the text to assert.
82
+ * @param {string | string[] | RegExp} text - The string, string array or regular expression to match against the element's text.
83
+ * @param {ExpectOptions & ExpectTextOptions} options - The options to pass to the expect function.
84
+ */
85
+ export declare function expectElementNotToHaveText(input: string | Locator, text: string | RegExp | Array<string | RegExp>, options?: ExpectOptions & ExpectTextOptions): Promise<void>;
86
+ /**
87
+ * Asserts that the element contains the provided string or string array or regular expression.
88
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the text to assert.
89
+ * @param {string | string[] | RegExp} text - The string, string array or regular expression to match against the element's text.
90
+ * @param {ExpectOptions & ExpectTextOptions} options - The options to pass to the expect function.
91
+ */
92
+ export declare function expectElementToContainText(input: string | Locator, text: string | RegExp | Array<string | RegExp>, options?: ExpectOptions & ExpectTextOptions): Promise<void>;
93
+ /**
94
+ * Asserts that the element does not contain the provided string or string array or regular expression.
95
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the text to assert.
96
+ * @param {string | string[] | RegExp} text - The string, string array or regular expression to match against the element's text.
97
+ * @param {ExpectOptions & ExpectTextOptions} options - The options to pass to the expect function.
98
+ */
99
+ export declare function expectElementNotToContainText(input: string | Locator, text: string | RegExp | Array<string | RegExp>, options?: ExpectOptions & ExpectTextOptions): Promise<void>;
100
+ /**
101
+ * Asserts that the given element points to an input text box with the given text or Regex.
102
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the input value to assert.
103
+ * @param {string | RegExp} text - The string or regular expression to match against the element's value.
104
+ * @param {ExpectOptions} options - The options to pass to the expect function.
105
+ */
106
+ export declare function expectElementToHaveValue(input: string | Locator, text: string | RegExp, options?: ExpectOptions): Promise<void>;
107
+ /**
108
+ * Asserts that the given element points to a multi-select/combobox (i.e. a select with the multiple attribute) and the specified values are selected.
109
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the input value to assert.
110
+ * @param {Array<string | RegExp>} text - The array of strings or regular expressions to match against the element's values.
111
+ * @param {ExpectOptions} options - The options to pass to the expect function.
112
+ */
113
+ export declare function expectElementToHaveValues(input: string | Locator, text: Array<string | RegExp>, options?: ExpectOptions): Promise<void>;
114
+ /**
115
+ * Asserts that the given element points to an empty editable element or to a DOM node that has no text.
116
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the input value to assert.
117
+ * @param {ExpectOptions} options - The options to pass to the expect function.
118
+ */
119
+ export declare function expectElementValueToBeEmpty(input: string | Locator, options?: ExpectOptions): Promise<void>;
120
+ /**
121
+ * Asserts that the given element points to a non-empty editable element or to a DOM node that has text.
122
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the input value to assert.
123
+ * @param {ExpectOptions} options - The options to pass to the expect function.
124
+ */
125
+ export declare function expectElementValueNotToBeEmpty(input: string | Locator, options?: ExpectOptions): Promise<void>;
126
+ /**
127
+ * Asserts that an element has an attribute with the given value.
128
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
129
+ * @param {string} attribute - The attribute to check for.
130
+ * @param {string | RegExp} value - The value to match against the attribute.
131
+ * @param {ExpectOptions} options - The options to pass to the expect function.
132
+ */
133
+ export declare function expectElementToHaveAttribute(input: string | Locator, attribute: string, value: string | RegExp, options?: ExpectOptions): Promise<void>;
134
+ /**
135
+ * Asserts that an element has an attribute which contains the given value.
136
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
137
+ * @param {string} attribute - The attribute to check for.
138
+ * @param {string | RegExp} value - The value to match against the attribute.
139
+ * @param {ExpectOptions} options - The options to pass to the expect function.
140
+ */
141
+ export declare function expectElementToContainAttribute(input: string | Locator, attribute: string, value: string | RegExp, options?: ExpectOptions): Promise<void>;
142
+ /**
143
+ * Asserts that the given element has the specified count.
144
+ * @param {string | Locator} input - Either a string (selector) or a Locator object to get the element count.
145
+ * @param {number} count - The count to match against the element's count.
146
+ * @param {ExpectOptions} options - The options to pass to the expect function.
147
+ */
148
+ export declare function expectElementToHaveCount(input: string | Locator, count: number, options?: ExpectOptions): Promise<void>;
149
+ /**
150
+ * 2. Page Assertions: This section contains functions that perform assertions on the entire page.
151
+ * These functions check for conditions such as URL, title, etc.
152
+ */
153
+ /**
154
+ * Asserts that the current page URL matches exactly the provided URL or regular expression.
155
+ * @param {string | RegExp} urlOrRegExp - The URL or regular expression to match against the current page URL.
156
+ */
157
+ export declare function expectPageToHaveURL(urlOrRegExp: string | RegExp, options?: ExpectOptions): Promise<void>;
158
+ /**
159
+ * Asserts that the current page URL contains the provided URL.
160
+ * @param {string } url - The URL to match against the current page URL.
161
+ */
162
+ export declare function expectPageToContainURL(url: string, options?: ExpectOptions): Promise<void>;
163
+ /**
164
+ * This method will be used for future stories validations Asserts that the current page Title
165
+ * matches exactly the provided title or regular expression.
166
+ * @param {string | RegExp} titleOrRegExp - The title or regular expression to match against the current page title.
167
+ * @param {ExpectOptions} options - The options to pass to the expect function.
168
+ */
169
+ export declare function expectPageToHaveTitle(titleOrRegExp: string | RegExp, options?: ExpectOptions): Promise<void>;
170
+ //# sourceM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,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;;GAGG;AAEH;;;GAGG;AACH,wBAAsB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAG9G;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAGhG;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAGlH"}
@@ -0,0 +1,335 @@
1
+ "use strict";
2
+ /**
3
+ * AssertUtils.ts: This module contains utility functions for assertions in tests.
4
+ * All expect assertions will dynamically wait until either the expect timeout specified in the
5
+ * playwright.config is reached or the condition becomes true.
6
+ * @module AssertUtils
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.expectPageToHaveTitle = exports.expectPageToContainURL = exports.expectPageToHaveURL = exports.expectElementToHaveCount = exports.expectElementToContainAttribute = exports.expectElementToHaveAttribute = exports.expectElementValueNotToBeEmpty = exports.expectElementValueToBeEmpty = exports.expectElementToHaveValues = exports.expectElementToHaveValue = exports.expectElementNotToContainText = exports.expectElementToContainText = exports.expectElementNotToHaveText = exports.expectElementToHaveText = exports.expectElementToBeEditable = exports.expectElementToBeEnabled = exports.expectElementToBeDisabled = exports.expectElementNotToBeChecked = exports.expectElementToBeChecked = exports.expectElementToBeInViewport = exports.expectElementToBeAttached = exports.expectElementToBeVisible = exports.expectElementToBeHidden = exports.assertAllSoftAssertions = void 0;
10
+ const tslib_1 = require("tslib");
11
+ const test_1 = require("@playwright/test");
12
+ const locator_utils_1 = require("./locator-utils");
13
+ const page_utils_1 = require("./page-utils");
14
+ /**
15
+ * Returns an Expect object configured with the given soft option.
16
+ * @param {SoftOption} options - The soft option to configure the Expect object with.
17
+ * @returns {Expect} - The configured Expect object.
18
+ */
19
+ function getExpectWithSoftOption(options) {
20
+ return test_1.expect.configure({ soft: options === null || options === void 0 ? void 0 : options.soft });
21
+ }
22
+ /**
23
+ * Returns a Locator object and an Expect object configured with the given soft option.
24
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
25
+ * @param {SoftOption} options - The soft option to configure the Expect object with.
26
+ * @returns {Object} - An object containing the Locator and Expect objects.
27
+ */
28
+ function getLocatorAndAssert(input, options) {
29
+ const locator = (0, locator_utils_1.getLocator)(input);
30
+ const assert = getExpectWithSoftOption(options);
31
+ return { locator, assert };
32
+ }
33
+ /**
34
+ * Use this function to assert all the soft assertions.
35
+ * @param {TestInfo} testInfo - The TestInfo object containing the test's information.
36
+ */
37
+ function assertAllSoftAssertions(testInfo) {
38
+ (0, test_1.expect)(testInfo.errors).toHaveLength(0);
39
+ }
40
+ exports.assertAllSoftAssertions = assertAllSoftAssertions;
41
+ /**
42
+ * 1. Locator Assertions: This section contains functions that perform assertions on specific locators.
43
+ * These functions check for various conditions such as visibility, presence in the DOM, text content, etc.
44
+ */
45
+ /**
46
+ * Asserts that the given element is not present in the DOM or is Hidden.
47
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
48
+ * @param {ExpectOptions} options - The options to pass to the expect function.
49
+ */
50
+ function expectElementToBeHidden(input, options) {
51
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
52
+ const { locator, assert } = getLocatorAndAssert(input, options);
53
+ yield assert(locator, options).toBeHidden(options);
54
+ });
55
+ }
56
+ exports.expectElementToBeHidden = expectElementToBeHidden;
57
+ /**
58
+ * Asserts that the given element is present in the DOM and visible.
59
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
60
+ * @param {ExpectOptions} options - The options to pass to the expect function.
61
+ */
62
+ function expectElementToBeVisible(input, options) {
63
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
64
+ const { locator, assert } = getLocatorAndAssert(input, options);
65
+ yield assert(locator, options).toBeVisible(options);
66
+ });
67
+ }
68
+ exports.expectElementToBeVisible = expectElementToBeVisible;
69
+ /**
70
+ * Asserts that the given element is present in the DOM.
71
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
72
+ * @param {ExpectOptions} options - The options to pass to the expect function.
73
+ */
74
+ function expectElementToBeAttached(input, options) {
75
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
76
+ const { locator, assert } = getLocatorAndAssert(input, options);
77
+ yield assert(locator, options).toBeAttached(options);
78
+ });
79
+ }
80
+ exports.expectElementToBeAttached = expectElementToBeAttached;
81
+ /**
82
+ * Asserts that the given element is present in the DOM and visible in the viewport of the page.
83
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
84
+ * @param {ExpectOptions} options - The options to pass to the expect function.
85
+ */
86
+ function expectElementToBeInViewport(input, options) {
87
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
88
+ const { locator, assert } = getLocatorAndAssert(input, options);
89
+ yield assert(locator, options).toBeInViewport(options);
90
+ });
91
+ }
92
+ exports.expectElementToBeInViewport = expectElementToBeInViewport;
93
+ /**
94
+ * Asserts that the given element is checked.
95
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
96
+ * @param {ExpectOptions} options - The options to pass to the expect function.
97
+ */
98
+ function expectElementToBeChecked(input, options) {
99
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
100
+ const { locator, assert } = getLocatorAndAssert(input, options);
101
+ yield assert(locator, options).toBeChecked(options);
102
+ });
103
+ }
104
+ exports.expectElementToBeChecked = expectElementToBeChecked;
105
+ /**
106
+ * Asserts that the given element is not checked.
107
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
108
+ * @param {ExpectOptions} options - The options to pass to the expect function.
109
+ */
110
+ function expectElementNotToBeChecked(input, options) {
111
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
112
+ const { locator, assert } = getLocatorAndAssert(input, options);
113
+ yield assert(locator, options).not.toBeChecked(options);
114
+ });
115
+ }
116
+ exports.expectElementNotToBeChecked = expectElementNotToBeChecked;
117
+ /**
118
+ * Asserts that the given element is disabled.
119
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
120
+ * @param {ExpectOptions} options - The options to pass to the expect function.
121
+ */
122
+ function expectElementToBeDisabled(input, options) {
123
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
124
+ const { locator, assert } = getLocatorAndAssert(input, options);
125
+ yield assert(locator, options).toBeDisabled(options);
126
+ });
127
+ }
128
+ exports.expectElementToBeDisabled = expectElementToBeDisabled;
129
+ /**
130
+ * Asserts that the given element is enabled.
131
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
132
+ * @param {ExpectOptions} options - The options to pass to the expect function.
133
+ */
134
+ function expectElementToBeEnabled(input, options) {
135
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
136
+ const { locator, assert } = getLocatorAndAssert(input, options);
137
+ yield assert(locator, options).toBeEnabled(options);
138
+ });
139
+ }
140
+ exports.expectElementToBeEnabled = expectElementToBeEnabled;
141
+ /**
142
+ * Asserts that the given element is editable.
143
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
144
+ * @param {ExpectOptions} options - The options to pass to the expect function.
145
+ */
146
+ function expectElementToBeEditable(input, options) {
147
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
148
+ const { locator, assert } = getLocatorAndAssert(input, options);
149
+ yield assert(locator, options).toBeEditable(options);
150
+ });
151
+ }
152
+ exports.expectElementToBeEditable = expectElementToBeEditable;
153
+ /**
154
+ * Asserts that the element equals the provided string or string array or regular expression.
155
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the text to assert.
156
+ * @param {string | string[] | RegExp} text - The string, string array or regular expression to match against the element's text.
157
+ * @param {ExpectOptions & ExpectTextOptions} options - The options to pass to the expect function.
158
+ */
159
+ function expectElementToHaveText(input, text, options) {
160
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
161
+ const { locator, assert } = getLocatorAndAssert(input, options);
162
+ yield assert(locator, options).toHaveText(text, options);
163
+ });
164
+ }
165
+ exports.expectElementToHaveText = expectElementToHaveText;
166
+ /**
167
+ * Asserts that the element does not equal the provided string or string array or regular expression.
168
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the text to assert.
169
+ * @param {string | string[] | RegExp} text - The string, string array or regular expression to match against the element's text.
170
+ * @param {ExpectOptions & ExpectTextOptions} options - The options to pass to the expect function.
171
+ */
172
+ function expectElementNotToHaveText(input, text, options) {
173
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
174
+ const { locator, assert } = getLocatorAndAssert(input, options);
175
+ yield assert(locator, options).not.toHaveText(text, options);
176
+ });
177
+ }
178
+ exports.expectElementNotToHaveText = expectElementNotToHaveText;
179
+ /**
180
+ * Asserts that the element contains the provided string or string array or regular expression.
181
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the text to assert.
182
+ * @param {string | string[] | RegExp} text - The string, string array or regular expression to match against the element's text.
183
+ * @param {ExpectOptions & ExpectTextOptions} options - The options to pass to the expect function.
184
+ */
185
+ function expectElementToContainText(input, text, options) {
186
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
187
+ const { locator, assert } = getLocatorAndAssert(input, options);
188
+ yield assert(locator, options).toContainText(text, options);
189
+ });
190
+ }
191
+ exports.expectElementToContainText = expectElementToContainText;
192
+ /**
193
+ * Asserts that the element does not contain the provided string or string array or regular expression.
194
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the text to assert.
195
+ * @param {string | string[] | RegExp} text - The string, string array or regular expression to match against the element's text.
196
+ * @param {ExpectOptions & ExpectTextOptions} options - The options to pass to the expect function.
197
+ */
198
+ function expectElementNotToContainText(input, text, options) {
199
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
200
+ const { locator, assert } = getLocatorAndAssert(input, options);
201
+ yield assert(locator, options).not.toContainText(text, options);
202
+ });
203
+ }
204
+ exports.expectElementNotToContainText = expectElementNotToContainText;
205
+ /**
206
+ * Asserts that the given element points to an input text box with the given text or Regex.
207
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the input value to assert.
208
+ * @param {string | RegExp} text - The string or regular expression to match against the element's value.
209
+ * @param {ExpectOptions} options - The options to pass to the expect function.
210
+ */
211
+ function expectElementToHaveValue(input, text, options) {
212
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
213
+ const { locator, assert } = getLocatorAndAssert(input, options);
214
+ yield assert(locator, options).toHaveValue(text, options);
215
+ });
216
+ }
217
+ exports.expectElementToHaveValue = expectElementToHaveValue;
218
+ /**
219
+ * Asserts that the given element points to a multi-select/combobox (i.e. a select with the multiple attribute) and the specified values are selected.
220
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the input value to assert.
221
+ * @param {Array<string | RegExp>} text - The array of strings or regular expressions to match against the element's values.
222
+ * @param {ExpectOptions} options - The options to pass to the expect function.
223
+ */
224
+ function expectElementToHaveValues(input, text, options) {
225
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
226
+ const { locator, assert } = getLocatorAndAssert(input, options);
227
+ yield assert(locator, options).toHaveValues(text, options);
228
+ });
229
+ }
230
+ exports.expectElementToHaveValues = expectElementToHaveValues;
231
+ /**
232
+ * Asserts that the given element points to an empty editable element or to a DOM node that has no text.
233
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the input value to assert.
234
+ * @param {ExpectOptions} options - The options to pass to the expect function.
235
+ */
236
+ function expectElementValueToBeEmpty(input, options) {
237
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
238
+ const { locator, assert } = getLocatorAndAssert(input, options);
239
+ yield assert(locator, options).toBeEmpty(options);
240
+ });
241
+ }
242
+ exports.expectElementValueToBeEmpty = expectElementValueToBeEmpty;
243
+ /**
244
+ * Asserts that the given element points to a non-empty editable element or to a DOM node that has text.
245
+ * @param {string | Locator} input - Either a string (selector) or a Locator object from where we retrieve the input value to assert.
246
+ * @param {ExpectOptions} options - The options to pass to the expect function.
247
+ */
248
+ function expectElementValueNotToBeEmpty(input, options) {
249
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
250
+ const { locator, assert } = getLocatorAndAssert(input, options);
251
+ yield assert(locator, options).not.toBeEmpty(options);
252
+ });
253
+ }
254
+ exports.expectElementValueNotToBeEmpty = expectElementValueNotToBeEmpty;
255
+ /**
256
+ * Asserts that an element has an attribute with the given value.
257
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
258
+ * @param {string} attribute - The attribute to check for.
259
+ * @param {string | RegExp} value - The value to match against the attribute.
260
+ * @param {ExpectOptions} options - The options to pass to the expect function.
261
+ */
262
+ function expectElementToHaveAttribute(input, attribute, value, options) {
263
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
264
+ const { locator, assert } = getLocatorAndAssert(input, options);
265
+ yield assert(locator, options).toHaveAttribute(attribute, value, options);
266
+ });
267
+ }
268
+ exports.expectElementToHaveAttribute = expectElementToHaveAttribute;
269
+ /**
270
+ * Asserts that an element has an attribute which contains the given value.
271
+ * @param {string | Locator} input - Either a string (selector) or a Locator object.
272
+ * @param {string} attribute - The attribute to check for.
273
+ * @param {string | RegExp} value - The value to match against the attribute.
274
+ * @param {ExpectOptions} options - The options to pass to the expect function.
275
+ */
276
+ function expectElementToContainAttribute(input, attribute, value, options) {
277
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
278
+ const { locator, assert } = getLocatorAndAssert(input, options);
279
+ yield assert(locator, options).toHaveAttribute(attribute, new RegExp(value), options);
280
+ });
281
+ }
282
+ exports.expectElementToContainAttribute = expectElementToContainAttribute;
283
+ /**
284
+ * Asserts that the given element has the specified count.
285
+ * @param {string | Locator} input - Either a string (selector) or a Locator object to get the element count.
286
+ * @param {number} count - The count to match against the element's count.
287
+ * @param {ExpectOptions} options - The options to pass to the expect function.
288
+ */
289
+ function expectElementToHaveCount(input, count, options) {
290
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
291
+ const { locator, assert } = getLocatorAndAssert(input, options);
292
+ yield assert(locator, options).toHaveCount(count, options);
293
+ });
294
+ }
295
+ exports.expectElementToHaveCount = expectElementToHaveCount;
296
+ /**
297
+ * 2. Page Assertions: This section contains functions that perform assertions on the entire page.
298
+ * These functions check for conditions such as URL, title, etc.
299
+ */
300
+ /**
301
+ * Asserts that the current page URL matches exactly the provided URL or regular expression.
302
+ * @param {string | RegExp} urlOrRegExp - The URL or regular expression to match against the current page URL.
303
+ */
304
+ function expectPageToHaveURL(urlOrRegExp, options) {
305
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
306
+ const assert = getExpectWithSoftOption(options);
307
+ yield assert((0, page_utils_1.getPage)()).toHaveURL(urlOrRegExp, options);
308
+ });
309
+ }
310
+ exports.expectPageToHaveURL = expectPageToHaveURL;
311
+ /**
312
+ * Asserts that the current page URL contains the provided URL.
313
+ * @param {string } url - The URL to match against the current page URL.
314
+ */
315
+ function expectPageToContainURL(url, options) {
316
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
317
+ const assert = getExpectWithSoftOption(options);
318
+ yield assert((0, page_utils_1.getPage)()).toHaveURL(new RegExp(url), options);
319
+ });
320
+ }
321
+ exports.expectPageToContainURL = expectPageToContainURL;
322
+ /**
323
+ * This method will be used for future stories validations Asserts that the current page Title
324
+ * matches exactly the provided title or regular expression.
325
+ * @param {string | RegExp} titleOrRegExp - The title or regular expression to match against the current page title.
326
+ * @param {ExpectOptions} options - The options to pass to the expect function.
327
+ */
328
+ function expectPageToHaveTitle(titleOrRegExp, options) {
329
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
330
+ const assert = getExpectWithSoftOption(options);
331
+ yield assert((0, page_utils_1.getPage)()).toHaveTitle(titleOrRegExp, options);
332
+ });
333
+ }
334
+ exports.expectPageToHaveTitle = expectPageToHaveTitle;
335
+ //# sourceMappingURL=assert-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3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
2
3
  export * from './element-utils';
3
4
  export * from './locator-utils';
4
5
  export * from './page-utils';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vasu-playwright-lib/utils/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAC;AAG/B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,iBAAiB,CAAC;AAGhC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vasu-playwright-lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC"}
@@ -1,13 +1,9 @@
1
1
  "use strict";
2
- // utils/index.ts
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  const tslib_1 = require("tslib");
5
- // Export everything from ActionUtils.ts
6
4
  tslib_1.__exportStar(require("./action-utils"), exports);
7
- // Export everything from ElementUtils.ts
5
+ tslib_1.__exportStar(require("./assert-utils"), exports);
8
6
  tslib_1.__exportStar(require("./element-utils"), exports);
9
- // Export everything from LocatorUtils.ts
10
7
  tslib_1.__exportStar(require("./locator-utils"), exports);
11
- // Export everything from PageUtils.ts
12
8
  tslib_1.__exportStar(require("./page-utils"), exports);
13
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/vasu-playwright-lib/utils/index.ts"],"names":[],"mappings":";AAAA,iBAAiB;;;AAEjB,wCAAwC;AACxC,yDAA+B;AAE/B,yCAAyC;AACzC,0DAAgC;AAEhC,yCAAyC;AACzC,0DAAgC;AAEhC,sCAAsC;AACtC,uDAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/vasu-playwright-lib/utils/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,yDAA+B;AAC/B,0DAAgC;AAChC,0DAAgC;AAChC,uDAA6B"}
package/package.json CHANGED
@@ -1,16 +1,18 @@
1
1
  {
2
2
  "name": "vasu-playwright-utils",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "Playwright Typescript Library with reusable utilities",
5
5
  "main": "./dist/vasu-playwright-lib/index.js",
6
6
  "types": "./dist/vasu-playwright-lib/index.d.ts",
7
7
  "exports": {
8
8
  ".": "./dist/vasu-playwright-lib/index.js",
9
9
  "./action-utils": "./dist/vasu-playwright-lib/utils/action-utils.js",
10
+ "./assert-utils": "./dist/vasu-playwright-lib/utils/assert-utils.js",
10
11
  "./element-utils": "./dist/vasu-playwright-lib/utils/element-utils.js",
11
12
  "./locator-utils": "./dist/vasu-playwright-lib/utils/locator-utils.js",
12
13
  "./page-utils": "./dist/vasu-playwright-lib/utils/page-utils.js",
13
14
  "./constants": "./dist/vasu-playwright-lib/constants/index.js",
15
+ "./setup": "./dist/vasu-playwright-lib/setup/index.js",
14
16
  "./types": "./dist/vasu-playwright-lib/types/optional-parameter-types.js"
15
17
  },
16
18
  "keywords": [
@@ -41,12 +43,14 @@
41
43
  "node": ">=16.0.0"
42
44
  },
43
45
  "peerDependencies": {
44
- "@playwright/test": "^1.37.1"
46
+ "@playwright/test": "^1.37.1",
47
+ "dotenv": "^16.3.1",
48
+ "winston": "^3.10.0"
45
49
  },
46
- "devDependencies": {
47
- "@types/node": "^20.5.1",
48
- "@typescript-eslint/eslint-plugin": "^6.4.0",
49
- "@typescript-eslint/parser": "^6.4.0",
50
+ "dependencies": {
51
+ "@types/node": "^20.5.2",
52
+ "@typescript-eslint/eslint-plugin": "^6.4.1",
53
+ "@typescript-eslint/parser": "^6.4.1",
50
54
  "eslint": "^8.47.0",
51
55
  "eslint-config-prettier": "^9.0.0",
52
56
  "eslint-import-resolver-typescript": "^3.6.0",
@@ -55,7 +59,7 @@
55
59
  "eslint-plugin-playwright": "^0.15.3",
56
60
  "eslint-plugin-prettier": "^5.0.0",
57
61
  "husky": "^8.0.3",
58
- "lint-staged": "^14.0.0",
62
+ "lint-staged": "^14.0.1",
59
63
  "prettier": "^3.0.2",
60
64
  "rimraf": "^5.0.1",
61
65
  "tslib": "^2.6.2",