Skip to content

Commit

Permalink
fixing test issues - incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandor4b committed Jun 10, 2024
1 parent 4197274 commit c88fe47
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 21 deletions.
1 change: 0 additions & 1 deletion app_company/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import json
import os
from datetime import datetime

from django.views import View
from django.shortcuts import render, redirect
Expand Down
4 changes: 1 addition & 3 deletions cypress/e2e/ConvertOrderRequest.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ describe('HomePage', () => {
cy.get(':nth-child(6) > a').click()
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('#status').select('Aguardando orçamento')
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type('50')
cy.get('.content > form > button').click()
Expand Down Expand Up @@ -62,9 +61,9 @@ describe('HomePage', () => {
cy.GoToEmployee()
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type('175.00')
cy.get('.content > form > button').click()
cy.get('.logout > button').click()
Expand Down Expand Up @@ -106,7 +105,6 @@ describe('HomePage', () => {
cy.get(':nth-child(6) > a').click()
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('#status').select('Aguardando orçamento')
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type('50')
cy.get('.content > form > button').click()
Expand Down
3 changes: 2 additions & 1 deletion cypress/e2e/ManagingMyServices.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ describe('HomePage', () => {
cy.GoToEmployee("paulo@paulo.com")
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type("200")
cy.get('.content > form > button').click()
Expand Down
12 changes: 9 additions & 3 deletions cypress/e2e/ManagingOrder.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ describe('HomePage', () => {
cy.CreateAdmin()
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
// cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type("200")
cy.get('.content > form > button').click()
Expand Down Expand Up @@ -55,7 +57,9 @@ describe('HomePage', () => {
cy.CreateAdmin()
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
// cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type("200")
cy.get('.content > form > button').click()
Expand Down Expand Up @@ -97,7 +101,9 @@ describe('HomePage', () => {
cy.CreateEmployee("Paulo", "paulo@paulo.com")
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
// cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type("200")
cy.get('.content > form > button').click()
Expand Down
18 changes: 13 additions & 5 deletions cypress/e2e/ReopeningService.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ describe('Reopening Service Tests', () => {

cy.get('ul > :nth-child(1)').click()
cy.get(':nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()

cy.get('.budgetContainer > input').type('90')
Expand Down Expand Up @@ -78,7 +79,9 @@ describe('Reopening Service Tests', () => {

cy.get('ul > :nth-child(1)').click()
cy.get(':nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
// cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()

cy.get('.budgetContainer > input').type('90')
Expand Down Expand Up @@ -116,11 +119,16 @@ describe('Reopening Service Tests', () => {
cy.get('ul > :nth-child(1)').click()
cy.get(':nth-child(6) > a').click()

cy.get('#status').select('Aguardando orçamento')
// cy.get('#status').select('Aguardando orçamento')
// cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
// cy.get('.content > form > button').click()

// cy.get('.budgetWatingConfirmation > input').clear()
// cy.get('.budgetWatingConfirmation > input').type('0')
cy.get('.content > form > button').click()

cy.get('.budgetContainer > input').clear()
cy.get('.budgetContainer > input').type('0')
// cy.get('.budgetContainer > input').clear()
// cy.get('.budgetContainer > input').type('0')
cy.get('.content > form > button').click()

cy.Logout()
Expand Down
9 changes: 6 additions & 3 deletions cypress/e2e/ServiceListCustomization.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ describe('Service filtering test', () =>{
cy.GoToEmployee()
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(1) > :nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
// cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type('400')
cy.get('.content > form > button').click()
cy.Logout()
Expand Down Expand Up @@ -72,9 +73,10 @@ describe('Service filtering test', () =>{
cy.CreateAdmin()
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(1) > :nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
// cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type('400')
cy.get('.content > form > button').click()
cy.Logout()
Expand Down Expand Up @@ -117,9 +119,10 @@ describe('Service filtering test', () =>{
cy.CreateAdmin()
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(1) > :nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
// cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type('400')
cy.get('.content > form > button').click()
cy.Logout()
Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/StatusMonitoring.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ describe('test suite status monitoring', () => {
cy.get(':nth-child(6) > a').click();
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click();
cy.get('#status').select('Aguardando orçamento')
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type('50')
cy.get('.content > form > button').click()
Expand Down
2 changes: 0 additions & 2 deletions cypress/e2e/solicitationManagement.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const oneMonthFromToday = formatDate(new Date(today.getFullYear(), today.getMont
cy.get(':nth-child(6) > a').click()
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('#status').select('Aguardando orçamento')
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type('50')
cy.get('.content > form > button').click()
Expand Down Expand Up @@ -119,7 +118,6 @@ const oneMonthFromToday = formatDate(new Date(today.getFullYear(), today.getMont
cy.get(':nth-child(6) > a').click()
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('#status').select('Aguardando orçamento')
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type('54000')
cy.get('.content > form > button').click()
Expand Down
6 changes: 4 additions & 2 deletions cypress/e2e/solicitationRating.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ describe('Service rating', () => {
cy.CreateAdmin()
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type("200")
cy.get('.content > form > button').click()
Expand Down Expand Up @@ -69,7 +70,8 @@ describe('Service rating', () => {
cy.CreateAdmin()
cy.get(':nth-child(1) > a').click()
cy.get(':nth-child(6) > a').click()
cy.get('#status').select('Aguardando orçamento')
cy.get('.scheduleDateContainer > input').invoke('removeAttr', 'type').type('2024-06-18')
cy.get('.content > form > button').click()
cy.get('.content > form > button').click()
cy.get('.budgetContainer > input').type("200")
cy.get('.content > form > button').click()
Expand Down

0 comments on commit c88fe47

Please sign in to comment.