-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dw-data-warehouse-person-properties-2
- Loading branch information
Showing
183 changed files
with
3,774 additions
and
1,357 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,56 @@ describe('Signup', () => { | |
cy.location('pathname').should('match', /\/verify_email\/[a-zA-Z0-9_.-]*/) | ||
}) | ||
|
||
it('Can submit the signup form multiple times if there is a generic email set', () => { | ||
cy.intercept('POST', '/api/signup/').as('signupRequest') | ||
|
||
// Create initial account | ||
const email = `[email protected]` | ||
cy.get('[data-attr=signup-email]').type(email).should('have.value', email) | ||
cy.get('[data-attr=password]').type('12345678').should('have.value', '12345678') | ||
cy.get('[data-attr=signup-start]').click() | ||
cy.get('[data-attr=signup-name]').type('Alice Bob').should('have.value', 'Alice Bob') | ||
cy.get('[data-attr=signup-submit]').click() | ||
|
||
cy.wait('@signupRequest').then((interception) => { | ||
expect(interception.request.body).to.have.property('first_name') | ||
expect(interception.request.body.first_name).to.equal('Alice') | ||
expect(interception.request.body).to.have.property('last_name') | ||
expect(interception.request.body.last_name).to.equal('Bob') | ||
}) | ||
|
||
cy.visit('/signup') | ||
|
||
// Try to recreate account with same email- should fail | ||
cy.get('[data-attr=signup-email]').type(email).should('have.value', email) | ||
cy.get('[data-attr=password]').type('12345678').should('have.value', '12345678') | ||
cy.get('[data-attr=signup-start]').click() | ||
cy.get('[data-attr=signup-name]').type('Alice Bob').should('have.value', 'Alice Bob') | ||
cy.get('[data-attr=signup-submit]').click() | ||
|
||
cy.wait('@signupRequest').then((interception) => { | ||
cy.get('.LemonBanner').should('contain', 'There is already an account with this email address.') | ||
}) | ||
|
||
cy.get('[data-attr=signup-go-back]').click() | ||
|
||
// Update email to generic email | ||
const newEmail = `new_user+${Math.floor(Math.random() * 10000)}@posthog.com` | ||
cy.get('[data-attr=signup-email]').clear().type(newEmail).should('have.value', newEmail) | ||
cy.get('[data-attr=signup-start]').click() | ||
cy.get('[data-attr=signup-submit]').click() | ||
|
||
cy.wait('@signupRequest').then((interception) => { | ||
expect(interception.request.body).to.have.property('first_name') | ||
expect(interception.request.body.first_name).to.equal('Alice') | ||
expect(interception.request.body).to.have.property('last_name') | ||
expect(interception.request.body.last_name).to.equal('Bob') | ||
}) | ||
|
||
// lazy regex for a guid | ||
cy.location('pathname').should('match', /\/verify_email\/[a-zA-Z0-9_.-]*/) | ||
}) | ||
|
||
it('Can create user account with just a first name', () => { | ||
cy.intercept('POST', '/api/signup/').as('signupRequest') | ||
|
||
|
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
Binary file modified
BIN
+4.73 KB
(110%)
frontend/__snapshots__/scenes-app-pipeline--pipeline-node-configuration--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.75 KB
(110%)
frontend/__snapshots__/scenes-app-pipeline--pipeline-node-configuration--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7.19 KB
(150%)
.../__snapshots__/scenes-app-pipeline--pipeline-node-configuration-empty--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7.17 KB
(150%)
...__snapshots__/scenes-app-pipeline--pipeline-node-configuration-empty--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.11 KB
(99%)
...end/__snapshots__/scenes-app-pipeline--pipeline-nodes-management-page--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.62 KB
(99%)
...nd/__snapshots__/scenes-app-pipeline--pipeline-nodes-management-page--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+13.3 KB
(120%)
frontend/__snapshots__/scenes-other-onboarding--onboarding-sd-ks--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+13.5 KB
(120%)
frontend/__snapshots__/scenes-other-onboarding--onboarding-sd-ks--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,74 @@ | ||
export interface Theme { | ||
id: string | ||
name: string | ||
dark?: boolean | ||
sidebarStyle?: React.CSSProperties | ||
mainStyle?: React.CSSProperties | ||
boxStyle?: React.CSSProperties | ||
} | ||
|
||
export const themes: Theme[] = [ | ||
{ | ||
id: 'bleachedTom', | ||
name: 'Hi, My name is Tom, and I am the light.', | ||
dark: false, | ||
sidebarStyle: { | ||
background: | ||
'linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)),url(https://www.shutterstock.com/image-photo/soft-wave-blue-ocean-on-600nw-396969259.jpg)', | ||
}, | ||
mainStyle: { | ||
background: | ||
'linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)),url(https://pbs.twimg.com/profile_images/1237550450/mstom_400x400.jpg)', | ||
}, | ||
boxStyle: { | ||
background: 'linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7))', | ||
}, | ||
}, | ||
{ | ||
id: 'developers', | ||
name: 'Developers, Developers, Developers, Developers', | ||
dark: false, | ||
sidebarStyle: { | ||
background: | ||
'linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)),url(https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExOWM2eDhveXRrNTJrdGZ5bmdhaGJrZWNqczFiZzUzMXF5aXc5azljNSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/2yuiXIlW8TwY2raAPB/giphy-downsized-large.gif)', | ||
}, | ||
mainStyle: { | ||
background: | ||
'linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)),url(https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExa3ljdm5mczV3dnQza3lqY3E1czEyd3J0d3A4ZmtqbGE3a2JybTJlMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/l3q2zbskZp2j8wniE/giphy-downsized-large.gif)', | ||
}, | ||
boxStyle: { | ||
background: 'linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7))', | ||
}, | ||
}, | ||
{ | ||
id: 'livelaughhog', | ||
name: 'Live, Laugh, Hog', | ||
dark: false, | ||
sidebarStyle: { | ||
background: | ||
'linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), repeat url(https://i.imgur.com/okHCBbPl.png)', | ||
}, | ||
mainStyle: { | ||
background: | ||
'linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), repeat url(https://i.imgur.com/okHCBbPl.png)', | ||
}, | ||
boxStyle: { | ||
background: 'linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7))', | ||
}, | ||
}, | ||
{ | ||
id: 'herisson', | ||
name: 'Live, Laugh, Hog', | ||
dark: false, | ||
mainStyle: { | ||
background: | ||
'linear-gradient(rgba(255,255,255,0.5),rgba(255,255,255,0.5)), url(https://i.imgur.com/RrGMCR6.jpeg)', | ||
backgroundSize: 'contain', | ||
backgroundPosition: 'center', | ||
backgroundRepeat: 'repeat', | ||
}, | ||
boxStyle: { | ||
background: 'linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7))', | ||
}, | ||
}, | ||
] |
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
Oops, something went wrong.