codeceptjs / codeceptjs/CodeceptJS

seeInField should validate if value equals not contains

Offen
#2,271 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
4.2k
Forks
757
Ø Merge
2 T. 9 Std.
Gemergte PRs (30 T.)
16

Beschreibung

from documentation https://codecept.io/helpers/Puppeteer/#seeinfield

> I.seeInField()
> Checks that the given input field or textarea equals to given value.

#### What are you trying to achieve?
I would like to test if the input value equals the expected value

#### What do you get instead?
it tests if the value is included

> Provide test source code if related

```js
// given username is 'davert'
I.seeInField('Username', 'davert'); // expected true, got true
I.seeInField('Username', 'ert'); // expected false, got true
```

### Details

* CodeceptJS version: 2.5.0
* NodeJS Version: v12.14.1
* Operating System: ubuntu
* puppeteer: 2.1.1

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.