Skip to content

Commit

Permalink
Fix nukeop#1140 - context popups not appearing for tracks without thu…
Browse files Browse the repository at this point in the history
…mbnails
  • Loading branch information
nukeop committed Jan 14, 2022
1 parent 55a4000 commit d2b2cd4
Show file tree
Hide file tree
Showing 7 changed files with 969 additions and 463 deletions.
732 changes: 351 additions & 381 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@
"husky": "^3.1.0",
"lerna": "^3.22.1",
"lint-staged": "^10.0.0-beta.14",
"sass-loader": "^12.1.0",
"shx": "^0.3.3",
"style-loader": "^3.2.1",
"typescript": "^4.2.4"
},
"optionalDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/app/app/components/PlayQueue/QueuePopup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export const QueuePopup = ({
position={isQueueItemCompact ? 'bottom right' : 'bottom center'}
hideOnScroll
on={null}
popperModifiers={{ preventOverflow: { boundariesElement: 'window' } }}
>
<StreamInfo
dropdownOptions={dropdownOptions}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ describe('Play Queue container', () => {
expect(component.asFragment()).toMatchSnapshot();
});

it('should display a context popup on right click for tracks without thumbnails', async () => {
const { component } = mountComponent();
const track = component.getByTestId('queue-popup-uuid3');
await waitFor(() => fireEvent.contextMenu(track));
expect(component.asFragment()).toMatchSnapshot();
});

it('should copy original track url to clipboard', async () => {
const { component } = mountComponent();
// eslint-disable-next-line @typescript-eslint/no-var-requires
Expand Down Expand Up @@ -88,7 +95,7 @@ describe('Play Queue container', () => {
const mountComponent = mountedPlayQueueFactory(
['/dashboard'],
buildStoreState()
.withTrackInPlayQueue()
.withTracksInPlayQueue()
.withPlugins()
.withConnectivity()
.build()
Expand Down
Loading

0 comments on commit d2b2cd4

Please sign in to comment.