From 8dd86a324c9b72945a75e520d75dd9d77b0f43cb Mon Sep 17 00:00:00 2001 From: brandtkeller Date: Wed, 9 Feb 2022 08:20:20 -0800 Subject: [PATCH] Feat: new integration tests / updated PR template --- .github/PULL_REQUEST_TEMPLATE.md | 7 ++++--- cypress/integration/getting_started_spec.js | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 cypress/integration/getting_started_spec.js diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 92a0abb8a..320ec3dd7 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -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 -- [ ] 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 diff --git a/cypress/integration/getting_started_spec.js b/cypress/integration/getting_started_spec.js new file mode 100644 index 000000000..7de629c79 --- /dev/null +++ b/cypress/integration/getting_started_spec.js @@ -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) + }) + +}) \ No newline at end of file