Skip to content

Commit 360752b

Browse files
committed
fix: run prettier
1 parent 25f306d commit 360752b

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

cypress/e2e/main.cy.js

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ describe("MusicBlocks Application", () => {
1414
describe("Loading and Initial Render", () => {
1515
it("should display the loading animation and then the main content", () => {
1616
cy.get("#loading-image-container").should("be.visible");
17-
cy.contains("#loadingText", "Loading Complete!", { timeout: 20000 }).should("be.visible");
17+
cy.contains("#loadingText", "Loading Complete!", { timeout: 20000 }).should(
18+
"be.visible"
19+
);
1820
cy.wait(10000);
1921
cy.get("#canvas", { timeout: 10000 }).should("be.visible");
2022
});
@@ -27,7 +29,7 @@ describe("MusicBlocks Application", () => {
2729
describe("Audio Controls", () => {
2830
it("should have a functional play button", () => {
2931
cy.get("#play").should("be.visible").click();
30-
cy.window().then((win) => {
32+
cy.window().then(win => {
3133
const audioContext = win.Tone.context;
3234
cy.wrap(audioContext.state).should("eq", "running");
3335
});
@@ -78,9 +80,7 @@ describe("MusicBlocks Application", () => {
7880
});
7981

8082
it('should click the New File button and verify "New Project" appears', () => {
81-
cy.get("#newFile > .material-icons")
82-
.should("exist")
83-
.and("be.visible");
83+
cy.get("#newFile > .material-icons").should("exist").and("be.visible");
8484
cy.get("#newFile > .material-icons").click();
8585
cy.wait(500);
8686
cy.contains("New project").should("be.visible");
@@ -110,19 +110,12 @@ describe("MusicBlocks Application", () => {
110110
];
111111

112112
sidebarElements.forEach(selector => {
113-
cy.get(selector)
114-
.should("exist")
115-
.and("be.visible")
116-
.click();
113+
cy.get(selector).should("exist").and("be.visible").click();
117114
});
118115
});
119116

120117
it("should verify that Grid, Clear, and Collapse elements exist and are visible", () => {
121-
const elements = [
122-
"#Grid > img",
123-
"#Clear",
124-
"#Collapse > img"
125-
];
118+
const elements = ["#Grid > img", "#Clear", "#Collapse > img"];
126119
elements.forEach(selector => {
127120
cy.get(selector).should("exist").and("be.visible");
128121
});
@@ -146,12 +139,12 @@ describe("MusicBlocks Application", () => {
146139
.and("have.attr", "src")
147140
.and("not.be.empty");
148141

149-
cy.get("#planet-iframe").then(($iframe) => {
142+
cy.get("#planet-iframe").then($iframe => {
150143
const iframeSrc = $iframe.attr("src");
151144
cy.log("Iframe source:", iframeSrc);
152145
});
153146

154-
cy.window().then((win) => {
147+
cy.window().then(win => {
155148
win.document.getElementById("planet-iframe").style.display = "block";
156149
});
157150
});

0 commit comments

Comments
 (0)