Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Nov 29, 2021
1 parent d657404 commit e2d2d23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe('Artist view container', () => {

it('should add all top to queue tracks after clicking add all', async () => {
const { component, store } = mountComponent();
await waitFor(() => component.getByText(/add-all/i).click());
await waitFor(() => component.getByText(/add all/i).click());

const state = store.getState();
expect(state?.queue?.queueItems).toEqual([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ exports[`Artist view container should display an artist 1`] = `
Popular tracks
</div>
<a
aria-label="add-all"
aria-label="Add all"
class="ui primary button add_button"
href="#"
role="button"
Expand All @@ -108,7 +108,7 @@ exports[`Artist view container should display an artist 1`] = `
aria-hidden="true"
class="fa fa-plus"
/>
add-all
Add all
</a>
<table
class="popular_tracks_table"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('PlayerBar container', () => {
renderTrackDuration: false
});

expect(component.getByText('00:00')).toBeNull;
expect(component.queryByText('00:00')).toBeNull();
});

const mountComponent = (initialStore?: AnyProps) => {
Expand Down

0 comments on commit e2d2d23

Please sign in to comment.