Skip to content

GX3-1620 Elements - Buttons #610

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 2 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -55,7 +55,7 @@ jobs:
with:
browser: electron
command: | #EDITAR AQUÍ EL ARCHIVO SUITE A EJECUTAR:
yarn file cypress/e2e/Tests/Widgets/GX3-1246-Widgets-Slider.cy.js
yarn file cypress/e2e/Tests/Elements/GX3-1620-Buttons.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-1253' #EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
testExecKey: 'GX3-1627' #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
34 changes: 34 additions & 0 deletions cypress/e2e/Tests/Elements/GX3-1620-Buttons.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
describe('US 1620 | ToolsQA | Elements | Buttons', () => {
beforeEach('Precondition: User is on ToolsQA web, Buttons section', ()=>{
cy.visit('https://demoqa.com/buttons');
cy.url().should('contain', 'buttons');
});
it('1621 | TC1: Check that a message is triggered when double clicking the “Double Click Me” button', ()=>{
cy.get('#doubleClickBtn').dblclick();
cy.get('#doubleClickMessage').should('be.visible').and('have.text', 'You have done a double click');
});
it('1621 | TC2: Check that a message is triggered when right clicking the “Right Click Me” button', ()=>{
cy.get('#rightClickBtn').rightclick();
cy.get('#rightClickMessage').should('be.visible').and('have.text', 'You have done a right click');
});
it('1621 | TC3: Check that a message is triggered when clicking the “Click Me” button', ()=>{
cy.get('button').eq(3).click();
cy.get('#dynamicClickMessage').should('be.visible').and('have.text', 'You have done a dynamic click');
});
it('1621 | TC4: Check that a message is NOT triggered when clicking the “Double Click Me” button', ()=>{
cy.get('#doubleClickBtn').click();
cy.get('#doubleClickMessage').should('not.exist');
});
it('1621 | TC5: Check that a message is NOT triggered when right clicking the “Double Click Me” button', ()=>{
cy.get('#doubleClickBtn').rightclick();
cy.get('#doubleClickMessage').should('not.exist');
});
it('1621 | TC6: Check that a message is NOT triggered when clicking the “Right Click Me” button', ()=>{
cy.get('#rightClickBtn').click();
cy.get('#rightClickMessage').should('not.exist');
});
it('1621 | TC7: Check that a message is NOT triggered when right clicking the “Click Me” button', ()=>{
cy.get('button').eq(3).rightclick();
cy.get('#dynamicClickMessage').should('not.exist');
});
});
34 changes: 34 additions & 0 deletions cypress/test-plan/in-sprint/sprint-35/GX3-1620.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# ToolsQA | Elements | Buttons

[GX3-1620](https://upexgalaxy34.atlassian.net/browse/GX3-1620) Created: 22/1/24 Updated: 22/1/24

* 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.

🚩BUSINESS RULES SPEC

Expected actions

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