question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Test Scenario]: CTA Block Item Rows within Tabs Extended

See original GitHub issue

Engineering info:


Background

#8820 revealed an issue where elements that leverage the sameHeight utility but are initially rendered in an element that has the hidden attribute are given a 0px height. The specific scenario under which this occurred was with markup like the following:

<dds-tabs-extended>
  <dds-tab label="First tab">
    <dds-cta-block>
      <dds-cta-block-item-row>
        <dds-cta-block-item>
          ...
        </dds-cta-block-item>
      </dds-cta-block-item-row>
    </dds-cta-block>
  </dds-tab>
  ...
</dds-tabs-extended>

#8881 fixes the issue, but there is not currently a place to write tests for the scenario. However, this seems like the type of thing that warrants automated test coverage.

Component and test scenario title

CTA Block – When rendered inside Tabs Extended, CTA Block Items within CTA Block Item Rows should have equal heights.

Test scenario steps

  1. Given a DDSCTABlock is placed within a DDSTabsExtended element
  2. And a DDSCTABlockItemRow is placed within it,
  3. And that row has one or multiple DDSCTABlockItem children
  4. Then those children should have equal heights
  5. And their heights should not equal 0px.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jkaesercommented, Jun 3, 2022

@proeung I believe that’s all I needed. I’ll create another Story in CTA Block as the testable surface for this scenario. Thanks, all!

1reaction
annawen1commented, Jun 2, 2022

hmm I’m thinking we can put the test case in CTA Block? That seems to be the most relevant to me

Read more comments on GitHub >

github_iconTop Results From Across the Web

CTA Mock Review Board - Scenario 2 - YouTube
Welcome to the first of Lynette's Ladies Be Architects mock CTA group. In this video Vedran takes us through his review board presentation ......
Read more >
CTA Modal: How To Build A Web Component
This function is handy to know if an element resides outside the parent <cta-modal> tag. It returns a boolean, which we can use...
Read more >
What is A/B Testing? A Practical Guide With Examples | VWO
For instance, in the case of eCommerce, it may be the sale of the products. ... With A/B testing, you can test multiple...
Read more >
When things go wrong (How we mitigate delays) - CTA
If a delay occurs at the peak of a rush period—even for just a few minutes—it can cause trains to quickly back-up, resulting...
Read more >
Handbook Markdown Guide - GitLab
In case you need an additional break (or some extra space between lines), you can simply use the HTML break tag <br> ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found