Skip to content

Commit ac2caf7

Browse files
chore: translating readme to english
1 parent fe92cd2 commit ac2caf7

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,69 @@
1-
# Test Automation Facade Pattern
1+
# Test Automation Flow Model Pattern
22

3-
Este projeto é uma suíte de testes automatizados utilizando [Playwright](https://playwright.dev/) para validar fluxos de autenticação e cadastro em uma aplicação web. O projeto adota o **Facade Pattern** para organizar e simplificar a interação com as páginas, tornando os testes mais legíveis, reutilizáveis e de fácil manutenção.
3+
This project is an automated test suite using [Playwright](https://playwright.dev/) to validate authentication and registration flows in a web application. The project adopts the **Flow Model Pattern** to organize and simplify page interactions, making tests more readable, reusable, and easy to maintain.
44

5-
## Contexto
5+
## Context
66

7-
O objetivo deste repositório é demonstrar como estruturar testes automatizados de ponta a ponta (E2E) utilizando o padrão de projeto **Facade**. Esse padrão encapsula operações complexas de páginas em classes de fachada, expondo métodos de alto nível para os testes, sem que eles precisem conhecer detalhes de implementação dos elementos da interface.
7+
The purpose of this repository is to demonstrate how to structure end-to-end (E2E) automated tests using the **Flow Model Pattern**. This pattern encapsulates complex page operations in flow classes, exposing high-level methods for tests without requiring them to know implementation details of the UI elements.
88

9-
## Sobre o Facade Pattern
9+
## About the Flow Model Pattern
1010

11-
O **Facade Pattern** (Padrão Fachada) é utilizado para fornecer uma interface simplificada para um conjunto de interfaces em um subsistema. No contexto deste projeto, cada fluxo de negócio (ex: autenticação, cadastro) possui uma fachada (`AuthFacade`, `RegisterFacade`) que abstrai as interações com os elementos da página, facilitando a escrita e manutenção dos testes.
11+
The **Flow Model Pattern** is used to provide a simplified interface for a set of operations in a subsystem. In the context of this project, each business flow (e.g., authentication, registration) has a flow model (`AuthFlow`, `RegisterFlow`) that abstracts interactions with page elements, making test writing and maintenance easier.
1212

13-
**Exemplo:**
13+
**Example:**
1414
```typescript
15-
const register = new RegisterFacade(page);
16-
await register.registerAs("email@teste.com", "Nome", "senha", "senha");
15+
const register = new RegisterFlow(page);
16+
await register.registerAs("email@test.com", "Name", "password", "password");
1717
```
1818

19-
## Estrutura do Projeto
19+
## Project Structure
2020

21-
- `ui/pages/`: Page Objects com os elementos e ações de cada página.
22-
- `ui/facade/`: Facades que encapsulam fluxos completos de negócio.
23-
- `tests/`: Arquivos de teste automatizados.
24-
- `playwright.config.ts`: Configuração do Playwright (incluindo baseURL).
21+
- `ui/pages/`: Page Objects with elements and actions for each page.
22+
- `ui/flows/`: Flow models that encapsulate complete business flows.
23+
- `tests/`: Automated test files.
24+
- `playwright.config.ts`: Playwright configuration (including baseURL).
2525

26-
## Comandos Essenciais
26+
## Essential Commands
2727

28-
- **Executar todos os testes:**
28+
- **Run all tests:**
2929
```
3030
npx playwright test
3131
```
3232

33-
- **Executar testes em modo UI interativo:**
33+
- **Run tests in interactive UI mode:**
3434
```
3535
npx playwright test --ui
3636
```
3737

38-
- **Executar testes em um navegador específico:**
38+
- **Run tests in a specific browser:**
3939
```
4040
npx playwright test --project=chromium
4141
```
4242

43-
- **Executar um arquivo de teste específico:**
43+
- **Run a specific test file:**
4444
```
4545
npx playwright test tests/login.test.ts
4646
```
4747

48-
- **Executar em modo debug:**
48+
- **Run in debug mode:**
4949
```
5050
npx playwright test --debug
5151
```
5252

53-
- **Gerar testes automaticamente com Codegen:**
53+
- **Generate tests automatically with Codegen:**
5454
```
5555
npx playwright codegen
5656
```
5757

58-
## Requisitos
58+
## Requirements
5959

60-
- Node.js instalado
61-
- Dependências instaladas com:
60+
- Node.js installed
61+
- Dependencies installed with:
6262
```
6363
npm install
6464
```
6565

66-
## Observações
66+
## Notes
6767

68-
- O projeto utiliza `baseURL` configurado no `playwright.config.ts`, permitindo o uso de caminhos relativos nos testes.
69-
- Como a aplicação de exemplo não possui banco de dados persistente, os dados criados existem apenas durante a sessão.
68+
- The project uses `baseURL` configured in `playwright.config.ts`, allowing the use of relative paths in tests.
69+
- As the sample application does not have a persistent database, created data exists only during the session.

0 commit comments

Comments
 (0)