refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
27
tests/cypress/integration/contacts/conversations_spec.js
vendored
Normal file
27
tests/cypress/integration/contacts/conversations_spec.js
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
describe('Conversations', function () {
|
||||
beforeEach(function () {
|
||||
cy.login();
|
||||
cy.createContact('John', 'Doe', 'Man');
|
||||
});
|
||||
|
||||
it('lets you manage a conversation', function () {
|
||||
cy.get('[cy-name=conversation-blank-state]').should('be.visible');
|
||||
|
||||
// add a conversation
|
||||
cy.visit('/people');
|
||||
|
||||
// this gets the first content of the list
|
||||
cy.get('tr.people-list-item.bg-white.pointer').click();
|
||||
|
||||
cy.get('[cy-name=add-conversation-button]').should('be.visible');
|
||||
cy.get('[cy-name=add-conversation-button]').click();
|
||||
cy.url().should('include', '/conversations/create');
|
||||
|
||||
cy.get('[name=contactFieldTypeId]').select('Phone');
|
||||
cy.get('[name=content_1]').type('This is a message');
|
||||
cy.get('[cy-name=save-conversation-button]').click();
|
||||
|
||||
cy.url().should('include', '/people/h:');
|
||||
cy.get('[cy-name=conversation-blank-state]').should('not.be.visible');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user