# `PhoenixTest.Credo.NoOpenBrowser`
[🔗](https://github.com/germsvel/phoenix_test/blob/main/lib/phoenix_test/credo/no_open_browser.ex#L2)

## Basics

> #### This check is disabled by default. {: .neutral}
>
> [Learn how to enable it](`e:credo:config_file.html#checks`) via `.credo.exs`.

This check has a base priority of `normal` and works with any version of Elixir.

## Explanation

The `open_browser/1` function is useful during development but should not be
committed in tests as it would open browsers during CI runs, which can cause
unexpected behavior and CI failures.

A Credo check that disallows the use of `open_browser/1` in test code.

## Usage

Add this check to your `.credo.exs` file:

```elixir
%{
  configs: [
    %{
      name: "default",
      requires: ["./deps/phoenix_test/lib/phoenix_test/credo/**/*.ex"],
      checks: [
        {PhoenixTest.Credo.NoOpenBrowser, []}
      ]
    }
  ]
}
```

## Check-Specific Parameters

*There are no specific parameters for this check.*

## General Parameters

Like with all checks, [general params](`e:credo:check_params.html`) can be applied.

Parameters can be configured via the [`.credo.exs` config file](`e:credo:config_file.html`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
