0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/cypress/e2e/person.cy.ts

25 lines
1.0 KiB
TypeScript
Raw Normal View History

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.contains('deborah.fernandez@gmail.com').should('not.exist')
cy.contains('deborah.fernandez@gmail.com').click()
cy.wait(1000)
})
it('Can access person page', () => {
cy.get('[data-row-key="email"] > :nth-child(1)').should('contain', 'email')
feat: Remove special padding for icon only buttons (#15351) * feat: Remove special padding for icon only buttons * Update UI snapshots for `chromium` (1) * Update UI snapshots for `firefox` (2) * Update UI snapshots for `webkit` (2) * Update UI snapshots for `chromium` (2) * Fixed styling for icon only button * Removed old classnames * Update UI snapshots for `chromium` (1) * Update UI snapshots for `firefox` (2) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `webkit` (2) * Corrected padding * Fix modal close button position * Update UI snapshots for `chromium` (1) * Update UI snapshots for `webkit` (2) * Update UI snapshots for `chromium` (2) * More fixes * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `firefox` (2) * Fixed card component * Fixed padding for dashboard items * Update UI snapshots for `chromium` (2) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `webkit` (2) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `firefox` (2) * Revert all snapshots * Update UI snapshots for `firefox` (2) * Update UI snapshots for `webkit` (2) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) * Fix icon * Update UI snapshots for `chromium` (1) * Fixed up more template and calendar * More fixes * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `firefox` (2) * Update UI snapshots for `webkit` (2) * Fix * Improve alignment in a couple places * Update UI snapshots for `firefox` (2) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `webkit` (2) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `firefox` (2) * Update UI snapshots for `webkit` (2) * Update UI snapshots for `chromium` (1) --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Michael Matloka <dev@twixes.com>
2023-05-18 21:14:11 +02:00
cy.get('[data-row-key="email"] [data-attr=copy-icon]').click()
cy.get('[role="tab"]').contains('Events').click()
cy.get('table').contains('Event').should('exist')
})
it('Does not show the Person column', () => {
cy.get('[role="tab"]').contains('Events').click()
cy.get('table').contains('Event').click()
cy.get('table').should('not.contain', 'Person')
})
})