Tests time out if name of first item in landscape.yml is substring of another item's name
- Dominant language
- JavaScript
- Stars
- 253
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
I recently hit an issue where `yp` fails its tests if the `name:` of the first entry in `landscape.yml` is a substring of a subsequent entry. This is a very tightly scoped issue and the fix is simple, but I'm recording it here for posterity in case someone else runs into the error.
**The issue**
With this very simplified `landscape.yml` excerpt:
```
- item:
name: foo
[snipped]
- item:
name: foobar
```
then `yp` fails:
```
console.info specs/main.spec.js:101
about to open a main landscape page
● Normal browser › Filtering by organization
TimeoutError: Text found "foo"
waiting for function failed: timeout 500ms exceeded
```
**A no-code solution**
This is probably a case of "Doctor, it hurts when I do this..." "Well, don't do that." It can be avoided by reordering `landscape.yml` so that the first `-item` is unique.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.