Skip to content

GX-22811 Test(DynamicsProps): primera cobertura sobre elementos dinamicos #365

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 3 commits into from
Jul 3, 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
6 changes: 3 additions & 3 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/Interactions/GX2-3865-sorteable.cy.js
yarn file cypress/e2e/Tests/Suites/GX-22811-DynamicProps.cy.js

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

- name: 🔔Slack Notification of Done
if: always()
Expand Down
28 changes: 28 additions & 0 deletions cypress/e2e/Tests/Suites/GX-22811-DynamicProps.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { removeLogs } from '@helper/RemoveLogs';
removeLogs();

describe('US GX-22811 | ToolsQA | Elements | Dynamic Properties', () => {
beforeEach('PRC: Usuario debe ubicarse en la Dynamic Properties Page', () => {
cy.visit('https://demoqa.com/dynamic-properties');
cy.url().should('contain', 'dynamic-properties');
});

it('22812 | TC01: Validar poder obtener elemento “This text has random Id“', () => {
cy.get('p').should('contain', 'This text has random Id');
});

it('22812 | TC02: Validar cambiar estado de elemento "Enable" al pasar cinco segundos', () => {
cy.get('button#enableAfter', { timeout: 4999 }).should('be.disabled');
cy.get('button#enableAfter', { timeout: 5000 }).should('be.enabled');
});

it('22812 | TC03: Validar cambiar estado de elemento "Color Change" al pasar cinco segundos', () => {
cy.get('button#colorChange', { timeout: 4999 }).should('not.have.css', 'color', 'rgb(220, 53, 69)');
cy.get('button#colorChange', { timeout: 5000 }).should('have.css', 'color', 'rgb(220, 53, 69)');
});

it('22812 | TC04: Validar cambiar estado de elemento "Visible" al pasar cinco segundos', () => {
cy.get('button#visibleAfter', { timeout: 4999 }).should('not.exist');
cy.get('button#visibleAfter', { timeout: 5000 }).should('be.visible');
});
});
13 changes: 13 additions & 0 deletions cypress/test-plan/in-sprint/sprint-20/GX-22811.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
As a QA learner,

I want to test the Dynamic Properties WHEN:

Element has Dynamic ID in DOM

Element is enable after 5 sec

Element is visible after 5 sec

Element CSS color is changed

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