update: wrapping up and final adjustments to completed test flows

This commit is contained in:
Jure Ursic
2020-07-16 15:50:16 +02:00
parent 564e8d71da
commit c548add236
16 changed files with 607 additions and 114 deletions

View File

@ -24,10 +24,10 @@ context('Edit Job Offer Browser Testing', () => {
beforeEach(() => cy.restoreLocalStorage());
afterEach(() => cy.saveLocalStorage());
it('should visit user login screen', () => cy.userLogin());
it('should login', () => cy.login());
describe('Job Offer Edition process', () => {
it('should login', () => cy.login());
it('should visit the job offers list screen', () => cy.naviagte('/job-offers'));
it('should visit the last project edit screen', () => {
it('should visit the last job offer edit screen', () => {
cy.get(menuQuery.join(' '))
.invoke('attr', 'data-src')
.then(url => cy.encodeUrl(url).then(id => {
@ -50,7 +50,7 @@ context('Edit Job Offer Browser Testing', () => {
expect(loc.pathname).to.eq('/job-offers');
});
});
it('should show edited project data on project information screen', () => {
it('should show edited job offer data on job offer information screen', () => {
cy.contains('solid-display-value[name="title"]', jobTitle).should("exist");
cy.contains('solid-display-value[name="description"]', description).should("exist");
});