cy: no more naviagte
This commit is contained in:
@ -22,7 +22,12 @@ context('Create Job Offer Browser Testing', () => {
|
||||
it('should visit user login screen', () => cy.userLogin());
|
||||
it('should login', () => cy.login());
|
||||
describe('Job Offer Creation process', () => {
|
||||
it('should visit the job offer creation screen', () => cy.naviagte('/job-offers/job-offers-create'));
|
||||
it('should visit the job offer creation screen', () => {
|
||||
cy.visit('/job-offers/job-offers-create');
|
||||
cy.location().should((loc) => {
|
||||
expect(loc.pathname).to.eq('/job-offers/job-offers-create');
|
||||
});
|
||||
});
|
||||
it('should enter correct job offer data', () => {
|
||||
cy.get('#job-offers-create input[name="closingDate"]').clear().type(jobDate);
|
||||
cy.get('#job-offers-create input[name="closingDate"]').should('have.value', jobDate);
|
||||
|
Reference in New Issue
Block a user