Skip to content

Commit

Permalink
fix cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Sep 14, 2023
1 parent 6e09fa3 commit 67ceb7a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/diagramUpdate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Auto sync tests', () => {

it('supports commenting code out/in', () => {
cy.get('#editor').contains('Car').click();
cy.focused().type(`${cmd}/`);
cy.type(`${cmd}/`);
cy.get('#view').contains('Car').should('not.exist');

typeInEditor(`{uparrow}${cmd}/`);
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export const typeInEditor = (
cy.window().should('have.property', 'editorLoaded', true);
cy.get('#editor').click();
if (bottom) {
cy.focused().type('{pageDown}');
cy.type('{pageDown}');
}
if (newline) {
cy.focused().type('{enter}');
cy.type('{enter}');
}
cy.focused().type(text);
cy.type(text);
};

const downloadsFolder = Cypress.config('downloadsFolder');
Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/History/history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ export const addHistoryEntry = (entryToAdd: Optional<HistoryEntry, 'id'>): void
}
return [entry, ...entries];
});
} else if (entry.type === 'manual') {
manualHistoryStore.update((entries) => [entry, ...entries]);
logEvent('history', { action: 'save' });
}

manualHistoryStore.update((entries) => [entry, ...entries]);
logEvent('history', { action: 'save' });
};

export const clearHistoryData = (idToClear?: string): void => {
Expand Down

0 comments on commit 67ceb7a

Please sign in to comment.