Skip to content

Commit

Permalink
Adapt commands to new local save logic
Browse files Browse the repository at this point in the history
  • Loading branch information
halilcengel committed Jul 8, 2024
1 parent 8f3895b commit d8fe2b6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,19 @@ Cypress.Commands.add("setup", (container, fixtureType, type) => {
cy.fixture("PROJECTS/LOCAL/project").then((context) => {
const { project, types, functions, logic, api, declarations } =
context;
cy.storageSet(`ide.context.3450f289-0fc5-45e9-9a4a-606c0a63cdfe`, {
project: project,
specification: {
cy.storageSet(
`ide.specification.3450f289-0fc5-45e9-9a4a-606c0a63cdfe`,
{
api,
logic,
functions,
types,
declarations,
},
}
);
cy.storageSet(`ide.project.3450f289-0fc5-45e9-9a4a-606c0a63cdfe`, {
...project,
id: "3450f289-0fc5-45e9-9a4a-606c0a63cdfe",
});
});
}
Expand Down Expand Up @@ -327,7 +331,7 @@ Cypress.Commands.add(
"checkLocalContext",
(projectId, specification, changedEditorValue) => {
let checkedSpecification;
cy.storageGet(`ide.context.${projectId}`).then((project) => {
cy.storageGet(`ide.specification.${projectId}`).then((project) => {
if (specification === "api") {
checkedSpecification = project.specification.api[0]["action"];
} else if (specification === "declaration") {
Expand Down

0 comments on commit d8fe2b6

Please sign in to comment.