diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e9581f..270924d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `webpack` ^5.8.22 --> ^5.97.1 - `whatwg-fetch` ^3.0.0 --> ^3.6.20 - Add Muted properties to Sound Plugin Type. [Part of ticket](https://pbskids.atlassian.net/browse/WEB-109) +- Updated Pause Plugin unit tests to reflect updated Pause functionality. ### Removed diff --git a/src/plugins/PausePlugin.spec.js b/src/plugins/PausePlugin.spec.js index 205a82c..ac98eed 100644 --- a/src/plugins/PausePlugin.spec.js +++ b/src/plugins/PausePlugin.spec.js @@ -93,25 +93,6 @@ describe('PausePlugin', () => { }); describe('manageFocus()', () => { - it('should set pause to false if only app is blurred', async () => { - pp.onPauseToggle(); //reset the manual pause state which was being set to true for some reason. - pp._containerBlurred = false; - pp._appBlurred = true; - - pp.manageFocus(); - await sleep(150); - expect(pp.pause).to.be.false; - }); - - it('should set pause to false if only container is blurred', async () => { - pp._containerBlurred = true; - pp._appBlurred = false; - - pp.manageFocus(); - await sleep(150); - expect(pp.pause).to.be.false; - }); - it('should set pause to true if app and container are blurred', async () => { pp._containerBlurred = true; pp._appBlurred = true; @@ -122,14 +103,6 @@ describe('PausePlugin', () => { }); it('should not change the pause state if the app was manually paused', async () => { - pp._appBlurred = false; - pp.manageFocus(); - await sleep(150); - expect(pp.pause).to.be.false; - - pp.onPauseToggle(); - expect(pp.pause).to.be.true; - //when app and container are both blurred the pause state should be set to true, ignored if the pause state is already true via manual pause pp._appBlurred = true; pp._containerBlurred = true;