无法为方案大纲功能创建步骤定义

时间:2018-04-18 18:23:15

标签: intellij-idea cucumber

我在这里面临着一种奇怪的情况。我无法为intellij中的方案大纲功能创建步骤定义。 Alt + Enter不起作用,也没有灯泡下拉。我删除双引号并且大于和小于符号的那一刻(原谅我的行话,我无法找到任何其他词来解释它们),灯泡再次出现。真的很奇怪。不确定2017年intellij更新是否导致了这一点。 任何帮助非常感谢!

var teamsA = ['team1', 'team2', 'team3'];
var teamsB = ['team4', 'team5', 'team6'];

var teamgroup = 'A';

var myData = [
    {player: "Joe", team: "team1"},
    {player: "Tom", team: "team3"},
    {player: "Red", team: "team2"},
    {player: "Smi", team: "team5"},
    {player: "Bib", team: "team6"},
    {player: "Cat", team: "team2"},
    {player: "Dan", team: "team3"},
    {player: "Jim", team: "team1"}
]

if(teamgroup == 'A'){
  myData = myData.filter((player)=> teamsA.includes(player.team))
} else {
  myData = myData.filter((player)=> teamsB.includes(player.team))

}

console.log(myData)

当我点击“给定”时,我看不到黄色灯泡 然后单击Alt + Enter将不提供任何创建步骤定义的选项 。但是,如果我要删除Scenario Outline : test logins Given I am logged in as "<user>" Examples: |User| |person1| |person2| ,则会出现黄色灯泡并单击Alt + Enter工作正常。

0 个答案:

没有答案