Skip to content

Commit

Permalink
fixing flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowee committed Apr 22, 2024
1 parent 8380ea6 commit 27dc7ab
Show file tree
Hide file tree
Showing 17 changed files with 725 additions and 434 deletions.
59 changes: 59 additions & 0 deletions playwright/data/addresses.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import faker from 'faker';

export type AddressType = {
addressUK: AddressFieldsType;
addressPL: AddressFieldsType;
addressUS: AddressFieldsType;
};

export type AddressFieldsType = {
firstName: string;
lastName: string;
companyName?: string;
phone?: string;
addressLine1: string;
addressLine2?: string;
zip: string;
city: string;
country: string;
countryArea?: string;
};

export const ADDRESS: AddressType = {
addressUS: {
firstName: faker.name.firstName(),
lastName: faker.name.lastName(),
companyName: faker.company.companyName(),
phone: "+12125771133",
addressLine1: "69 W 9th Street",
addressLine2: faker.address.county(),
city: "New York",
zip: "10001",
country: "United States of America",
countryArea: "New York",
},
addressPL: {
firstName: faker.name.firstName(),
lastName: faker.name.lastName(),
companyName: faker.company.companyName(),
phone: "+48225042123",
addressLine1: "Teczowa",
addressLine2: "7",
city: "WROCLAW",
zip: "53-601",
country: "Poland",
countryArea: "",
},
addressUK: {
firstName: faker.name.firstName(),
lastName: faker.name.lastName(),
companyName: faker.company.companyName(),
phone: "+445556667777",
addressLine1: "Albert Street",
addressLine2: "78/2",
city: "Edinburgh",
zip: "EH7 5LR",
country: "United Kingdom",
countryArea: "",
},
};
Loading

0 comments on commit 27dc7ab

Please sign in to comment.