cy: no more naviagte
This commit is contained in:
@ -30,7 +30,12 @@ context('List Job Offers Browser Testing', () => {
|
||||
let listingTitle,
|
||||
listingDesccription,
|
||||
listingCount;
|
||||
it('should visit the job offers listing screen', () => cy.naviagte('/job-offers'));
|
||||
it('should visit the job offers listing screen', () => {
|
||||
cy.visit('/job-offers');
|
||||
cy.location().should((loc) => {
|
||||
expect(loc.pathname).to.eq('/job-offers');
|
||||
});
|
||||
});
|
||||
it('should get the listing count', () => {
|
||||
cy.get(listingCountQuery.join(' ')).its('length').then(length => listingCount = length);
|
||||
});
|
||||
|
Reference in New Issue
Block a user