Skip to content

Commit

Permalink
Change how the team settings are set
Browse files Browse the repository at this point in the history
  • Loading branch information
zlwaterfield committed Mar 26, 2024
1 parent 0fd5f6d commit 58d1d6b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 53 deletions.
9 changes: 9 additions & 0 deletions cypress/e2e/before-onboarding.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
describe('Before Onboarding', () => {
beforeEach(() => {
cy.request({
method: 'PATCH',
url: '/api/projects/1/',
body: { completed_snippet_onboarding: false },
headers: { Authorization: 'Bearer e2e_demo_api_key' },

Check failure

Code scanning / CodeQL

Hard-coded credentials Critical

The hard-coded value "Bearer e2e_demo_api_key" is used as
authorization header
.
})
})

it('Navigate to /products when a product has not been set up', () => {
cy.visit('/project/1/data-management/events')

Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/onboarding.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { urls } from 'scenes/urls'
import { decideResponse } from '../fixtures/api/decide'

describe('Onboarding', () => {
Expand Down
File renamed without changes.
48 changes: 0 additions & 48 deletions cypress/fixtures/api/users/user-before-onboarding.json

This file was deleted.

6 changes: 2 additions & 4 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,14 @@ beforeEach(() => {
)

if (Cypress.spec.name.includes('Premium')) {
cy.intercept('/api/users/@me/', { fixture: 'api/users/user-enterprise' })
cy.intercept('/api/users/@me/', { fixture: 'api/user-enterprise' })

cy.request('POST', '/api/login/', {
email: '[email protected]',
password: '12345678',
})
cy.visit('/?no-preloaded-app-context=true')
} else if (Cypress.spec.name.includes('before-onboarding')) {
cy.intercept('/api/users/@me/', { fixture: 'api/users/user-before-onboarding' })

} else if (Cypress.spec.name.includes('before')) {
cy.request('POST', '/api/login/', {
email: '[email protected]',
password: '12345678',
Expand Down

0 comments on commit 58d1d6b

Please sign in to comment.