-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #270 from giranm/release/v0.4.0-beta.0
[Release] v0.4.0 beta.0
- Loading branch information
Showing
26 changed files
with
705 additions
and
982 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const { defineConfig } = require('cypress') | ||
const dotenv = require('dotenv'); | ||
const cypressFailFast = require('cypress-fail-fast/plugin'); | ||
|
||
module.exports = defineConfig({ | ||
video: false, | ||
viewportWidth: 1920, | ||
viewportHeight: 1080, | ||
defaultCommandTimeout: 15000, | ||
retries: 3, | ||
e2e: { | ||
setupNodeEvents(on, config) { | ||
dotenv.config(); | ||
cypressFailFast(on, config); | ||
config.env.PD_USER_TOKEN = process.env.REACT_APP_PD_USER_TOKEN; | ||
return config; | ||
}, | ||
baseUrl: 'http://localhost:3000/pd-live-react', | ||
specPattern: 'cypress/e2e/**/*.spec.{js,ts,jsx,tsx}', | ||
}, | ||
component: { | ||
setupNodeEvents(on, config) {}, | ||
specPattern: 'src/**/*.spec.{js,ts,jsx,tsx}', | ||
}, | ||
}) |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { | ||
faker, | ||
} from '@faker-js/faker'; | ||
|
||
const generateMockEscalationPolicy = () => { | ||
// Generate Faker stubs for escalation policy | ||
const id = faker.random.alphaNumeric(7); | ||
const escalationPolicyName = faker.name.jobArea(); | ||
return { | ||
id, | ||
summary: escalationPolicyName, | ||
self: `https://api.pagerduty.com/escalation_policies/${id}`, | ||
html_url: `https://www.pagerduty.com/escalation_policies/${id}`, | ||
}; | ||
}; | ||
|
||
export const generateMockEscalationPolicies = (num) => Array.from({ length: num }, () => generateMockEscalationPolicy()); | ||
|
||
export default generateMockEscalationPolicies; | ||
|
||
test.skip('Mock Teams', () => 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { | ||
faker, | ||
} from '@faker-js/faker'; | ||
|
||
const generateMockService = () => { | ||
// Generate Faker stubs for service | ||
const id = faker.random.alphaNumeric(7); | ||
const serviceName = faker.commerce.product(); | ||
return { | ||
id, | ||
summary: serviceName, | ||
self: `https://api.pagerduty.com/services/${id}`, | ||
html_url: `https://www.pagerduty.com/services/${id}`, | ||
}; | ||
}; | ||
|
||
export const generateMockServices = (num) => Array.from({ length: num }, () => generateMockService()); | ||
|
||
export default generateMockServices; | ||
|
||
test.skip('Mock Services', () => 1); |
Oops, something went wrong.