Remove debounce

This commit is contained in:
Sidharth Vinod
2022-09-02 21:04:42 +05:30
parent 64e8ed09ba
commit 4c86d95f21
5 changed files with 3 additions and 9 deletions
+1 -2
View File
@@ -1,9 +1,8 @@
import { disableDebounce, verifyFileSize } from './util';
import { verifyFileSize } from './util';
describe('Check actions', () => {
beforeEach(() => {
cy.clearLocalStorage();
cy.visit('/edit');
disableDebounce();
});
it('should update markdown code', () => {
-2
View File
@@ -4,7 +4,6 @@ describe('Auto sync tests', () => {
beforeEach(() => {
cy.clearLocalStorage();
cy.visit('/');
disableDebounce();
});
it('should dim diagram when code is edited', () => {
@@ -72,7 +71,6 @@ describe.only('Pan and Zoom', () => {
beforeEach(() => {
cy.clearLocalStorage();
cy.visit('/');
disableDebounce();
});
it('should toggle pan and zoom', () => {
cy.get('#svg-pan-zoom-reset-pan-zoom').should('not.exist');
+2 -2
View File
@@ -1,11 +1,11 @@
import { getEditor, disableDebounce, verifyFileSnapshot } from './util';
import { getEditor, verifyFileSnapshot } from './util';
describe('Save History', () => {
beforeEach(() => {
cy.clock(new Date(2022, 0, 1).getTime());
cy.clearLocalStorage();
cy.visit('/edit');
disableDebounce();
cy.contains('Actions').click();
cy.contains('History').click();
});
-1
View File
@@ -5,7 +5,6 @@ describe('Site Loads', () => {
beforeEach(() => {
cy.clearLocalStorage();
cy.visit('/');
disableDebounce();
});
it('Check Home page load', () => {
cy.url().should('include', '/edit');
-2
View File
@@ -8,8 +8,6 @@ export const getEditor = ({ bottom = true, newline = false } = {}) =>
.type(`${bottom ? '{pageDown}' : cmd}`)
.type(`${newline ? '{enter}' : cmd}`);
export const disableDebounce = () => cy.setLocalStorage('noDebounce', 'true');
const downloadsFolder = Cypress.config('downloadsFolder');
export const verifyFileSize = (