Как изменить template.hbs в огурце - PullRequest
0 голосов
/ 26 сентября 2018
 **template.hbs**   

{{feature.type}}: {{{feature.name}}}
    {{{feature.description}}}

    {{#feature.children}}
   {{#tags}}
    {{{name}}}
    {{/tags}}
      {{keyword}}: {{{name}}}
        {{{description}}}
    {{#steps}}
        {{keyword}}{{{text}}}{{#if argument}}
        """
        {{{argument.content}}}
        """{{/if}}
    {{/steps}}
    {{#examples}}
      {{type}}:
        |{{#tableHeader.cells}} {{{value}}} |{{/tableHeader.cells}}{{#tableBody}}
        |{{#cells}} {{{value}}} |{{/cells}}{{/tableBody}}
    {{/examples}}
    {{/feature.children}}

Файл функций

    Feature: Shopper can add an item to their Grocery List

    @kk
    Scenario: Mutate multiple User Skills at the same time

    Then If I click the row "Summary" then I should the following nested information`

      | Tax       | 11.50  |
      | Gratuity  | 4.50   |
      | Total     | 26.59  |

Я хочу получить эту дату в определении шага, чтобы я мог использовать table.raw (), table.hashes (), table.row (), но из-за трех двойных кавычек в template.hbs, после создания файла компонента, я получаю эту таблицу в виде текста, разделенного каналом, а не таблицы. Решите эту проблему

понимание https://github.com/cucumber/cucumber-js/blob/9959ca9fd9f8c64f0b5133f9bb241da9b854e570/features/data_tables.feature

...