-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cypress OnBoaring flow through the UI
- Loading branch information
Showing
14 changed files
with
533 additions
and
20 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
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
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
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,36 @@ | ||
describe('On Boarding Flow Tests', () => { | ||
|
||
beforeEach(() => { | ||
cy.visit('localhost:3000') | ||
}); | ||
|
||
it('Source page redirects correctly', () => { | ||
cy.url().should('eq', 'http://localhost:3000/choose-sources'); | ||
}) | ||
|
||
it('Run on the onboarding flow', () => { | ||
// Select All Apps | ||
cy.get('[data-cy="choose-source-coupon"]').should('exist').click() | ||
cy.get('[data-cy="choose-source-frontend"]').should('exist').click() | ||
cy.get('[data-cy="choose-source-inventory"]').should('exist').click() | ||
cy.get('[data-cy="choose-source-membership"]').should('exist').click() | ||
cy.get('[data-cy="choose-source-pricing"]').should('exist').click() | ||
|
||
// Click Next Page | ||
cy.get('[data-cy="choose-source-next-click"]').should('exist').click() | ||
|
||
// Select Tempo | ||
cy.url().should('eq', 'http://localhost:3000/choose-destination'); | ||
cy.get('[data-cy="choose-destination-Tempo"]').should('exist').click() | ||
|
||
// Fill Destination Form | ||
cy.url().should('eq', 'http://localhost:3000/connect-destination?type=tempo'); | ||
cy.get('[data-cy=create-destination-input-name]').type('e2e-tests'); | ||
cy.get('[data-cy=create-destination-input-endpoint]').type('e2e-tests-tempo.traces:4317'); | ||
cy.get('[data-cy="create-destination-create-click"]').should('exist').click() | ||
|
||
cy.url().should('eq', 'http://localhost:3000/overview'); | ||
|
||
}); | ||
} | ||
); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: coupon | ||
namespace: default | ||
labels: | ||
app: coupon | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: coupon | ||
template: | ||
metadata: | ||
labels: | ||
app: coupon | ||
spec: | ||
containers: | ||
- name: coupon | ||
image: keyval/odigos-demo-coupon:v0.1 | ||
imagePullPolicy: IfNotPresent | ||
env: | ||
- name: MEMBERSHIP_SERVICE_HOST | ||
value: "membership:8080" | ||
ports: | ||
- containerPort: 8080 | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: coupon | ||
namespace: default | ||
spec: | ||
selector: | ||
app: coupon | ||
ports: | ||
- protocol: TCP | ||
port: 8080 | ||
targetPort: 8080 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: frontend | ||
namespace: default | ||
labels: | ||
app: frontend | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: frontend | ||
template: | ||
metadata: | ||
labels: | ||
app: frontend | ||
spec: | ||
containers: | ||
- name: frontend | ||
image: keyval/odigos-demo-frontend:v0.2 | ||
imagePullPolicy: IfNotPresent | ||
securityContext: | ||
runAsUser: 1000 | ||
env: | ||
- name: INVENTORY_SERVICE_HOST | ||
value: inventory:8080 | ||
- name: PRICING_SERVICE_HOST | ||
value: pricing:8080 | ||
- name: COUPON_SERVICE_HOST | ||
value: coupon:8080 | ||
ports: | ||
- containerPort: 8080 | ||
readinessProbe: | ||
httpGet: | ||
path: /actuator/health/readiness | ||
port: 8080 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 5 | ||
livenessProbe: | ||
httpGet: | ||
path: /actuator/health/liveness | ||
port: 8080 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 5 | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: frontend | ||
namespace: default | ||
spec: | ||
selector: | ||
app: frontend | ||
ports: | ||
- protocol: TCP | ||
port: 8080 | ||
targetPort: 8080 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: inventory | ||
namespace: default | ||
labels: | ||
app: inventory | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: inventory | ||
template: | ||
metadata: | ||
labels: | ||
app: inventory | ||
spec: | ||
containers: | ||
- name: inventory | ||
image: keyval/odigos-demo-inventory:v0.1 | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 8080 | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: inventory | ||
namespace: default | ||
spec: | ||
selector: | ||
app: inventory | ||
ports: | ||
- protocol: TCP | ||
port: 8080 | ||
targetPort: 8080 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: membership | ||
namespace: default | ||
labels: | ||
app: membership | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: membership | ||
template: | ||
metadata: | ||
labels: | ||
app: membership | ||
spec: | ||
containers: | ||
- name: membership | ||
image: keyval/odigos-demo-membership:v0.1 | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 8080 | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: membership | ||
namespace: default | ||
spec: | ||
selector: | ||
app: membership | ||
ports: | ||
- protocol: TCP | ||
port: 8080 | ||
targetPort: 8080 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: pricing | ||
namespace: default | ||
labels: | ||
app: pricing | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: pricing | ||
template: | ||
metadata: | ||
labels: | ||
app: pricing | ||
spec: | ||
containers: | ||
- name: pricing | ||
image: keyval/odigos-demo-pricing:v0.1 | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 8080 | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: pricing | ||
namespace: default | ||
spec: | ||
selector: | ||
app: pricing | ||
ports: | ||
- protocol: TCP | ||
port: 8080 | ||
targetPort: 8080 |
Oops, something went wrong.