mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Feat: new integration tests / updated PR template
This commit is contained in:
parent
aedcc5c91a
commit
8dd86a324c
7
.github/PULL_REQUEST_TEMPLATE.md
vendored
7
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -12,6 +12,7 @@ Put an `x` in the boxes that apply
|
||||
|
||||
- [ ] Bugfix (non-breaking change which fixes an issue)
|
||||
- [ ] New feature (non-breaking change which adds functionality)
|
||||
- [ ] Improved node content
|
||||
|
||||
<!--
|
||||
If you want to raise a pull-request with a new feature, or a refactoring
|
||||
@ -28,7 +29,7 @@ the [forum](https://discourse.nodered.org) or
|
||||
## Checklist
|
||||
<!-- Put an `x` in the boxes that apply -->
|
||||
|
||||
- [ ] I have read the [contribution guidelines](https://github.com/node-red/node-red/blob/master/CONTRIBUTING.md)
|
||||
- [ ] I have read the [contribution guidelines](../docs/sparkles-guides-contribution.md)
|
||||
- [ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
|
||||
- [ ] I have run `grunt` to verify the unit tests pass
|
||||
- [ ] I have added suitable unit tests to cover the new/changed functionality
|
||||
- [ ] I have run `cypress` to verify the tests pass
|
||||
- [ ] I have added suitable tests to cover the new/changed functionality
|
||||
|
17
cypress/integration/getting_started_spec.js
Normal file
17
cypress/integration/getting_started_spec.js
Normal file
@ -0,0 +1,17 @@
|
||||
// Some basic integration tests that serve as a forcing function to acknowledge testing
|
||||
// when adding/removing content
|
||||
describe('The Getting Start Flow', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit('')
|
||||
})
|
||||
|
||||
it('Getting Started Flow tab exists', () => {
|
||||
cy.get('#red-ui-tab-c86af370eff94afa > .red-ui-tab-label').should('exist')
|
||||
})
|
||||
|
||||
it('Has expected nodes in Flow', () => {
|
||||
cy.contains('(Engineer) Unicorn Getting Started').click()
|
||||
cy.get('.red-ui-flow-node-group').should('have.length', 9)
|
||||
})
|
||||
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user