2020-11-25 11:12:22 +01:00
|
|
|
describe('Person Visualization Check', () => {
|
2020-10-08 17:25:52 +02:00
|
|
|
beforeEach(() => {
|
2021-04-09 00:57:12 +02:00
|
|
|
cy.get('[data-attr=menu-item-persons]').click().click()
|
2021-02-09 16:28:01 +01:00
|
|
|
cy.get('.ant-spin-spinning').should('not.exist') // Wait until initial table load to be able to use the search
|
2021-02-04 10:53:00 +01:00
|
|
|
cy.get('[data-attr=persons-search]').type('deb').should('have.value', 'deb')
|
|
|
|
cy.get('.ant-input-search-button').click()
|
2020-10-08 17:25:52 +02:00
|
|
|
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')
|
|
|
|
})
|
|
|
|
|
|
|
|
// Add when feature flag for session recording is off
|
|
|
|
// it('Sessions table loads', () => {})
|
|
|
|
})
|
2020-11-25 11:12:22 +01:00
|
|
|
|
|
|
|
describe('Person Show All Distinct Checks', () => {
|
|
|
|
beforeEach(() => {
|
2021-02-04 10:53:00 +01:00
|
|
|
cy.get('[data-attr=menu-item-persons]').click()
|
2021-02-09 16:28:01 +01:00
|
|
|
cy.get('.ant-spin-spinning').should('not.exist') // Wait until initial table load
|
2020-11-25 11:12:22 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
it('Should have no Show All Distinct Id Button', () => {
|
2021-02-04 10:53:00 +01:00
|
|
|
cy.get('[data-attr=persons-search]').type('fernand{enter}')
|
2020-11-25 11:12:22 +01:00
|
|
|
cy.contains('deborah.fernandez@gmail.com').click()
|
|
|
|
cy.get('[data-cy="show-more-distinct-id"]').should('not.exist')
|
|
|
|
})
|
|
|
|
})
|