Skip to content

Gx3 496 textbox #542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e1a0cd4
GX3-390 test(elements): Los TC han pasado y la feature esta funcionan…
Franco-Carrera Nov 14, 2023
b665349
reconfigurando entorno de trabajo
Franco-Carrera Nov 14, 2023
0ef68dd
GX-390 Test(ElementsButtons): Se han realizado assertions para valida…
Franco-Carrera Nov 16, 2023
a8b67ce
Test Enviroment Configuration
eleana2610 Nov 17, 2023
1b9df21
GX3-470 : configuración inicial de carpetas y archivos realizada
JuliaFekiacova Nov 17, 2023
17b151d
update .md file
eleana2610 Nov 17, 2023
eb99820
update branch
eleana2610 Nov 17, 2023
2e84543
GX3 -496 UPDATE BRANCH
eleana2610 Nov 17, 2023
6abc0d7
GX3-496 JSON
eleana2610 Nov 17, 2023
374fa85
GX3-470 : Precondiciones y TC1 diseñados en el archivo.cy.js
JuliaFekiacova Nov 17, 2023
0152c13
GX-390 test(buttons): Sobre clonedUs se mergea, luego se arregla conf…
Franco-Carrera Nov 17, 2023
6afea9b
GX-390 test(buttons): Se modifica la key del TX en el CI
Franco-Carrera Nov 17, 2023
70c1f43
GX-390 test(ElementsButtons): Intentando mostrar que el CI es correcto
Franco-Carrera Nov 17, 2023
fd1b481
GX3-496 UPDATE
eleana2610 Nov 17, 2023
ae3a7d6
GX3-496 Cambios CI
eleana2610 Nov 17, 2023
6b2f55b
Merge remote-tracking branch 'origin/QA' into GX3-496-TEXTBOX
eleana2610 Nov 17, 2023
1d4e7e7
GX3-496 CI UPDATE
eleana2610 Nov 17, 2023
bdde60d
GX3-470 : TC2 añadido, TC1 y Precondición refinados
JuliaFekiacova Nov 17, 2023
a0e38bb
GX3-496- Validacion de campos
eleana2610 Nov 18, 2023
a4b7987
GX3-470 : Modificados los selectores evitando click({force=true}) en …
JuliaFekiacova Nov 19, 2023
2f814e1
GX3-470 : Agregado TC3 a mi archivo .cy.js
JuliaFekiacova Nov 19, 2023
27b3cfe
GX3-470 : Agregado TC4
JuliaFekiacova Nov 19, 2023
a74d9ba
GX3-470 : Agregado TC5 (el último) a mi archivo .cy.js
JuliaFekiacova Nov 19, 2023
de4b571
GX3-496 update test campo mensaje
eleana2610 Nov 19, 2023
34b1501
GX3 496 update test cases
eleana2610 Nov 23, 2023
0199cc9
GX3-496 validacion correo electronico
eleana2610 Nov 23, 2023
0ad2d21
GX3-496 validación mensaje de confirmación
eleana2610 Nov 23, 2023
0087a82
Merge branch 'QA' into GX3-470-⚡️-tools-qa-elements-radio-buttons
ZwitterKaneda Nov 25, 2023
5859b5b
Merge pull request #540 from upex-galaxy/GX3-470-⚡️-tools-qa-elements…
ZwitterKaneda Nov 25, 2023
8d27938
Merge branch 'GX3-496-TEXTBOX' of github.com:upex-galaxy/L1-cypex-dem…
ZwitterKaneda Nov 25, 2023
32eb527
delete extra test files
ZwitterKaneda Nov 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/CI-Suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
with:
browser: electron
command: | #EDITAR AQUÍ EL ARCHIVO SUITE A EJECUTAR:
yarn file cypress/e2e/Tests/Elements/GX3-572-Upload-Download.cy.js
yarn file cypress/e2e/Tests/Elements/GX3-496-fillFormAnSubmit.cy.js

- name: ✅Import Test Results to Xray
if: always()
Expand All @@ -65,7 +65,7 @@ jobs:
password: ${{secrets.XRAY_CLIENT_SECRET}}
testFormat: 'junit' #OPCIONES PARA CAMBIAR: 'junit' (para xml) o 'cucumber' (para json)
testPaths: 'reports/test-results.xml' #OPCIONES: '/test-results.xml' o 'cucumber-report.json'
testExecKey: 'GX3-579' #EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
testExecKey: 'GX3-503' #EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
projectKey: 'GX3' #EDITAR EN CASO DE TRABAJAR CON OTRO PROYECTO.

