-
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 tom/folder-path-replace
- Loading branch information
Showing
196 changed files
with
5,162 additions
and
2,902 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,12 +73,12 @@ jobs: | |
- if: ${{ !endsWith(matrix.os, '-arm') }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
python-version: '3.10' | ||
|
||
- if: ${{ endsWith(matrix.os, '-arm') }} | ||
uses: deadsnakes/[email protected] # Unfortunately actions/setup-python@v4 just doesn't work on ARM! This does | ||
with: | ||
python-version: '3.11' | ||
python-version: '3.10' | ||
|
||
# # This is an alternative way to install Python 3.11 on ARM if the above fails | ||
# - if: ${{ endsWith(matrix.os, '-arm') }} | ||
|
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
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 |
---|---|---|
@@ -1,8 +1,40 @@ | ||
import { urls } from 'scenes/urls' | ||
|
||
// For tests related to team members administration please see `inviteMembers.js` | ||
describe('Organization settings', () => { | ||
beforeEach(() => { | ||
cy.intercept('/api/billing/', { fixture: 'api/billing/billing.json' }) | ||
cy.useSubscriptionStatus('subscribed') | ||
}) | ||
it('can navigate to organization settings', () => { | ||
cy.get('[data-attr=menu-item-me]').click() | ||
cy.get('[data-attr=top-menu-item-org-settings]').click() | ||
cy.location('pathname').should('include', '/settings/organization') | ||
}) | ||
it('can create a new organization', () => { | ||
cy.visit(urls.settings('organization'), { | ||
onLoad(win: Cypress.AUTWindow) { | ||
;(win as any).POSTHOG_APP_CONTEXT.preflight.cloud = true | ||
}, | ||
}) | ||
cy.get('[data-attr=breadcrumb-organization]').click() | ||
cy.get('[data-attr=new-organization-button]').click() | ||
cy.get('[data-attr=organization-name-input]').type('New Organization') | ||
cy.get('[data-attr=create-organization-ok]').click() | ||
cy.get('[data-attr=organization-name-input-settings]').should('have.value', 'New Organization') | ||
}) | ||
it('can delete an organization', () => { | ||
cy.visit(urls.settings('organization'), { | ||
onLoad(win: Cypress.AUTWindow) { | ||
;(win as any).POSTHOG_APP_CONTEXT.preflight.cloud = true | ||
}, | ||
}) | ||
cy.get('[data-attr=organization-name-input-settings]').should('have.value', 'New Organization') | ||
cy.get('[data-attr=delete-organization-button]').click() | ||
cy.get('[data-attr=delete-organization-confirmation-input]').type('New Organization') | ||
cy.get('[data-attr=delete-organization-ok]').click() | ||
// it redirects to the homepage after deleting the organization | ||
cy.get('[data-attr=organization-name-input-settings]').should('not.exist') | ||
cy.get('[data-attr=top-bar-name]').should('contain.text', 'Homepage') | ||
}) | ||
}) |
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.