Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
Add Cypress Test Framework & Create tests (#166)
Browse files Browse the repository at this point in the history
Add framework for Cypress testing and test file for Create page
  • Loading branch information
davidcui1225 authored Nov 3, 2020
1 parent 4cdd12c commit 73903da
Show file tree
Hide file tree
Showing 17 changed files with 744 additions and 110 deletions.
10 changes: 10 additions & 0 deletions kibana-reports/cypress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"baseUrl": "http://localhost:5601",
"video": false,
"fixturesFolder": "test/cypress/fixtures",
"integrationFolder": "test/cypress/integration",
"pluginsFile": "test/cypress/plugins/index.js",
"screenshotsFolder": "test/cypress/screenshots",
"supportFile": "test/cypress/support/index.js",
"videosFolder": "test/cypress/videos"
}
1 change: 1 addition & 0 deletions kibana-reports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"babel-polyfill": "^6.26.0",
"cheerio": "^1.0.0-rc.3",
"cron-validator": "^1.1.1",
"cypress": "^5.5.0",
"dompurify": "^2.1.1",
"elastic-builder": "^2.7.1",
"enzyme-adapter-react-16": "^1.15.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ exports[`<Main /> panel render component 1`] = `
>
<button
class="euiButton euiButton--primary euiButton--fill"
id="createReportHomepageButton"
type="button"
>
<span
Expand Down Expand Up @@ -1382,6 +1383,7 @@ exports[`<Main /> panel render component after create success 1`] = `
>
<button
class="euiButton euiButton--primary euiButton--fill"
id="createReportHomepageButton"
type="button"
>
<span
Expand Down Expand Up @@ -2328,6 +2330,7 @@ exports[`<Main /> panel render component after edit success 1`] = `
>
<button
class="euiButton euiButton--primary euiButton--fill"
id="createReportHomepageButton"
type="button"
>
<span
Expand Down
1 change: 1 addition & 0 deletions kibana-reports/public/components/main/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export function Main(props) {
onClick={() => {
window.location.assign('opendistro_kibana_reports#/create');
}}
id={'createReportHomepageButton'}
>
Create
</EuiButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ export function CreateReport(props) {
timeRange
)
}
id={'createNewReportDefinition'}
>
Create
</EuiButton>
Expand Down
Loading

0 comments on commit 73903da

Please sign in to comment.