PromucFlow_constructor/app/client/cypress/support/Pages/FakerHelper.ts
Aishwarya-U-R 3b90baf1d8
test: Script updates for flaky fixes (#16289)
* Auto completre fix

* Toast fixes

* Autocomplete js fix

* datatree mutation spec update

* Datatree -added  running api

* rmeoved unused ref

* Deletion time added

* Community issues spec fix

* AssertImportToast() update

* QueryAbort case fix

* Signature fix

* update

* UUID flaky fix

* Pomises spec + toasts updates

* Toasts updates

* ErrorReporting spec fix

* Scrolling mockdb fix

* Bug tests name change for easy identification

* bug spec file name update

* JSfunc fix

* Community issues table load time increase

* AssertContains() reduced wiat time

* AssertContains() update

* timeout added to mysql crud

* AssertContains revert

* AllInputWidget trial fix

* wait until table load ReadTableRowColumnData()

* fix

* testTimeout added

* ReadTableRowColumnData() revert

* path fix

* WaitUntilTableLoad() revert

* COmmunity issues row select fix

* Faker added

* wait time add for multiselect

* Mulipart fix

* Community issues spec fix

* AllInput spec update

* timeout 1 to 3

* update

* update

* EnterJSContext from JSEditor to PropPane ts

* update

* Removed unwanted comments

* fix

* UUID fix
2022-08-27 18:10:11 +05:30

22 lines
488 B
TypeScript

import { faker } from "@faker-js/faker";
type imageTypes = "abstract" | "animals";
export class FakerHelper {
public GetCatImage() {
return faker.image.cats();
}
public GetRandomText(textLength = 10) {
return faker.random.alphaNumeric(textLength, { casing: "upper" });
}
public GetUSPhoneNumber() {
return faker.phone.number("(###) ###-####");
}
public GetRandomNumber(length = 6) {
return faker.random.numeric(length, {allowLeadingZeros: true});
}
}