Skip to content

Commit

Permalink
NOP-3083 - ajusta teste unitário
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasrrocha committed Aug 3, 2022
1 parent d938b5f commit 1c534a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class MenuVerticalItem implements ComponentInterface {
{ this.icone && (<bth-icone icone={this.icone}></bth-icone>) }
<span class={ this.possuiBadgeIcone ? 'badge-icon' : '' } />
</div>
<span
<span id="descricaoMenu"
class={`${isNill(this.icone) && !this.submenu ? 'menu-vertical__item--sem-icone' : ''}`}
title={`${!this.possuiPermissao ? MSG_SEM_PERMISSAO_RECURSO : this.descricao}`}>
{this.descricao}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('bth-menu-vertical-item', () => {

// Assert
expect(menuVerticalItem.descricao).toBe(opcaoMenu.descricao);
const descricao: HTMLSpanElement = menuVerticalItem.shadowRoot.querySelector('span');
const descricao: HTMLSpanElement = menuVerticalItem.shadowRoot.querySelector('#descricaoMenu');
expect(descricao.textContent).toBe(opcaoMenu.descricao);

expect(menuVerticalItem.icone).toBe(opcaoMenu.icone);
Expand Down

0 comments on commit 1c534a3

Please sign in to comment.