@bigbinary/neeto-playwright-commons 1.4.0 → 1.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.
- package/index.cjs.js +4 -6
- package/index.cjs.js.map +1 -1
- package/index.js +4 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -192,15 +192,13 @@ class CustomCommands {
|
|
|
192
192
|
};
|
|
193
193
|
this.verifySuccessToast = async ({ message, closeAfterVerification = true, }) => {
|
|
194
194
|
if (message) {
|
|
195
|
-
await test.expect(this.page.getByTestId(COMMON_SELECTORS.toastMessage)).
|
|
195
|
+
await test.expect(this.page.getByTestId(COMMON_SELECTORS.toastMessage)).toContainText(message);
|
|
196
196
|
}
|
|
197
197
|
else {
|
|
198
|
-
await test.expect(this.page.locator(COMMON_SELECTORS.toastIcon)).
|
|
199
|
-
closeAfterVerification &&
|
|
200
|
-
(await this.page
|
|
201
|
-
.getByTestId(COMMON_SELECTORS.toastCloseButton)
|
|
202
|
-
.click());
|
|
198
|
+
await test.expect(this.page.locator(COMMON_SELECTORS.toastIcon)).toContainText("👍");
|
|
203
199
|
}
|
|
200
|
+
closeAfterVerification &&
|
|
201
|
+
(await this.page.getByTestId(COMMON_SELECTORS.toastCloseButton).click());
|
|
204
202
|
};
|
|
205
203
|
this.reloadAndWait = async (requestCount) => {
|
|
206
204
|
const reloadRequests = this.interceptMultipleResponses({
|