-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add support for user to provide download Url (#76)
* feat: add support for download url option * docs: add support for download url option * test: replace extracted H5P files with a task to unzip during tests * test: H5P player download option tests
- Loading branch information
murage
authored
Apr 23, 2021
1 parent
1ec9101
commit 40c8954
Showing
224 changed files
with
258 additions
and
24,615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
describe('single', () => { | ||
it('should display h5p', () => { | ||
|
||
cy.visit('test/advance-options.html'); | ||
|
||
cy.get('.h5p-iframe').should(iframe => { | ||
expect(iframe.contents().find('.h5p-content')).to.exist; | ||
|
||
iframe.contents().find('.h5p-true-false-answer').click(); | ||
|
||
iframe.contents().find('.h5p-question-check-answer').click(); | ||
|
||
expect(iframe.contents().find('.h5p-joubelui-score-bar-star')).to.exist; | ||
|
||
expect(iframe.contents().find('.h5p-actions').find('.h5p-export')).to.exist; | ||
|
||
iframe.contents() | ||
.find('.h5p-actions') | ||
.find('.h5p-export') | ||
.click(); | ||
|
||
expect(iframe.contents().find('.h5p-download-button')).to.exist; | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<html> | ||
|
||
<head> | ||
<link type="text/css" rel="stylesheet" media="all" href="/dist/styles/h5p.css" /> | ||
<meta charset="utf-8" /> | ||
<script type="text/javascript" src="/dist/main.bundle.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="h5p-container"></div> | ||
|
||
<script type="text/javascript"> | ||
const { | ||
H5P | ||
} = H5PStandalone; | ||
new H5P(document.getElementById('h5p-container'), { | ||
h5pJsonPath: 'full_workspace', | ||
frameJs: '/dist/frame.bundle.js', | ||
frameCss: '/dist/styles/h5p.css', | ||
frame: true, | ||
copyright: true, | ||
embed: false, | ||
export: true, | ||
downloadUrl: 'test.h5p' | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> |
1 change: 0 additions & 1 deletion
1
test/full_workspace/Drop-1.0/css/drop-theme-arrows-bounce.min.css
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.