This commit is contained in:
Xes
2025-08-14 22:39:38 +02:00
parent 3641e93527
commit 5403f346e3
3370 changed files with 327179 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
describe('multiple', () => {
it('should display 2 h5ps', () => {
cy.visit('test/multiple.html');
cy.get('#h5p-container-1 .h5p-iframe').should(iframe => {
expect(iframe.contents().find('.h5p-content')).to.exist;
});
cy.get('#h5p-container-2 .h5p-iframe').should(iframe => {
expect(iframe.contents().find('.h5p-content')).to.exist;
});
});
});

View File

@@ -0,0 +1,16 @@
describe('single', () => {
it('should display h5p', () => {
cy.visit('test/single.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;
});
});
});