Skip to content

Commit

Permalink
one big it
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Sep 12, 2023
1 parent 0724ae8 commit 37fed6c
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions packages/atomic/cypress/e2e/result-list/result-list.commons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,42 +114,38 @@ export default (

withAnySectionnableResultList(
(display, imageSize, density) => {
it('should expose --line-height in the title section', () => {
it('should be fine', () => {
//should expose --line-height in the title section
componentSelectors.sections
.title()
.find(lineHeightSelector)
.should('be.visible');
});

it('should expose --line-height in the excerpt section', () => {
//should expose --line-height in the excerpt section
componentSelectors.sections
.excerpt()
.find(lineHeightSelector)
.should('be.visible');
});

it('should expose --line-height in the bottom-metadata section', () => {
//should expose --line-height in the bottom-metadata section
componentSelectors.sections
.bottomMetadata()
.find(lineHeightSelector)
.should('be.visible');
});

if (!(componentTag === 'atomic-folded-result-list')) {
it(`should pass the display-${display} class to the list root`, () => {
if (!(componentTag === 'atomic-folded-result-list')) {
//should pass the display-${display} class to the list root
componentSelectors
.root()
.should('have.class', `display-${display}`);
});
}
}

it(`should pass the image-${imageSize} class to the list root`, () => {
//should pass the image-${imageSize} class to the list root
componentSelectors
.root()
.should('have.class', `image-${imageSize}`);
});

it(`should pass the density-${density} class to the list root`, () => {
//should pass the density-${density} class to the list root
componentSelectors
.root()
.should('have.class', `density-${density}`);
Expand Down

0 comments on commit 37fed6c

Please sign in to comment.