- name: 🔔Slack Notification of Done
Expand Down
55 changes: 55 additions & 0 deletions cypress/e2e/Tests/Elements/GX3-470-RadioButtons.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import { removeLogs } from '@helper/RemoveLogs'; //Se importa la funcion
removeLogs(); //Se ejecuta la funcion para evitar los errores (puedes hacerlo al final de tu codigo)

let buttonName = ['Yes', 'Impressive', 'No'];

describe('GX3-470 | Tool QA | Elements | Radio Buttons', () => {
beforeEach('Precondición: Ususario debe estar situado en el endpoint de Radio Buttons', () => {
cy.visit('https://demoqa.com/radio-button');
cy.url().should('contain', 'radio-button');
for (let i = 0; i < 3; i++) {
cy.get('[type="radio"]').eq(i).should('exist');
cy.get('[type="radio"]').eq(i).should('not.be.checked');
cy.get('.custom-control-label').eq(i).should('contain.text', buttonName[i]).and('be.visible');
}
});
it('GX3-470 | TC1: Validar poder marcar el boton ‘YES’', () => {
cy.get('[for="yesRadio"]').should('be.visible');
cy.get('[for="yesRadio"]').click();
cy.get('[type="radio"]').eq(0).should('be.checked');
cy.get('.mt-3').should('contain.text', 'You have selected');
cy.get('.text-success').should('contain.text', 'Yes');
});
it('GX3-470 | TC2: Validar poder marcar el boton ‘Impressive’', () => {
cy.get('[for="impressiveRadio"]').should('be.visible');
cy.get('[for="impressiveRadio"]').click();
cy.get('[type="radio"]').eq(1).should('be.checked');
cy.get('.mt-3').should('contain.text', 'You have selected');
cy.get('.text-success').should('contain.text', 'Impressive');
});
it('GX3-470 | TC3: Validar no poder marcar el boton ‘No’', () => {
cy.get('[type="radio"]').eq(2).should('be.disabled');
cy.get('.mt-3').should('not.exist');
cy.get('.text-success').should('not.exist');
});
it('GX3-470 | TC4: Validar poder cambiar de ‘Yes’ a ‘Impressive’', () => {
cy.get('[for="yesRadio"]').click();
cy.get('[type="radio"]').eq(0).should('be.checked');
cy.get('[type="radio"]').eq(1).should('not.be.checked');
cy.get('[for="impressiveRadio"]').click();
cy.get('[type="radio"]').eq(0).should('not.be.checked');
cy.get('[type="radio"]').eq(1).should('be.checked');
cy.get('.mt-3').should('contain.text', 'You have selected');
cy.get('.text-success').should('contain.text', 'Impressive');
});
it('GX3-470 | TC5: Validar poder cambiar de ‘Impressive’ a ‘Yes’', () => {
cy.get('[for="impressiveRadio"]').click();
cy.get('[type="radio"]').eq(0).should('not.be.checked');
cy.get('[type="radio"]').eq(1).should('be.checked');
cy.get('[for="yesRadio"]').click();
cy.get('[type="radio"]').eq(0).should('be.checked');
cy.get('[type="radio"]').eq(1).should('not.be.checked');
cy.get('.mt-3').should('contain.text', 'You have selected');
cy.get('.text-success').should('contain.text', 'Yes');
});
});
54 changes: 54 additions & 0 deletions cypress/e2e/Tests/Elements/GX3-496-fillFormAnSubmit.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import data from '@data/Elements/GX-496-fillFormAndSubmit.json';
describe('Text Box: Fill Form and Submit', () => {
beforeEach(() => {
cy.visit('https://demoqa.com/text-box');
});
it('497 | TC1: Validar formulario', () => {
cy.get('#userName').type(data.fullName.validName);
cy.get('#userName').should('have.value', data.fullName.validName);
cy.get('#userEmail').type(data.userEmail.data.validEmail);
cy.get('#userEmail').should('have.value', data.userEmail.data.validEmail);
cy.get('#currentAddress-wrapper').type(data.currentAddress.dataCurrentAddress.validAddress);
cy.get('#permanentAddress').type(data.permanentAddress.permanentAddressData);
cy.get('#submit').click();
cy.get('#output');
cy.get('#output').should('contain', data.fullName.validName, data.userEmail.validEmail, data.currentAddress.validAddress);
});
it('497 | TC2: Validar formato de correo incorrecto', () => {
cy.get('#userEmail').type(data.userEmail.data.invalidEmail.domainOnly);
cy.get('#submit').click();
cy.get('#userEmail').should('have.class', 'field-error');
});
it('497 | TC3: Validar formato de correo incorrecto cuando hay un error de típeado', () => {
cy.get('#userEmail').type(data.userEmail.data.invalidEmail.typoError);
cy.get('#submit').click();
cy.get('#userEmail').should('not.have.class', 'field-error');
});
it('497 | TC4: Validar formato de correo incorrecto sin dominio', () => {
cy.get('#userEmail').type(data.userEmail.data.invalidEmail.missingDomain);
cy.get('#submit').click();
cy.get('#userEmail').should('have.class', 'field-error');
});
it('497 | TC5: Validar formato de correo incorrecto sin arroba', () => {
cy.get('#userEmail').type(data.userEmail.data.invalidEmail.missingAtSign);
cy.get('#submit').click();
cy.get('#userEmail').should('have.class', 'field-error');
});
it('497 | TC6:Validar formato de correo incorrecto dominio incompleto', () => {
cy.get('#userEmail').type(data.userEmail.data.invalidEmail.domainIncomplete);
cy.get('#submit').click();
cy.get('#userEmail').should('have.class', 'field-error');
});
it('497 | TC6: Validar despliegue de mensaje de confirmación', () => {
cy.get('#userName').type(data.fullName.validName);
cy.get('#userEmail').type(data.userEmail.data.validEmail);
cy.get('#currentAddress-wrapper').type(data.currentAddress.dataCurrentAddress.validAddress);
cy.get('#permanentAddress').type(data.permanentAddress.permanentAddressData);
cy.get('#submit').click();
cy.get('#output');
cy.get('#output').should('contain', data.fullName.validName, data.userEmail.data.validEmail);
cy.get('#output').should('contain', data.userEmail.data.validEmail);
cy.get('#output').should('contain', data.currentAddress.dataCurrentAddress.validAddress);
cy.get('#output').should('contain', data.permanentAddress.permanentAddressData);
});
});
29 changes: 29 additions & 0 deletions cypress/fixtures/data/Elements/GX-496-fillFormAndSubmit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"fullName": {
"validName": "Juana de Arcos",
"invalid": ""
},
"userEmail": {
"input": "#userEmail",
"data": {
"validEmail": "[email protected]",
"invalidEmail": {
"domainOnly": "@gmail.com",
"typoError": "[email protected]",
"missingDomain": "eleana.com",
"missingAtSign": "eleanagmail.com",
"missingDot": "eleana@gmailcom",
"domainIncomplete": "eleana@gmail"
}
}
},
"currentAddress": {
"dataCurrentAddress": {
"validAddress": "1425 Recoleta"
}
},
"permanentAddress": {
"input": "#permanentAddress",
"permanentAddressData": "Austria Recoleta Argentina "
}
}
65 changes: 65 additions & 0 deletions cypress/test-plan/in-sprint/sprint-30/GX3-470.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
Description Como QA aprendiz,

