diff --git a/src/cypress/e2e/agentesPage/edit.cy.js b/src/cypress/e2e/agentesPage/edit.cy.js index f6d35a3827..8c77d8846d 100644 --- a/src/cypress/e2e/agentesPage/edit.cy.js +++ b/src/cypress/e2e/agentesPage/edit.cy.js @@ -1,7 +1,5 @@ const { loginWith } = require("../../commands/login"); -//Todos os comenártios devem ser descomentados e remover a linha de comando abaixo dele para o teste rodar no mapas.tec.br ao invés do localhost - let nome = gerarNomeAleatorio(); let genero = ""; let arrobaDoInstagram = ""; @@ -9,12 +7,13 @@ let arrobaDoInstagram = ""; describe("Agents Page Edit", () => { let expectedCount; + //loga e vai para o site de eagentes de edição do perfil do admin local beforeEach(() => { cy.viewport(1920, 1080); - //cy.visit("/edicao-de-agente/1/"); - cy.visit("http://localhost/edicao-de-agente/1/"); - // loginWith("Admin@local", "mapas123"); + cy.visit("http://localhost/"); + cy.contains("Entrar").click(); cy.contains("Fazer login com este usuário").click(); + cy.visit("/edicao-de-agente/1/"); }); it("Garante que a página de edição de agentes funciona", () => { diff --git a/src/cypress/e2e/loginPage/index.cy.js b/src/cypress/e2e/loginPage/index.cy.js index 0d21d2c8fe..1d446c564d 100644 --- a/src/cypress/e2e/loginPage/index.cy.js +++ b/src/cypress/e2e/loginPage/index.cy.js @@ -2,13 +2,13 @@ const { loginWith } = require("../../commands/login"); describe("Loginpage", () => { beforeEach(() => { - cy.visit("/autenticacao/"); + cy.visit("mapas.tec.br/autenticacao/"); }); it("Verifica se é possivel logar com email ou cpf e senha", () => { loginWith("Admin@local", "mapas123"); cy.get(".exit > a").click(); - cy.visit("/autenticacao/"); + cy.visit("mapas.tec.br/autenticacao/"); loginWith("555.132.590-36", "Mapas12345!"); cy.contains("Minha conta"); }); diff --git a/src/cypress/e2e/projectsPage/full.cy.js b/src/cypress/e2e/projectsPage/full.cy.js index a38f497651..d77032f21e 100644 --- a/src/cypress/e2e/projectsPage/full.cy.js +++ b/src/cypress/e2e/projectsPage/full.cy.js @@ -16,7 +16,7 @@ describe("Pagina de Projetos", () => { it("Garante que os filtros de tipos de projetos funcionem", () => { cy.contains("Tipos de projetos"); cy.get('.mc-multiselect--input').click(); - cy.wait(1000); + cy.wait(500); cy.get(':nth-child(18) > .mc-multiselect__option').click(); cy.wait(1000); checkFilterCount(); diff --git a/src/cypress/e2e/recoverPass/index.cy.js b/src/cypress/e2e/recoverPass/index.cy.js index 09ac1301e7..5367e294cb 100644 --- a/src/cypress/e2e/recoverPass/index.cy.js +++ b/src/cypress/e2e/recoverPass/index.cy.js @@ -17,7 +17,7 @@ describe("LoginPage", () => { describe("RecoverPassword", () => { beforeEach(() => { - cy.visit("/autenticacao/"); + cy.visit("mapas.tec.br/autenticacao/"); }); it("clicks the link \"Esqueci minha senha\", preenche o input email e click no botão \"Alterar senha\"", () => { diff --git a/src/cypress/e2e/registerPage/index.cy.js b/src/cypress/e2e/registerPage/index.cy.js index 51bf3d4f77..7a7d7fbf88 100644 --- a/src/cypress/e2e/registerPage/index.cy.js +++ b/src/cypress/e2e/registerPage/index.cy.js @@ -5,7 +5,7 @@ const { generateString} = require("../../commands/genString") describe("LoginPage", () => { beforeEach(() => { - cy.visit("/"); + cy.visit("mapas.tec.br"); }); it("click no botão \"Entrar\"", () => { @@ -16,13 +16,13 @@ describe("LoginPage", () => { describe("RegisterPage", () => { it("click no botão \"Fazer cadastro\"", () => { - cy.visit("/autenticacao/"); + cy.visit("mapas.tec.br/autenticacao/"); cy.contains("Fazer cadastro").click(); cy.url().should("include", "/autenticacao/register/"); }); it("Garante que não haja contas com o mesmo cpf ou email", () => { - cy.visit("/autenticacao/register/"); + cy.visit("mapas.tec.br/autenticacao/register/"); cy.get("#email").type("fake3@email.com"); cy.get("#email").should("have.value", "fake3@email.com"); cy.get("#cpf").type("68861193544"); @@ -43,7 +43,7 @@ describe("RegisterPage", () => { }); it("Garante que cpf seja valido", () => { - cy.visit("/autenticacao/register/"); + cy.visit("mapas.tec.br/autenticacao/register/"); cy.get("#email").type("fake4@email.com"); cy.get("#email").should("have.value", "fake4@email.com"); cy.get("#cpf").type("68861193541"); @@ -64,7 +64,7 @@ describe("RegisterPage", () => { it("Continuar cadastro", () => { - cy.visit("/autenticacao/register/"); + cy.visit("mapas.tec.br/autenticacao/register/"); let email = generateString(5) + "@email.com"; cy.get("#email").type(email); diff --git a/src/pnpm-lock.yaml b/src/pnpm-lock.yaml index 43fdfad964..918276550b 100644 --- a/src/pnpm-lock.yaml +++ b/src/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: '*' version: 7.24.5(@babel/core@7.24.5) cypress: - specifier: ^13.0.0 - version: 13.9.0 + specifier: ^13.14.0 + version: 13.14.1 fast-glob: specifier: ^3.3.2 version: 3.3.2 @@ -114,33 +114,12 @@ importers: specifier: ^12.6.0 version: 12.6.0(sass@1.77.2)(webpack@5.91.0(webpack-cli@4.10.0)) - plugins/MultipleLocalAuth: - devDependencies: - '@mapas/scripts': - specifier: workspace:0.0.0 - version: link:../../node_scripts - laravel-mix: - specifier: ^6.0.49 - version: 6.0.49(@babel/core@7.24.5)(@babel/plugin-proposal-object-rest-spread@7.20.7(@babel/core@7.24.5))(@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.24.5))(@babel/plugin-transform-runtime@7.24.3(@babel/core@7.24.5))(@babel/preset-env@7.24.5(@babel/core@7.24.5))(postcss@8.4.38)(webpack-cli@4.10.0(webpack@5.91.0))(webpack@5.91.0(webpack-cli@4.10.0)) - sass: - specifier: ^1.77.2 - version: 1.77.2 - sass-loader: - specifier: ^12.6.0 - version: 12.6.0(sass@1.77.2)(webpack@5.91.0(webpack-cli@4.10.0)) - themes/BaseV2: devDependencies: '@mapas/scripts': specifier: workspace:* version: link:../../node_scripts - themes/MapasCE: - devDependencies: - '@mapas/scripts': - specifier: workspace:0.0.0 - version: link:../../node_scripts - packages: '@ampproject/remapping@2.3.0': @@ -1567,8 +1546,8 @@ packages: csstype@3.1.3: resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} - cypress@13.9.0: - resolution: {integrity: sha512-atNjmYfHsvTuCaxTxLZr9xGoHz53LLui3266WWxXJHY7+N6OdwJdg/feEa3T+buez9dmUXHT1izCOklqG82uCQ==} + cypress@13.14.1: + resolution: {integrity: sha512-Wo+byPmjps66hACEH5udhXINEiN3qS3jWNGRzJOjrRJF3D0+YrcP2LVB1T7oYaVQM/S+eanqEvBWYc8cf7Vcbg==} engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true @@ -5471,7 +5450,7 @@ snapshots: csstype@3.1.3: {} - cypress@13.9.0: + cypress@13.14.1: dependencies: '@cypress/request': 3.0.1 '@cypress/xvfb': 1.2.4(supports-color@8.1.1)