- fields:
    logo:
      src: "https://placeimg.com/100/100"
      alt: "Alternative text for logo"
    name: "Organisation name"
    acronym: "Acronym"
    organisation_details:
      - label: "Address"
        body: "61 Lorem Ipsum Street, Brussels, Belgium, 1000"
      - label: "Website"
        body:
          '#markup': '<a class="ecl-link ecl-link--standalone" href="http://www.example.com">http://www.example.com</a>'
    contact_page_url: "http://www.example.com/contact"
  assertions:
    count:
      div[role="img"].ecl-u-d-l-block: 1
      a.ecl-link[href="http://www.example.com/contact"]: 1
    equals:
      h4.ecl-u-type-heading-4: "Organisation name (Acronym)"
      dl.ecl-description-list dt.ecl-description-list__term:nth-child(1): "Address"
      dl.ecl-description-list dd.ecl-description-list__definition:nth-child(2): "61 Lorem Ipsum Street, Brussels, Belgium, 1000"
      dl.ecl-description-list dt.ecl-description-list__term:nth-child(3): "Website"
      dl.ecl-description-list dd.ecl-description-list__definition:nth-child(4): '<a class="ecl-link ecl-link--standalone" href="http://www.example.com">http://www.example.com</a>'
      a.ecl-link .ecl-link__label: "Contact organisation"
      a.ecl-link svg.ecl-icon: '<use xlink:href="/themes/custom/oe_theme/dist/ec/images/icons/sprites/icons.svg#external"></use>'
- fields:
    organisation_details:
      - label: "Address"
        body: "<b>61 Lorem Ipsum Street, Brussels, Belgium, 1000</b>"
  assertions:
    equals:
      dl.ecl-description-list dt.ecl-description-list__term:nth-child(1): "Address"
      dl.ecl-description-list dd.ecl-description-list__definition:nth-child(2): "&lt;b&gt;61 Lorem Ipsum Street, Brussels, Belgium, 1000&lt;/b&gt;"
- fields:
    name: "Organisation name"
  assertions:
    count:
      div[role="img"].ecl-u-d-l-block: 0
      dl.ecl-description-list: 0
      a.ecl-link: 0
    equals:
      h4.ecl-u-type-heading-4: "Organisation name"
- fields:
    organisation_details:
      - label: "Address"
        body: "61 Lorem Ipsum Street, Brussels, Belgium, 1000"
    contact_page_url: "/internal_link"
  assertions:
    count:
      h4.ecl-u-type-heading-4: 1
      a.ecl-link[href="/internal_link"]: 1
      dl.ecl-description-list dt.ecl-description-list__term:nth-child(3): 0
      dl.ecl-description-list dd.ecl-description-list__definition:nth-child(4): 0
    equals:
      dl.ecl-description-list dt.ecl-description-list__term:nth-child(1): "Address"
      dl.ecl-description-list dd.ecl-description-list__definition:nth-child(2): "61 Lorem Ipsum Street, Brussels, Belgium, 1000"
      a.ecl-link .ecl-link__label: "Contact organisation"
      a.ecl-link svg.ecl-icon: '<use xlink:href="/themes/custom/oe_theme/dist/ec/images/icons/sprites/icons.svg#corner-arrow"></use>'
- fields:
    contact_page_url: "mailto:me@example.com"
  assertions:
    count:
      a.ecl-link[href="mailto:me@example.com"]: 1
    equals:
      a.ecl-link svg.ecl-icon: '<use xlink:href="/themes/custom/oe_theme/dist/ec/images/icons/sprites/icons.svg#external"></use>'
- fields:
    contact_page_url: "https://european-union.europa.eu/index_en"
  assertions:
    count:
      a.ecl-link[href="https://european-union.europa.eu/index_en"]: 1
    equals:
      a.ecl-link svg.ecl-icon: '<use xlink:href="/themes/custom/oe_theme/dist/ec/images/icons/sprites/icons.svg#corner-arrow"></use>'
