Skip to content

Commit

Permalink
fix(FEC-12161): Need to replace static jpg files in player tests
Browse files Browse the repository at this point in the history
Replace images in player tests with fake images
  • Loading branch information
SivanA-Kaltura authored Apr 12, 2022
1 parent d29f30f commit d4c36b4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions test/src/common/thumbnail-manager.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {setup} from '../../../src';

describe('ThumbnailManager', () => {
let thumbnailManager, fakePlayer, fakeMediaConfig, sandbox;
const thumbsSprite = 'http://stilearning.com/vision/1.1/assets/globals/img/dummy/img-10.jpg';
const thumbsSprite = 'thumbsSprite.jpg';
const fakeSeekbarConfig = {
thumbsSlices: 200,
thumbsWidth: 100
Expand Down Expand Up @@ -156,7 +156,7 @@ describe('ThumbnailManager', () => {
const targetId = 'player-placeholder_ovp/thumbnail.spec';

let config, kalturaPlayer;
const myCustomPosterUrl = 'https://www.elastic.co/assets/bltada7771f270d08f6/enhanced-buzz-1492-1379411828-15.jpg';
const myCustomPosterUrl = 'poster.jpg';
const entryId = '0_wifqaipd';
const partnerId = 1091;
const env = {
Expand Down
12 changes: 6 additions & 6 deletions test/src/common/utils/setup-helpers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ describe('supportLegacyOptions', function () {
autoplay: false
},
metadata: {
poster: 'https://www.elastic.co/assets/bltada7771f270d08f6/enhanced-buzz-1492-1379411828-15.jpg'
poster: 'poster.jpg'
}
},
provider: {
Expand All @@ -248,7 +248,7 @@ describe('supportLegacyOptions', function () {
ui: {
components: {
seekbar: {
thumbsSprite: 'http://stilearning.com/vision/1.1/assets/globals/img/dummy/img-10.jpg'
thumbsSprite: 'thumbsSprite.jpg'
}
}
}
Expand All @@ -268,7 +268,7 @@ describe('supportLegacyOptions', function () {
autoplay: false
},
metadata: {
poster: 'https://www.elastic.co/assets/bltada7771f270d08f6/enhanced-buzz-1492-1379411828-15.jpg'
poster: 'poster.jpg'
}
},
provider: {
Expand All @@ -277,7 +277,7 @@ describe('supportLegacyOptions', function () {
ui: {
components: {
seekbar: {
thumbsSprite: 'http://stilearning.com/vision/1.1/assets/globals/img/dummy/img-10.jpg'
thumbsSprite: 'thumbsSprite.jpg'
}
}
}
Expand All @@ -289,7 +289,7 @@ describe('supportLegacyOptions', function () {
dvr: false,
type: 'Live',
duration: 10000,
poster: 'https://www.elastic.co/assets/bltada7771f270d08f6/enhanced-buzz-1492-1379411828-15.jpg',
poster: 'poster.jpg',
metadata: {
name: 'name'
}
Expand All @@ -303,7 +303,7 @@ describe('supportLegacyOptions', function () {
ui: {
components: {
seekbar: {
thumbsSprite: 'http://stilearning.com/vision/1.1/assets/globals/img/dummy/img-10.jpg'
thumbsSprite: 'thumbsSprite.jpg'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/src/kaltura-player.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('kaltura player api', function () {
});

it('should use the configured poster from loadMedia options', function (done) {
const poster = 'http://stilearning.com/vision/1.1/assets/globals/img/dummy/img-10.jpg';
const poster = 'poster.jpg';
kalturaPlayer.addEventListener(kalturaPlayer.Event.CHANGE_SOURCE_ENDED, () => {
kalturaPlayer.poster.should.equal(poster);
done();
Expand Down
2 changes: 1 addition & 1 deletion test/src/ovp/poster.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('addKalturaPoster', function () {

describe('Poster Integration', function () {
let config, kalturaPlayer, sandbox, provider;
const myCustomPosterUrl = 'https://www.elastic.co/assets/bltada7771f270d08f6/enhanced-buzz-1492-1379411828-15.jpg';
const myCustomPosterUrl = 'poster.jpg';
const entryId = '0_wifqaipd';
const alterEntryId = '0_4ktof5po';
const partnerId = 1091;
Expand Down

0 comments on commit d4c36b4

Please sign in to comment.