Skip to content

Commit

Permalink
Merge branch 'next' into infra/typescript-eslint/strict-type-checked
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Nov 4, 2023
2 parents 9f0eb6f + 22003bb commit 74aefea
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 374 deletions.
36 changes: 36 additions & 0 deletions docs/guide/frameworks.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,39 @@ describe('Testing the application', () => {
});
});
```

## Playwright

Integration with [Playwright](https://playwright.dev/) is also easy:

```ts
import { faker } from '@faker-js/faker/locale/en';
import { expect, test } from '@playwright/test';

test.describe('Testing the application', () => {
test('should create an account with username and password', async ({
page,
}) => {
const username = faker.internet.userName();
const password = faker.internet.password();
const email = faker.internet.exampleEmail();

// Visit the webpage and create an account.
await page.goto('https://www.example.com/register');
await page.getByLabel('email').fill(email);
await page.getByLabel('username').fill(username);
await page.getByLabel('password', { exact: true }).fill(password);
await page.getByLabel('confirm password').fill(password);
await page.getByRole('button', { name: 'Register' }).click();

// Now, we try to login with these credentials.
await page.goto('https://www.example.com/login');
await page.getByLabel('email').fill(email);
await page.getByLabel('password').fill(password);
await page.getByRole('button', { name: 'Login' }).click();

// We should have logged in successfully to the dashboard page.
await expect(page).toHaveURL(/.*dashboard/);
});
});
```
2 changes: 0 additions & 2 deletions src/locales/cs_CZ/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
import title from './title';

const person: PersonDefinition = {
female_first_name,
Expand All @@ -32,7 +31,6 @@ const person: PersonDefinition = {
name: name_,
prefix,
suffix,
title,
};

export default person;
91 changes: 0 additions & 91 deletions src/locales/cs_CZ/person/title.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/he/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import male_first_name from './male_first_name';
import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
import title from './title';

const person: PersonDefinition = {
female_first_name,
Expand All @@ -24,7 +23,6 @@ const person: PersonDefinition = {
male_prefix,
name: name_,
prefix,
title,
};

export default person;
91 changes: 0 additions & 91 deletions src/locales/he/person/title.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/pl/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
import sex from './sex';
import title from './title';

const person: PersonDefinition = {
female_first_name,
Expand All @@ -28,7 +27,6 @@ const person: PersonDefinition = {
name: name_,
prefix,
sex,
title,
};

export default person;
91 changes: 0 additions & 91 deletions src/locales/pl/person/title.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/locales/sk/person/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import male_prefix from './male_prefix';
import name_ from './name';
import prefix from './prefix';
import suffix from './suffix';
import title from './title';

const person: PersonDefinition = {
female_first_name,
Expand All @@ -30,7 +29,6 @@ const person: PersonDefinition = {
name: name_,
prefix,
suffix,
title,
};

export default person;
Loading

0 comments on commit 74aefea

Please sign in to comment.