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:
31
tests/cypress/integration/contacts/tasks_spec.js
vendored
Normal file
31
tests/cypress/integration/contacts/tasks_spec.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
describe('Tasks', function () {
|
||||
beforeEach(function () {
|
||||
cy.login();
|
||||
cy.createContact('John', 'Doe', 'Man');
|
||||
});
|
||||
|
||||
it('lets you manage a task', function () {
|
||||
cy.url().should('include', '/people/h:');
|
||||
cy.get('[cy-name=task-blank-state]').should('be.visible');
|
||||
|
||||
// add a task
|
||||
cy.get('[cy-name=add-task-button]').click();
|
||||
cy.get('[cy-name=task-add-view]').should('be.visible');
|
||||
|
||||
cy.get('[cy-name=task-add-title]').type('This is a task');
|
||||
cy.get('[cy-name=save-task-button]').click();
|
||||
|
||||
cy.get('[cy-name=tasks-body]').should('be.visible')
|
||||
.invoke('attr', 'cy-items').then(function (item) {
|
||||
|
||||
cy.get('[cy-name=task-item-'+item+']').should('exist');
|
||||
cy.get('[cy-name=task-item-'+item+']').should('contain', 'This is a task');
|
||||
|
||||
// edit a task
|
||||
cy.get('[cy-name=task-toggle-edit-mode]').click();
|
||||
cy.get('[cy-name=task-delete-button-'+item+']').click();
|
||||
|
||||
cy.get('[cy-name=task-blank-state]').should('be.visible');
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user