Skip to content

✅[QA REGRESSION PASSED]: Ready to Merge into MAIN #477

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 4 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all 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/paypal/GX-31869-Paypal.cy.js
yarn file cypress/e2e/Tests/Elements/GX-33587-elementsButtons.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-31871' #EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
testExecKey: 'GX-33589' #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
37 changes: 37 additions & 0 deletions cypress/e2e/Tests/Elements/GX-33587-elementsButtons.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { removeLogs } from '@helper/RemoveLogs';
import { elementbuttons } from '@pages/Elements/GX-33587-elementsButtons.page';

describe('GX-33587-🪶ToolsQA | Elements | Buttons', () => {
beforeEach('Visitar Demo QA', () => {
cy.visit('/buttons');
});

it('33588 | TC1: Validar desplegar mensaje al hacer doble click izquierdo en el botón “Double Click Me”.', () => {
elementbuttons.get.firstButton().dblclick();
elementbuttons.get.firstMessage().should('have.text', 'You have done a double click');
});

it('33588 | TC2: Validar desplegar mensaje al hacer click derecho en el botón “Right Click Me“.', () => {
elementbuttons.get.secondButton().rightclick();
elementbuttons.get.secondMessage().should('have.text', 'You have done a right click');
});

it('33588 | TC3: Validar desplegar mensaje al hacer click izquierdo en el botón “Click Me“.', () => {
elementbuttons.get.thirdButton().click();
elementbuttons.get.thirdMessage().should('have.text', 'You have done a dynamic click');
});
it('33588 | TC4: Validar NO desplegar mensaje al hacer un click izquierdo en el botón "Double Click Me"', () => {
elementbuttons.get.firstButton().click();
elementbuttons.get.firstMessage().should('not.exist');
});
it('33588 | TC5: Validar NO desplegar mensaje al hacer click izquierdo en el botón “Right Click Me“', () => {
elementbuttons.get.secondButton().click();
elementbuttons.get.secondMessage().should('not.exist');
});
it('33588 | TC6: Validar NO desplegar mensaje al hacer click derecho en el botón “Click Me“', () => {
elementbuttons.get.thirdButton().rightclick();
elementbuttons.get.thirdMessage().should('not.exist');
});
});

removeLogs();
13 changes: 13 additions & 0 deletions cypress/support/pages/Elements/GX-33587-elementsButtons.page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class elementButtons {
get = {
firstButton: () => cy.get('[class="btn btn-primary"]').eq(0),
secondButton: () => cy.get('[class="btn btn-primary"]').eq(1),
thirdButton: () => cy.get('[class="btn btn-primary"]').eq(2),
firstMessage: () => cy.get('#doubleClickMessage'),
secondMessage: () => cy.get('#rightClickMessage'),
thirdMessage: () => cy.get('#dynamicClickMessage'),
};
}

export const elementbuttons = new elementButtons();
// btn btn-primary
37 changes: 37 additions & 0 deletions cypress/test-plan/in-sprint/sprint-25/GX-33587.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
US GX-33587 | TS: 🪶ToolsQA | Elements | Buttons

Test Analysis

Buttons:

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” )

Validations:

33588 | TC1: Validar hacer doble click izquierdo en el botón “Double Click Me”.

33588 | TC2: Validar hacer click derecho en el botón “Right Click Me“.

33588 | TC3: Validar hacer click izquierdo en el botón “Click Me“.

33588 | TC4: Validar hacer doble click derecho en el botón “Double Click Me“ y que NO se despliegue ningún mensaje.

33588 | TC5: Validar hacer click izquierdo en el botón “Right Click Me“ y que NO se despliegue ningún mensaje

33588 | TC6: Validar hacer click derecho en el botón “Click Me“ y que NO se despliegue ningún mensaje.