mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add basic cypress tests
This commit is contained in:
19
cypress/integration/home_page_spec.js
Normal file
19
cypress/integration/home_page_spec.js
Normal file
@@ -0,0 +1,19 @@
|
||||
describe('The Home Page', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('')
|
||||
})
|
||||
it('has a flow', () => {
|
||||
cy.get('.red-ui-text-bidi-aware').should('exist')
|
||||
})
|
||||
it('has a node', () => {
|
||||
cy.get('.red-ui-palette-node').should('exist')
|
||||
})
|
||||
context('with a node', () => {
|
||||
it('has an input', ()=> {
|
||||
cy.get('#red-ui-palette-common-input').should('exist')
|
||||
})
|
||||
it('has an output', ()=> {
|
||||
cy.get('#red-ui-palette-common-output').should('exist')
|
||||
})
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user