Quiero testear los Radio Buttons

Para practicar hacer este tipo de Escenario de Testing

✅ACCEPTANCE CRITERIA

Cada Radio Buttons (RB) debe tener la siguiente etiqueta respectiva, hay un total de 3:

Yes

Impressive

No

Output:

Por cada vez que se seleccione un RB, debe visualizar el mensaje siguiente:

“You have selected ” + buttonName

(TechNote: tomar en cuenta la separación)

donde “buttonName” = RB seleccionado

Excepción:

El único RB que no debe ser seleccionado es el “No”

## El cursor del mouse no puede seleccionarlo.

🚩BUSINESS RULES SPEC

Cada Radio Buttons (RB) debe tener la siguiente etiqueta respectiva, hay un total de 3:

Yes

Impressive

No

Output:

Por cada vez que se seleccione un RB, debe visualizar el mensaje siguiente:

“You have selected ” + buttonName

(TechNote: tomar en cuenta la separación)

donde “buttonName” = RB seleccionado

Excepción:

El único RB que no debe ser seleccionado es el “No”

## El cursor del mouse no puede seleccionarlo.

⛳SCOPE

Endpoint: https://demoqa.com/radio-button

🏴‍☠️OOS

Otros componentes
21 changes: 21 additions & 0 deletions cypress/test-plan/in-sprint/sprint-30/GX3-496.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
As a QA learner,

I want to test:

filling out a form with:

Full Name

Email

Current Address

Permanent Address

And Submit it.

So that I can improve my testing skills for this scenario.

✅ACCEPTANCE CRITERIA

(This feature doesn’t need BDD AC - Please take a look into the BRS tab)