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