From 76a17a39e5e81e2b5d9c7093464faad01cbb4bb7 Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Sat, 23 Sep 2023 06:48:32 +0300 Subject: [PATCH] remove image testing --- cypress/integration/index.spec.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/cypress/integration/index.spec.ts b/cypress/integration/index.spec.ts index 8cc3fab7..f752fdfb 100644 --- a/cypress/integration/index.spec.ts +++ b/cypress/integration/index.spec.ts @@ -23,13 +23,6 @@ it('Loads & renders singleplayer', () => { cy.get('#title-screen').find('[data-test-id="singleplayer-button"]', { includeShadowDom: true, }).click() // todo implement load event cy.wait(12000) - cy.window().then((window) => { - window.bot.entity.pitch = 1.5 - }) - cy.wait(500) - cy.get('body').toMatchImageSnapshot({ - name: 'superflat-world', - }) }) // even on local testing indeed it doesn't work sometimes, but sometimes it does @@ -43,13 +36,6 @@ it.skip('Joins to server', () => { cy.get('[data-test-id="connect-to-server"]', { includeShadowDom: true, }).click() // todo implement load event cy.wait(16000) - cy.window().then((window) => { - window.bot.entity.pitch = 1.5 - }) - cy.wait(500) - cy.get('body').toMatchImageSnapshot({ - name: 'superflat-world', - }) }) it('Loads & renders zip world', () => { @@ -59,13 +45,6 @@ it('Loads & renders zip world', () => { cy.get('input[type="file"]').selectFile('cypress/superflat.zip', { force: true }) // todo implement load event cy.wait(10000) - cy.window().then((window) => { - window.bot.entity.pitch = 1.5 - }) - cy.wait(500) - cy.get('body').toMatchImageSnapshot({ - name: 'superflat-world', - }) }) it.skip('Performance test', () => {