Skip to content

Commit 55d4950

Browse files
authored
Merge pull request #389 from upex-galaxy/GX-24045-✅-tools-qa-elements-buttons
Gx 24045 ✅ tools qa elements buttons
2 parents 76a95e9 + 9dbba12 commit 55d4950

File tree

3 files changed

+66
-2
lines changed

3 files changed

+66
-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-22318-TextBox.cy.js
57+
yarn file cypress/e2e/Tests/Elements/GX-24045-Buttons.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-22320' #EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
67+
testExecKey: 'GX-24047' #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,23 @@
1+
import { removeLogs } from '@helper/RemoveLogs';
2+
removeLogs();
3+
4+
describe('✅HerramientasQA | Elementos | Botones', () => {
5+
beforeEach('precondición', () => {
6+
cy.visit('https://demoqa.com/buttons');
7+
});
8+
9+
it('24046 | TC1: Validar funcionamiento botón doble click', () => {
10+
cy.get('[id="doubleClickBtn"]').dblclick();
11+
cy.get('[id="doubleClickMessage"]').should('contain', 'You have done a double click');
12+
});
13+
14+
it('24046 | TC2: Validar funcionamiento botón click derecho', () => {
15+
cy.get('[id="rightClickBtn"]').rightclick();
16+
cy.get('[id="rightClickMessage"]').should('contain', 'You have done a right click');
17+
});
18+
19+
it('24046 | TC3: Validar funcionamiento botón click', () => {
20+
cy.get('[type="button"]').eq(3).click();
21+
cy.get('[id="dynamicClickMessage"]').should('contain', 'You have done a dynamic click');
22+
});
23+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Descripción
2+
3+
As a QA learner,
4+
5+
I want to test the Buttons with:
6+
7+
Button double click
8+
9+
Button right click
10+
11+
Button click
12+
13+
So that I can improve my testing skills for this scenario.
14+
15+
✅ACCEPTANCE CRITERIA
16+
17+
This feature doesn’t need BDD AC - Please take a look into the BRS
18+
19+
🚩BUSINESS RULES SPEC
20+
21+
Expected actions
22+
23+
Buttons:
24+
25+
Button ( Double Click ):
26+
27+
IF: “Double Click” button is clicked
28+
29+
Then : In the ClickMessage section, a message must be displayed as: ( “You have done a double click” )
30+
31+
Button ( Right Click ) :
32+
33+
IF: “_Right Click”_ button is clicked
34+
35+
Then : In the ClickMessage section, a message must be displayed as: ( “You have done a right click” )
36+
37+
Button ( Click ):
38+
39+
IF: “_Click”_ button is clicked
40+
41+
Then : In the ClickMessage section, a message must be displayed as: ( “You have done a dynamic c

0 commit comments

Comments
 (0)