From 2cef4a1247b88c548a3c35a7661a5dca69a334b5 Mon Sep 17 00:00:00 2001 From: Pablo Mayrgundter Date: Sat, 23 Nov 2024 19:06:36 +0100 Subject: [PATCH] cypress: skip broken tests. tracked in issue #1269 --- cypress/e2e/create-100/imagine.cy.js | 3 ++- cypress/e2e/notes-100/access-shared-note.cy.js | 5 ++++- cypress/e2e/open/100/open-model-from-gh-ui.cy.js | 3 ++- cypress/e2e/open/100/open-sample-model.cy.js | 6 ++++-- cypress/e2e/placemarks-100/marker-selection.cy.js | 4 +++- cypress/e2e/search/100/githublink.cy.js | 9 +++++---- cypress/e2e/versions-100/edit-a-model.cy.js | 3 ++- cypress/e2e/view-100/initial-model-load-and-view.cy.js | 3 ++- 8 files changed, 24 insertions(+), 12 deletions(-) diff --git a/cypress/e2e/create-100/imagine.cy.js b/cypress/e2e/create-100/imagine.cy.js index 4c910b44b..786d70c34 100644 --- a/cypress/e2e/create-100/imagine.cy.js +++ b/cypress/e2e/create-100/imagine.cy.js @@ -7,8 +7,9 @@ import { } from '../../support/utils' +// TODO(https://github.com/bldrs-ai/Share/issues/1269): fix and re-enable /** {@link https://github.com/bldrs-ai/Share/issues/1077} */ -describe('create-100: Imagine', () => { +describe.skip('create-100: Imagine', () => { beforeEach(() => { homepageSetup() setIsReturningUser() diff --git a/cypress/e2e/notes-100/access-shared-note.cy.js b/cypress/e2e/notes-100/access-shared-note.cy.js index c270bf68e..cd9383449 100644 --- a/cypress/e2e/notes-100/access-shared-note.cy.js +++ b/cypress/e2e/notes-100/access-shared-note.cy.js @@ -25,11 +25,14 @@ describe('Notes 100: Access shared note', () => { cy.visit('/share/v/p/index.ifc#c:-26.91,28.84,112.47,-22,16.21,-3.48;i:126') waitForModel() }) + it('Panel title to contain NOTE string and back button', () => { cy.get('[data-testid="panelTitle"]').contains('NOTE') cy.get('[data-testid="Back to the list"]').should('exist') }) - it('Shared note and comment to be visible', () => { + + // TODO(https://github.com/bldrs-ai/Share/issues/1269): fix and re-enable + it.skip('Shared note and comment to be visible', () => { cy.get('[data-testid="list-notes"] > :nth-child(4) > [data-testid="note-card"] p').contains('testComment_1') cy.get('.MuiCardHeader-title').contains('issueTitle_4') }) diff --git a/cypress/e2e/open/100/open-model-from-gh-ui.cy.js b/cypress/e2e/open/100/open-model-from-gh-ui.cy.js index 068333cac..dadf1a6b1 100644 --- a/cypress/e2e/open/100/open-model-from-gh-ui.cy.js +++ b/cypress/e2e/open/100/open-model-from-gh-ui.cy.js @@ -24,8 +24,9 @@ describe('Open 100: Open model from GH via UI', () => { interceptTag) }) + // TODO(https://github.com/bldrs-ai/Share/issues/1269): fix and re-enable const interceptTag = 'ghOpenModelLoad' - it('Opens a model from Github via the UI - Screen', () => { + it.skip('Opens a model from Github via the UI - Screen', () => { cy.get('[data-testid="control-button-open"]').click() cy.findByText('Github').click() cy.findByLabelText('Organization', {timeout: 5000}).click() diff --git a/cypress/e2e/open/100/open-sample-model.cy.js b/cypress/e2e/open/100/open-sample-model.cy.js index d996246c4..479d7e0d4 100644 --- a/cypress/e2e/open/100/open-sample-model.cy.js +++ b/cypress/e2e/open/100/open-sample-model.cy.js @@ -19,7 +19,8 @@ describe('Open 100: Open Sample Model', () => { visitHomepageWaitForModel() }) - context('Select OpenModelControl > Sample Models', () => { + // TODO(https://github.com/bldrs-ai/Share/issues/1269): fix and re-enable + context.skip('Select OpenModelControl > Sample Models', () => { beforeEach(() => { cy.get('[data-testid="control-button-open"]').click() cy.get('[data-testid="tab-samples"]').click() @@ -47,7 +48,8 @@ describe('Open 100: Open Sample Model', () => { }) }) - context('Open up all persistent controls', () => { + // TODO(https://github.com/bldrs-ai/Share/issues/1269): fix and re-enable + context.skip('Open up all persistent controls', () => { beforeEach(() => { // Select element, opens nav const interceptEltSelectTag = 'twoLevelSelect' diff --git a/cypress/e2e/placemarks-100/marker-selection.cy.js b/cypress/e2e/placemarks-100/marker-selection.cy.js index c6f84c4ce..b3201e4b7 100644 --- a/cypress/e2e/placemarks-100/marker-selection.cy.js +++ b/cypress/e2e/placemarks-100/marker-selection.cy.js @@ -77,7 +77,9 @@ describe('Placemarks 100: Not visible when notes is not open', () => { cy.percySnapshot() }) - it('should click a marker link with a camera coordinate in it and the camera should change', () => { + + // TODO(https://github.com/bldrs-ai/Share/issues/1269): fix and re-enable + it.skip('should click a marker link with a camera coordinate in it and the camera should change', () => { auth0Login() cy.get('[data-testid="list-notes"]') .children() diff --git a/cypress/e2e/search/100/githublink.cy.js b/cypress/e2e/search/100/githublink.cy.js index dd1e40a45..07290373e 100644 --- a/cypress/e2e/search/100/githublink.cy.js +++ b/cypress/e2e/search/100/githublink.cy.js @@ -31,9 +31,10 @@ describe('Search 100: GitHub Link', () => { .type('https://github.com/Swiss-Property-AG/Momentum-Public/blob/main/Momentum.ifc{enter}') }) - it('Momentum Loads Successfully - Screen', () => { - waitForModelReady(interceptTag) - cy.percySnapshot() - }) + // TODO(https://github.com/bldrs-ai/Share/issues/1269): fix and re-enable + it.skip('Momentum Loads Successfully - Screen', () => { + waitForModelReady(interceptTag) + cy.percySnapshot() + }) }) }) diff --git a/cypress/e2e/versions-100/edit-a-model.cy.js b/cypress/e2e/versions-100/edit-a-model.cy.js index b3099de02..1906122e7 100644 --- a/cypress/e2e/versions-100/edit-a-model.cy.js +++ b/cypress/e2e/versions-100/edit-a-model.cy.js @@ -25,8 +25,9 @@ describe('Versions 100: Edit a specific version', () => { overwriteVersionInterceptTag) }) + // TODO(https://github.com/bldrs-ai/Share/issues/1269): fix and re-enable // Assumes this flow's file exists cypress/e2e/open/100/open-model-from-gh-ui.cy.js - it('Save index.ifc to new name, that overwrites existing other file', () => { + it.skip('Save index.ifc to new name, that overwrites existing other file', () => { cy.findByTitle('Save', {timeout: 5000}).should('exist').click({force: true}) cy.findByLabelText('Organization', {timeout: 5000}).click() cy.contains('@cypresstester').click() diff --git a/cypress/e2e/view-100/initial-model-load-and-view.cy.js b/cypress/e2e/view-100/initial-model-load-and-view.cy.js index ed3a72059..4b06f4f1e 100644 --- a/cypress/e2e/view-100/initial-model-load-and-view.cy.js +++ b/cypress/e2e/view-100/initial-model-load-and-view.cy.js @@ -17,7 +17,8 @@ describe('view 100: Initial model load and view', () => { context('Visits homepage', () => { beforeEach(visitHomepageWaitForModel) - it('See logo model, model title and all main controls - Screen', () => { + // TODO(https://github.com/bldrs-ai/Share/issues/1269): fix and re-enable + it.skip('See logo model, model title and all main controls - Screen', () => { cy.title().should('eq', 'index.ifc - Share/pablo-mayrgundter') cy.get('[data-testid="control-button-open"]').should('exist')