-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
555 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...c/lib/components/cgdp-imageless-card-group/__tests__/cgdp-imageless-card-group.bad.dom.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export const cgdpImagelessCardRowBadDom = () => { | ||
const div = document.createElement('div'); | ||
|
||
// language=HTML | ||
div.innerHTML = ` | ||
<div class="usa-section cgdp-imageless-card-group" data-eddl-bad-landing-row=""> | ||
<div class="cgdp-imageless-card-group--two-card"> | ||
<h2 class="cgdp-imageless-card-group__heading usa-sr-only"></h2> | ||
<ul> | ||
<li class="nci-card"> | ||
<a href="https://www.google.com" aria-labelledby="paragraph-1525" data-eddl-landing-item="imageless_card" data-eddl-landing-item-link-type="External"> | ||
<div class="nci-card__body"> | ||
<span class="nci-card__title" id="paragraph-1525">Second Test of External Card with Longer Title</span> | ||
<p class="nci-card__description">This is the second external card in the 2-Imageless Card layout.</p> | ||
</div> | ||
</a> | ||
</li> | ||
<li class="nci-card"> | ||
<a href="/about-cancer" aria-labelledby="paragraph-1527" data-eddl-landing-item="imageless_card" data-eddl-landing-item-link-type="Internal"> | ||
<div class="nci-card__body"> | ||
<span class="nci-card__title" id="paragraph-1527">This is an Override Title for About Cancer</span> | ||
<p class="nci-card__description">This is a test of the internal card in the 2-Imageless Card layout.</p> | ||
</div> | ||
</a> | ||
</li> | ||
<li class="nci-card"> | ||
<a href="/about-nci/organization/nci-at-a-glance" aria-labelledby="paragraph-1526" data-eddl-landing-item="imageless_card" data-eddl-landing-item-link-type=""> | ||
<div class="nci-card__body"> | ||
<span class="nci-card__title" id="paragraph-1526">Test Multimedia Card</span> | ||
<p class="nci-card__description">This is a test of the multimedia card in the 2-Imageless Card layout.</p> | ||
</div> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
`; | ||
|
||
return div; | ||
}; |
40 changes: 40 additions & 0 deletions
40
...d/src/lib/components/cgdp-imageless-card-group/__tests__/cgdp-imageless-card-group.dom.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export const cgdpImagelessCardRowDom = () => { | ||
const div = document.createElement('div'); | ||
|
||
// language=HTML | ||
div.innerHTML = ` | ||
<div class="usa-section cgdp-imageless-card-group" data-eddl-landing-row=""> | ||
<div class="cgdp-imageless-card-group--two-card"> | ||
<h2 class="cgdp-imageless-card-group__heading usa-sr-only">The Optional Imageless Card Group Heading - two Card</h2> | ||
<ul> | ||
<li class="nci-card"> | ||
<a href="https://www.google.com" aria-labelledby="paragraph-1525" data-eddl-landing-item="imageless_card" data-eddl-landing-item-link-type="External"> | ||
<div class="nci-card__body"> | ||
<span class="nci-card__title--bad" id="paragraph-1525">Second Test of External Card with Longer Title</span> | ||
<p class="nci-card__description--bad">This is the second external card in the 2-Imageless Card layout.</p> | ||
</div> | ||
</a> | ||
</li> | ||
<li class="nci-card"> | ||
<a href="/about-cancer" aria-labelledby="paragraph-1527" data-eddl-landing-item="imageless_card" data-eddl-landing-item-link-type="Internal"> | ||
<div class="nci-card__body"> | ||
<span class="nci-card__title--bad" id="paragraph-1527">This is an Override Title for About Cancer</span> | ||
<p class="nci-card__description--bad">This is a test of the internal card in the 2-Imageless Card layout.</p> | ||
</div> | ||
</a> | ||
</li> | ||
<li class="nci-card"> | ||
<a href="/about-nci/organization/nci-at-a-glance" aria-labelledby="paragraph-1526" data-eddl-landing-item="imageless_card" data-eddl-landing-item-link-type="Media"> | ||
<div class="nci-card__body"> | ||
<span class="nci-card__title--bad" id="paragraph-1526">Test Multimedia Card</span> | ||
<p class="nci-card__description--bad">This is a test of the multimedia card in the 2-Imageless Card layout.</p> | ||
</div> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
`; | ||
|
||
return div; | ||
}; |
Oops, something went wrong.