This commit is contained in:
parent
9eed6e55be
commit
9c72597c2c
|
@ -5,10 +5,10 @@ describe('WorkerCreate', () => {
|
|||
|
||||
const internal = {
|
||||
Fi: { val: '78457139E' },
|
||||
'Web user': { val: 'defaulterworker' },
|
||||
Name: { val: 'DEFAULT' },
|
||||
'Last name': { val: 'WORKER' },
|
||||
'Personal email': { val: 'defaultWorker@mydomain.com' },
|
||||
'Web user': { val: 'manolo' },
|
||||
Name: { val: 'Manolo' },
|
||||
'Last name': { val: 'Hurtado' },
|
||||
'Personal email': { val: 'manolo@mydomain.com' },
|
||||
Street: { val: 'S/ DEFAULTWORKERSTREET' },
|
||||
Location: { val: 1, type: 'select' },
|
||||
Phone: { val: '123456789' },
|
||||
|
|
|
@ -8,13 +8,13 @@ describe('WorkerList', () => {
|
|||
});
|
||||
|
||||
it('should load workers', () => {
|
||||
cy.get(workerFieldNames).eq(0).should('have.text', 'jessicajones');
|
||||
cy.get(workerFieldNames).eq(1).should('have.text', 'brucebanner');
|
||||
cy.get(workerFieldNames).eq(2).should('have.text', 'charlesxavier');
|
||||
cy.get(workerFieldNames).eq(2).should('have.text', 'jessicajones');
|
||||
cy.get(workerFieldNames).eq(3).should('have.text', 'brucebanner');
|
||||
cy.get(workerFieldNames).eq(4).should('have.text', 'charlesxavier');
|
||||
});
|
||||
|
||||
it('should open the worker summary', () => {
|
||||
cy.openListSummary(0);
|
||||
cy.openListSummary(2);
|
||||
cy.get('.summaryHeader div').should('have.text', '1110 - Jessica Jones');
|
||||
cy.get('.summary .header-link')
|
||||
.eq(0)
|
||||
|
|
Loading…
Reference in New Issue