Feat: new integration tests / updated PR template

This commit is contained in:
brandtkeller 2022-02-09 08:20:20 -08:00
parent aedcc5c91a
commit 8dd86a324c
2 changed files with 21 additions and 3 deletions

View File

@ -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

View 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)
})
})