Skip to content

Commit

Permalink
test(e2e): remove redundant duplicate iframe class
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMurage committed Nov 1, 2021
1 parent fa70bc3 commit bdbcb3f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cypress/integration/advance-options.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe("H5P player with advance options", () => {
});

it("should display h5p", () => {
cy.iframe("iframe.h5p-iframe.h5p-iframe.h5p-initialized")
cy.iframe("iframe.h5p-iframe.h5p-initialized")
.should("be.visible")
.within(() => {
cy.get(".h5p-true-false-answers .h5p-true-false-answer")
Expand All @@ -17,15 +17,15 @@ describe("H5P player with advance options", () => {
});

it("should display export dialog", () => {
cy.iframe("iframe.h5p-iframe.h5p-iframe.h5p-initialized").within(() => {
cy.iframe("iframe.h5p-iframe.h5p-initialized").within(() => {
cy.get(".h5p-actions").find(".h5p-export").should("be.visible").click();

cy.get(".h5p-download-button").should("be.visible");
});
});

it("should display embed code dialog", () => {
cy.iframe("iframe.h5p-iframe.h5p-iframe.h5p-initialized").within(() => {
cy.iframe("iframe.h5p-iframe.h5p-initialized").within(() => {
cy.get(".h5p-actions").find(".h5p-embed").should("be.visible").click();

cy.get(".h5p-embed-code-container").should("be.visible");
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/external_libraries.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe("H5P player loading external libraries", () => {
});

it("should display h5p", () => {
cy.iframe("iframe.h5p-iframe.h5p-iframe.h5p-initialized")
cy.iframe("iframe.h5p-iframe.h5p-initialized")
.should("be.visible")
.within(() => {
cy.get(".h5p-true-false-answers .h5p-true-false-answer")
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration/multiple.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe("Multiple H5P players", () => {
});

it("should display & load multiple h5p players", () => {
cy.iframe("#h5p-container-1 iframe.h5p-iframe.h5p-iframe.h5p-initialized")
cy.iframe("#h5p-container-1 iframe.h5p-iframe.h5p-initialized")
.should("be.visible")
.within(() => {
cy.get(".h5p-true-false-answers .h5p-true-false-answer")
Expand All @@ -15,7 +15,7 @@ describe("Multiple H5P players", () => {

cy.get(".h5p-joubelui-score-bar-star").should("be.visible");
});
cy.iframe("#h5p-container-2 iframe.h5p-iframe.h5p-iframe.h5p-initialized")
cy.iframe("#h5p-container-2 iframe.h5p-iframe.h5p-initialized")
.should("be.visible")
.within(() => {
cy.get(".h5p-true-false-answers .h5p-true-false-answer")
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/single.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe("Single H5P player", () => {
});

it("should display h5p", () => {
cy.iframe("iframe.h5p-iframe.h5p-iframe.h5p-initialized")
cy.iframe("iframe.h5p-iframe.h5p-initialized")
.should("be.visible")
.within(() => {
cy.get(".h5p-true-false-answers .h5p-true-false-answer")
Expand Down

0 comments on commit bdbcb3f

Please sign in to comment.