Skip to content

Commit 48519b5

Browse files
Merge pull request #457 from upex-galaxy/GX-29736/test/radio-buttons
Merge GX-29736 into QA
2 parents a3ca887 + 0d9b569 commit 48519b5

File tree

3 files changed

+80
-2
lines changed

3 files changed

+80
-2
lines changed

.github/workflows/CI-Suite.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
with:
5555
browser: chrome
5656
command: | #EDITAR AQUÍ EL ARCHIVO SUITE A EJECUTAR:
57-
yarn file cypress/e2e/Tests/Elements/GX-32081-textBoxLeonardo.cy.js
57+
yarn file cypress/e2e/Tests/Elements/GX-29736_RadioButtons.cy.js
5858
5959
- name: ✅Import Test Results to Xray
6060
if: always()
@@ -64,7 +64,7 @@ jobs:
6464
password: ${{secrets.XRAY_CLIENT_SECRET}}
6565
testFormat: 'junit' #OPCIONES PARA CAMBIAR: 'junit' (para xml) o 'cucumber' (para json)
6666
testPaths: 'reports/test-results.xml' #OPCIONES: '/test-results.xml' o 'cucumber-report.json'
67-
testExecKey: 'GX-32083' #EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
67+
testExecKey: 'GX-29758' #EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
6868
projectKey: 'GX' #EDITAR EN CASO DE TRABAJAR CON OTRO PROYECTO.
6969

7070
- name: 🔔Slack Notification of Done
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import { removeLogs } from '@helper/RemoveLogs';
2+
3+
//test set:
4+
describe('GX-29736 ToolsQA | Elements | Radio Buttons', () => {
5+
//todo: precondiciones
6+
beforeEach('Precondición', () => {
7+
const endpoint = '/radio-button';
8+
cy.visit(`/${endpoint}`);
9+
});
10+
11+
// afterEach('', () => {
12+
13+
// })
14+
15+
it('29756 | TC1: Validar visualizar el label YES cuando se selecciona el radio button Yes', () => {
16+
//tags
17+
cy.get('#yesRadio').click({ force: true });
18+
cy.contains('You have selected').children().should('have.text', 'Yes');
19+
//cy.contains('You have selected').children().should.equal('yes');
20+
//
21+
});
22+
23+
it('29756 | TC2: Validar visualizar el label Impressive cuando se selecciona el radio button Impressive', () => {
24+
//tags
25+
cy.get('#impressiveRadio').click({ force: true });
26+
cy.contains('You have selected').children().should('have.text', 'Impressive');
27+
//cy.contains('You have selected').children().should.equal('yes');
28+
29+
//
30+
});
31+
32+
it('29756 | TC3: Validar que el radio button con label "NO" este deshabilitado y no se pueda seleccionar', () => {
33+
//tags
34+
cy.get('#noRadio').should('be.disabled');
35+
cy.contains('You have selected').should('not.exist');
36+
//cy.contains('You have selected').children().should.equal('yes');
37+
38+
//
39+
});
40+
});
41+
42+
//ES module imports/exports
43+
removeLogs();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
ID: https://upexgalaxy24.atlassian.net/browse/GX-29736
2+
3+
# Summary: ToolsQA | Elements | RadioButtons
4+
5+
Como QA aprendiz, Quiero testear los Radio Buttons Para practicar hacer este tipo de Escenario de Testing
6+
7+
```
8+
🧪Test Strategy
9+
10+
Utiilizar Scripts sencillos para tomar elementos con CSS Selectors
11+
12+
No utilizar un enfoque random
13+
14+
No tomar los textos de los elementos clickeados para utilizar luego.
15+
16+
Usar un enfoque sencillo con data esperada.
17+
```
18+
19+
✅ACCEPTANCE CRITERIA (Esta Feature no necesita una US formato BDD; por favor revisar las BRS)
20+
21+
🚩BUSINESS RULES SPEC
22+
23+
Cada Radio Buttons (RB) debe tener la siguiente etiqueta respectiva, hay un total de 3:
24+
25+
Yes Impressive No
26+
27+
Output: Por cada vez que se seleccione un RB, debe visualizar el mensaje siguiente:
28+
29+
“You have selected ” + buttonName
30+
31+
(TechNote: tomar en cuenta la separación)
32+
33+
donde “buttonName” = RB seleccionado
34+
35+
Excepción: El único RB que no debe ser seleccionado es el “No” El cursor del mouse no puede seleccionarlo.

0 commit comments

Comments
 (0)