Skip to content

Commit

Permalink
Assign id to some attributes to make test more robust (#58)
Browse files Browse the repository at this point in the history
* Assign ids to some attributes to make selenium or browser automation based testing for robust.

* Local video view is now mirrored. (#57)
  • Loading branch information
pallab-gain authored May 8, 2018
1 parent f1e7ca4 commit dc1356e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/client/components/views/meetingpage/content/Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,21 @@ class Video extends React.Component {
WebkitTransform: 'scaleX(1.5)',
MozTransform: 'scaleX(1.5)'
};
const mirrorStyle = {
padding: '0px',
WebkitTransform: 'scaleX(1.5)',
MozTransform: 'scaleX(1.5)',
transform: 'rotateY(180deg)',
webkitTransform: 'rotateY(180deg)',
mozTransform: 'rotateY(180deg)'
};
return (
<a href='#' onClick={this.videoHandler.onClickHandler.bind(this)} title={this.props.name}>
<video id={this.videoHandler.name}
muted={this.state.muted}
className="thumbnail"
autoPlay loop
style={videoStyle}
style={this.videoHandler.name === 'local' ? mirrorStyle : videoStyle}
ref={(video) => {
this.video = video;
}}>
Expand Down
11 changes: 10 additions & 1 deletion src/client/components/views/meetingpage/content/VideoMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,20 @@ class VideoMain extends React.Component {
paddingRight: '5%',
maxHeight: `${this.state.videoHeight}px`
};
const mirrorStyle = {
objectFit: 'fill',
width: '90%',
paddingRight: '5%',
maxHeight: `${this.state.videoHeight}px`,
transform: 'rotateY(180deg)',
webkitTransform: 'rotateY(180deg)',
mozTransform: 'rotateY(180deg)'
};
return (
<video id={this.videoHandler.name}
muted={this.state.muted}
autoPlay loop
style={customStyle}
style={this.videoHandler.name === 'local' ? mirrorStyle : customStyle}
ref={(video) => {
this.video = video;
}}>
Expand Down

0 comments on commit dc1356e

Please sign in to comment.