0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
posthog/cypress/integration/person.js
Michael Matloka 4bd79a27b7
Fix CI on forks (#4754)
* Remove commented out test

* Update VERSION

* Don't run the automerge job on forks

* Revert "Update VERSION"

This reverts commit dc37f20133.

* Change automerge condition

* Change automerge condition a bit more

* Try scrolling

* Scroll by more

* Stop GitHub complaining about no jobs ran in a workflow

* Search for a different event name

* Try a different operator

* Don't default branch push jobs on forks

* Move clicks around

Co-authored-by: PostHog Bot <hey@posthog.com>
2021-06-17 00:22:23 +02:00

33 lines
1.2 KiB
JavaScript

describe('Person Visualization Check', () => {
beforeEach(() => {
cy.clickNavMenu('persons')
cy.location('pathname').should('eq', '/persons')
cy.get('.ant-spin-spinning').should('not.exist') // Wait until initial table load to be able to use the search
cy.get('[data-attr=persons-search]').type('deb').should('have.value', 'deb')
cy.get('.ant-input-search-button').click()
cy.contains('deborah.fernandez@gmail.com').click()
})
it('Can access person page', () => {
cy.get('[data-row-key="email"] > :nth-child(1)').should('contain', 'email')
})
it('Events table loads', () => {
cy.get('.events').should('exist')
})
})
describe('Person Show All Distinct Checks', () => {
beforeEach(() => {
cy.clickNavMenu('persons')
cy.get('.ant-spin-spinning').should('not.exist') // Wait until initial table load
})
it('Should have no Show All Distinct Id Button', () => {
cy.get('[data-attr=persons-search]').type('fernand{enter}')
cy.get('.ant-radio-button-wrapper').contains('All users').click()
cy.contains('deborah.fernandez@gmail.com').click()
cy.get('[data-cy="show-more-distinct-id"]').should('not.exist')
})
})