@@ -38,7 +38,7 @@ describe('<Player/>', function () {
 | 
			
		||||
 | 
			
		||||
        // initial fetch for getting movie data
 | 
			
		||||
        expect(global.fetch).toHaveBeenCalledTimes(1);
 | 
			
		||||
        wrapper.find('.videoactions').find('Button').first().simulate('click');
 | 
			
		||||
        wrapper.find('.videoactions').find('IconButton').first().simulate('click');
 | 
			
		||||
        // fetch for liking
 | 
			
		||||
        expect(global.fetch).toHaveBeenCalledTimes(2);
 | 
			
		||||
 | 
			
		||||
@@ -81,7 +81,7 @@ describe('<Player/>', function () {
 | 
			
		||||
        const wrapper = instance();
 | 
			
		||||
        expect(wrapper.find('AddTagPopup')).toHaveLength(0);
 | 
			
		||||
        // todo dynamic button find without index
 | 
			
		||||
        wrapper.find('.videoactions').find('Button').at(1).simulate('click');
 | 
			
		||||
        wrapper.find('.videoactions').find('IconButton').at(1).simulate('click');
 | 
			
		||||
        // addtagpopup should be showing now
 | 
			
		||||
        expect(wrapper.find('AddTagPopup')).toHaveLength(1);
 | 
			
		||||
    });
 | 
			
		||||
@@ -106,7 +106,7 @@ describe('<Player/>', function () {
 | 
			
		||||
        wrapper.setContext({VideosFullyDeleteable: false})
 | 
			
		||||
 | 
			
		||||
        // request the popup to pop
 | 
			
		||||
        wrapper.find('.videoactions').find('Button').at(2).simulate('click');
 | 
			
		||||
        wrapper.find('.videoactions').find('IconButton').at(2).simulate('click');
 | 
			
		||||
 | 
			
		||||
        // click the first submit button
 | 
			
		||||
        wrapper.find('ButtonPopup').dive().find('Button').at(0).simulate('click')
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ import Tag from '../../elements/Tag/Tag';
 | 
			
		||||
import AddTagPopup from '../../elements/Popups/AddTagPopup/AddTagPopup';
 | 
			
		||||
import PageTitle, {Line} from '../../elements/PageTitle/PageTitle';
 | 
			
		||||
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
 | 
			
		||||
import {faPlusCircle} from '@fortawesome/free-solid-svg-icons';
 | 
			
		||||
import {faPlusCircle, faTag, faThumbsUp, faTrash} from '@fortawesome/free-solid-svg-icons';
 | 
			
		||||
import AddActorPopup from '../../elements/Popups/AddActorPopup/AddActorPopup';
 | 
			
		||||
import ActorTile from '../../elements/ActorTile/ActorTile';
 | 
			
		||||
import {withRouter} from 'react-router-dom';
 | 
			
		||||
@@ -18,7 +18,7 @@ import {RouteComponentProps} from 'react-router';
 | 
			
		||||
import {DefaultPlyrOptions, GeneralSuccess} from '../../types/GeneralTypes';
 | 
			
		||||
import {ActorType, TagType} from '../../types/VideoTypes';
 | 
			
		||||
import PlyrJS from 'plyr';
 | 
			
		||||
import {Button} from '../../elements/GPElements/Button';
 | 
			
		||||
import {IconButton} from '../../elements/GPElements/Button';
 | 
			
		||||
import {VideoTypes} from '../../types/ApiTypes';
 | 
			
		||||
import GlobalInfos from '../../utils/GlobalInfos';
 | 
			
		||||
import {ButtonPopup} from '../../elements/Popups/ButtonPopup/ButtonPopup';
 | 
			
		||||
@@ -90,18 +90,12 @@ export class Player extends React.Component<Props, mystate> {
 | 
			
		||||
                        <div>not loaded yet</div>
 | 
			
		||||
                    )}
 | 
			
		||||
                    <div className={style.videoactions}>
 | 
			
		||||
                        <Button onClick={(): void => this.likebtn()} title='Like this Video!' color={{backgroundColor: 'green'}} />
 | 
			
		||||
                        <Button
 | 
			
		||||
                            onClick={(): void => this.setState({popupvisible: true})}
 | 
			
		||||
                            title='Give this Video a Tag'
 | 
			
		||||
                            color={{backgroundColor: '#3574fe'}}
 | 
			
		||||
                        />
 | 
			
		||||
                        <Button
 | 
			
		||||
                            title='Delete Video'
 | 
			
		||||
                            onClick={(): void => {
 | 
			
		||||
                                this.setState({deletepopupvisible: true});
 | 
			
		||||
                            }}
 | 
			
		||||
                            color={{backgroundColor: 'red'}}
 | 
			
		||||
                        <IconButton icon={faThumbsUp} onClick={(): void => this.likebtn()} title='Like!' />
 | 
			
		||||
                        <IconButton icon={faTag} onClick={(): void => this.setState({popupvisible: true})} title='Add Tag!' />
 | 
			
		||||
                        <IconButton
 | 
			
		||||
                            icon={faTrash}
 | 
			
		||||
                            onClick={(): void => this.setState({deletepopupvisible: true})}
 | 
			
		||||
                            title='Delete Video!'
 | 
			
		||||
                        />
 | 
			
		||||
                    </div>
 | 
			
		||||
                    {this.assembleActorTiles()}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user