Skip to content

Commit

Permalink
Fixes liferay#1228 - Fixes tests and regen snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Dec 6, 2018
1 parent 5a74e70 commit cc539b8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ describe('ClayManagementToolbar', function() {
const spy = jest.spyOn(managementToolbar, 'emit');

// eslint-disable-next-line
managementToolbar.refs.resultsBar.refs.label1.refs.closeButton.element.click();
managementToolbar.refs.resultsBar.refs.label1.refs.label.refs.closeButton.element.click();

expect(spy).toHaveBeenCalled();
expect(spy).toHaveBeenCalledWith(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('ClayResultsBar', function() {

const spy = jest.spyOn(resultsBar, 'emit');

resultsBar.refs.label1.refs.closeButton.element.click();
resultsBar.refs.label1.refs.label.refs.closeButton.element.click();

expect(spy).toHaveBeenCalled();
expect(spy).toHaveBeenCalledWith(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2093,7 +2093,8 @@ exports[`ClayManagementToolbar should render a management toolbar with search re
<div class="tbar-section">
<span class="label label-dismissible component-label tbar-label">
<span class="label-item label-item-expand">
<div class="label-section">&lt;strong&gt;Category:&lt;/strong&gt;Label 3</div>
<div class="label-section">
<strong>Category:</strong>Label 3</div>
</span>
<span class="label-item label-item-after">
<button class="btn close" aria-label="close" type="button">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ exports[`ClayResultsBar should render a results bar with filter labels 1`] = `
<div class="tbar-section">
<span class="label label-dismissible component-label tbar-label">
<span class="label-item label-item-expand">
<div class="label-section">&lt;strong&gt;Category:&lt;/strong&gt;Label 3</div>
<div class="label-section">
<strong>Category:</strong>Label 3</div>
</span>
<span class="label-item label-item-after">
<button class="btn close" aria-label="close" type="button">
Expand Down Expand Up @@ -102,7 +103,8 @@ exports[`ClayResultsBar should render a results bar with filter labels and searc
<div class="tbar-section">
<span class="label label-dismissible component-label tbar-label">
<span class="label-item label-item-expand">
<div class="label-section">&lt;strong&gt;Category:&lt;/strong&gt;Label 3</div>
<div class="label-section">
<strong>Category:</strong>Label 3</div>
</span>
<span class="label-item label-item-after">
<button class="btn close" aria-label="close" type="button">
Expand Down

0 comments on commit cc539b8

Please sign in to comment.