cy: no more naviagte

This commit is contained in:
Jean-Baptiste Pasquier
2020-09-17 13:08:44 +02:00
parent 9a0beef4fb
commit 4ab6ab9764
16 changed files with 133 additions and 32 deletions

View File

@ -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);
});