https://buildserver.labs.intellij.net/viewLog.html?buildId=39926354&buildTypeId=YTDEV_WebDriver_JarKotlinSmoke
STR:
- Run
/gradlew startLocalYouTrack
- Open
/newIssue
- Select the project
"BildDesk"
- Create 5 issues with the word "Do"
- When creat 6th issue open "Similar Issues"
ER: 5 issues
AR: 0 issues
Test:
https://upsource.jetbrains.com/youtrack/file/8223e681403dc4c253ae81069fa76890f922bba6/charisma/youtrack-webdriver-tests/src/test/kotlin/jetbrains/youtrack/webdriver/newIssue/NewIssueTest.kt?nav=6386:7023:focused&preview=false
curl 'http://localhost:8080/api/issues/similar?$top=-1&fields=fields($type,hasStateMachine,id,id,name,projectCustomField($type,bundle(id),canBeEmpty,emptyFieldText,field(fieldType(isMultiValue,valueType),id,localizedName,name,ordinal),id,isPublic,ordinal,size),value($type,avatarUrl,buildLink,color(id),fullName,id,isResolved,localizedName,login,markdownText,minutes,name,presentation,ringId,text)),id,idReadable,project(id,ringId),reporter(id),resolved,summary,voters(hasVote),votes,watchers(hasStar)'
-H 'Pragma: no-cache'
-H 'Origin: http://localhost:8080'
-H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9,ru-RU;q=0.8,ru;q=0.7'
-H 'Authorization: Bearer 1546206363790.6b6adb20-e08b-41c1-bbc9-008720a2198a.cc4391dd-33e3-49a7-bce8-90ab33ab3753.6b6adb20-e08b-41c1-bbc9-008720a2198a 0-0-0-0-0;1.MCwCFB0zI//iNwXqbPaaYGZshW4WcJPOAhQEaDMQl3WrcA8phIXV+czXzHsEDA=='
-H 'Content-Type: application/json;charset=UTF-8'
-H 'Accept: application/json, text/plain, */*'
-H 'Cache-Control: no-cache' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' -H 'Cookie: _ga=GA1.1.2109144113.1542117345; YTSESSIONID=4ok85f3hxnyhvi7eautugt43' -H 'Connection: keep-alive' -H 'Referer: http://localhost:8080/newIssue?draftId=41-4896'
--data-binary '{"id":"41-4896"}'
--compressed