Skip to content

Commit

Permalink
test: fix add node type test
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Oct 1, 2024
1 parent 5ad8438 commit fca0324
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 6 deletions.
11 changes: 6 additions & 5 deletions cypress/e2e/addNode/addNodeType.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,23 @@ describe('Add Node Type Via BluePrint', () => {
url: 'http://localhost:8444/api/schema*',
}).as('schemaRequest')

cy.intercept({
method: 'GET',
url: 'http://localhost:8444/api/schema/all*',
}).as('schemaList')

cy.initialSetup('alice', 300)

const nodeType = 'Player'

cy.get('[data-testid="add-blueprint-modal"]').click()
cy.wait(1000)

cy.intercept({
method: 'GET',
url: 'http://localhost:8444/api/schema/all*',
}).as('schemaList')

cy.get('[data-testid="add-schema-type"]').click()
cy.wait('@schemaList')

cy.get('#blur-on-select').click()
cy.wait(20000)
cy.get('[data-testid="Thing"]').click()

cy.get('#cy-item-name').type(nodeType)
Expand Down
Loading

0 comments on commit fca0324

Please sign in to comment.