oncall-engine/.github/workflows
Joey Orlando 8f22b2fd74
first UI integration test - phone verification + receive SMS alert flow (#900)
**What this PR does**:
Adds our first UI integration test using
[Playwright](https://playwright.dev/) and runs the test on CI. Right now
the test:
- logs into Grafana
- configures the plugin (if it isn't already)
- creates an OnCall schedule, where the current user will be OnCall
- creates an escalation chain to notify based on the newly created
OnCall schedule
- creates a webhook integration, attached to the created escalation
chain
- sends a demo alert for the new integration
- goes to the alert groups page and validates that the escalation step
to alert the OnCall user actually happened

Currently the Playwright tests are run against the 3 default headless
browsers, chromium, Firefox, and webkit. The CI job that runs these
tests is run as a matrix against 3 tagged versions of `grafana`; `main`,
`latest`, and `9.2.6`.

Secondly, it adds most of the logic for a second test which:
- logs into Grafana
- configures the plugin (if it isn't already)
- goes to the user's settings, verifies their phone number (using a tool
called [MailSlurp](https://www.mailslurp.com/))
- configures the current user's default escalation policy to send alerts
via SMS
- creates an escalation policy and configures it to send alerts to our
current user
- creates an integration and assigns the created escalation policy
- triggers a test alert + verifies that we receive the SMS alert text
(again, using MailSlurp)

**Which issue(s) this PR fixes**:
Closes #873 

**Checklist**
- [x] Tests updated
- [ ] Documentation added (N/A)
- [ ] `CHANGELOG.md` updated (N/A)
2023-03-06 16:28:52 +00:00
..
ci.yml trigger github actions jobs on merge_group event (#1346) 2023-02-22 15:05:48 +01:00
helm_release.yml Remove helm chart signing (#1126) 2023-01-12 19:02:44 +08:00
helm_release_pr.yml Update helm_release_pr.yml 2023-01-20 16:41:51 +08:00
integration_tests.yml first UI integration test - phone verification + receive SMS alert flow (#900) 2023-03-06 16:28:52 +00:00
issue_commands.yml Use organization ISSUE_COMMANDS_TOKEN with reduced scope (#1248) 2023-02-02 07:42:53 +01:00
publish-technical-documentation-next.yml Update publishing workflows to use organization secret (#1301) 2023-02-21 10:19:19 +01:00
publish-technical-documentation-release.yml Update publishing workflows to use organization secret (#1301) 2023-02-21 10:19:19 +01:00
snyk.yml trigger github actions jobs on merge_group event (#1346) 2023-02-22 15:05:48 +01:00
verify-changelog-updated.yml don't run changelog/public-docs CI checks on merge_group Github events (#1388) 2023-02-22 16:18:25 +01:00
verify-public-docs-updated.yml don't run changelog/public-docs CI checks on merge_group Github events (#1388) 2023-02-22 16:18:25 +01:00