Skip to content

Commit 27918f9

Browse files
authored
remove redundant step (#26)
Co-authored-by: AlexandrLegchilov <Alexandr_Legchilov@epam.com>
1 parent a19bfe6 commit 27918f9

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/waits.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { When } from '@cucumber/cucumber';
22
import { getValue, getElement, getValueWait, getConditionWait } from './transformers';
3-
import { getValidation } from '@qavajs/validation';
43

54
/**
65
* Wait for element condition
@@ -142,19 +141,3 @@ When(
142141
await wait(getValueFn, expectedValue, config.browser.timeout.page);
143142
}
144143
);
145-
146-
/**
147-
* Verify that text of an alert meets expectation
148-
* @param {string} validationType - validation
149-
* @param {string} value - expected text value
150-
* @example I expect text of alert does not contain 'coffee'
151-
*/
152-
When('I wait until text of alert {playwrightValidation} {string}', async function (validationType: string, expectedValue: string) {
153-
let alertText;
154-
page.once('dialog', async (dialog) => {
155-
alertText = dialog.message();
156-
});
157-
const validation = getValidation(validationType);
158-
validation(alertText, expectedValue);
159-
}
160-
);

0 commit comments

Comments
 (0)