Skip to content

Gx 22176 ✅ tools qa elements buttons #409

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 8 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
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 @@ -54,7 +54,7 @@ jobs:
with:
browser: chrome
command: | #EDITAR AQUÍ EL ARCHIVO SUITE A EJECUTAR:
yarn file cypress/e2e/Tests/Elements/GX-23806-Buttons.cy.js
yarn file cypress/e2e/Tests/Elements/GX-22176-ToolsQAElementsButtons.cy.js

- name: ✅Import Test Results to Xray
if: always()
Expand All @@ -64,7 +64,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: 'GX-23808' #EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
testExecKey: 'GX-22178' #EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
projectKey: 'GX' #EDITAR EN CASO DE TRABAJAR CON OTRO PROYECTO.

- name: 🔔Slack Notification of Done
Expand Down
20 changes: 20 additions & 0 deletions cypress/e2e/Tests/Elements/GX-22176-ToolsQAElementsButtons.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
describe('ToolsQA | Elements | Buttons', () => {
beforeEach('Precondition: El usuario debe estar ubicado en el PLP Demoqa', () => {
cy.visit('https://demoqa.com/buttons');
});
it('22177 | TC1: Validar hacer click en botón Doble click y se visualice el mensaje (“You have done a double click”) ', () => {
cy.get('#doubleClickBtn').dblclick();
cy.get('#doubleClickMessage').should('have.text', 'You have done a double click');
});
it('22177 | TC2: Validar hacer click en botón click derecho y se visualice el mensaje (“You have done a right click”)', () => {
cy.get('#rightClickBtn').rightclick();
cy.get('#rightClickMessage').should('have.text', 'You have done a right click');
});
it('22177 | TC3: Validar hacer click en botón click y se visualice el mensaje (“You have done a dynamic click”)', () => {
cy.get('[type="button"]').eq(3).click();
cy.get('#dynamicClickMessage').should('have.text', 'You have done a dynamic click');
});
});

import { removeLogs } from '@helper/RemoveLogs';
removeLogs();
29 changes: 29 additions & 0 deletions cypress/test-plan/in-sprint/sprint-21/GX-22176.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
As a QA learner,

I want to test the Buttons with:

Button double click

Button right click

Button click

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

Button ( Double Click ):

IF: “Double Click” button is clicked

Then : In the ClickMessage section, a message must be displayed as: ( “You have done a double click” )

Button ( Right Click ) :

IF: “_Right Click”_ button is clicked

Then : In the ClickMessage section, a message must be displayed as: ( “You have done a right click” )

Button ( Click ):

IF: “_Click”_ button is clicked

Then : In the ClickMessage section, a message must be displayed as: ( “You have done a dynamic click” )