# clearAndType

**Kind:** Function

**Source:** [`atloria-monorepo/apps/web-e2e/src/utils/test-helpers.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web-e2e/src/utils/test-helpers.ts#L30)

Clear input field and type new value

## Signature

```ts
async function clearAndType(locator: Locator, text: string): Promise<void>
```

## Parameters

| Name | Type |
|---|---|
| `locator` | `Locator` |
| `text` | `string` |

**Returns:** `Promise<void>`
