Skip to content

Commit

Permalink
Fix projects-path spec storage keys
Browse files Browse the repository at this point in the history
  • Loading branch information
halilcengel committed Jul 8, 2024
1 parent d8fe2b6 commit c1935f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cypress/e2e/projects-path.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("Projects Path", () => {

cy.waitEvent("CONTAINER_LOADED");

cy.storageGet("ide.selected.context").then((project) => {
cy.storageGet("ide.selected.project").then((project) => {
expect(project).to.exist;
expect(project).to.have.property("id", cloudProjectId);
expect(project).to.have.property("type", "CLOUD");
Expand Down Expand Up @@ -45,7 +45,7 @@ describe("Projects Path", () => {
const localProjectId = "3450f289-0fc5-45e9-9a4a-606c0a63cdfe";
const selectedProject = { id: localProjectId, type: "LOCAL" };

cy.storageSet("ide.selected.context", selectedProject);
cy.storageSet("ide.selected.project", selectedProject);

cy.visit("/");

Expand All @@ -62,11 +62,11 @@ describe("Projects Path", () => {
const pathParts = pathname.split("/");
const projectId = pathParts[pathParts.length - 2];

cy.storageGet(`ide.context.${projectId}`).as("project");
cy.storageGet(`ide.specification.${projectId}`).as("project");

cy.get("@project").should("exist");

cy.storageGet(`ide.selected.context`).as("selectedProject");
cy.storageGet(`ide.selected.project`).as("selectedProject");

cy.get("@selectedProject")
.should((selectedProject) => {
Expand All @@ -91,7 +91,7 @@ describe("Projects Path", () => {
const pathParts = pathname.split("/");
const projectId = pathParts[pathParts.length - 2];

cy.storageGet(`ide.selected.context`).then((selectedProject) => {
cy.storageGet(`ide.selected.project`).then((selectedProject) => {
expect(selectedProject.id).to.equal(projectId);
expect(selectedProject.type).to.equal("LOCAL");
});
Expand Down

0 comments on commit c1935f5

Please sign in to comment.