Skip to content

Commit

Permalink
cypress: skip broken tests. tracked in issue bldrs-ai#1269
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-mayrgundter committed Nov 23, 2024
1 parent c70aa3d commit 2cef4a1
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 12 deletions.
3 changes: 2 additions & 1 deletion cypress/e2e/create-100/imagine.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
5 changes: 4 additions & 1 deletion cypress/e2e/notes-100/access-shared-note.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
Expand Down
3 changes: 2 additions & 1 deletion cypress/e2e/open/100/open-model-from-gh-ui.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 4 additions & 2 deletions cypress/e2e/open/100/open-sample-model.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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'
Expand Down
4 changes: 3 additions & 1 deletion cypress/e2e/placemarks-100/marker-selection.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
9 changes: 5 additions & 4 deletions cypress/e2e/search/100/githublink.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})
})
3 changes: 2 additions & 1 deletion cypress/e2e/versions-100/edit-a-model.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 2 additions & 1 deletion cypress/e2e/view-100/initial-model-load-and-view.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 2cef4a1

Please sign in to comment.