codeceptjs / codeceptjs/CodeceptJS

seeInField should validate if value equals not contains

未关闭
#2,271 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
4.2k
派生
757
平均合并
2 天 9 小时
30 天内合并 PR
16

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。