Skip to content

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

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 11 commits into from
Nov 25, 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 @@ -55,7 +55,7 @@ jobs:
with:
browser: electron
command: | #EDITAR AQUÍ EL ARCHIVO SUITE A EJECUTAR:
yarn file cypress/e2e/Tests/Widgets/GX3-440-SelecMenuTest.cy.js
yarn file cypress/e2e/Tests/Elements/GX3-470-RadioButtons.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-447' #EDITAR AQUÍ EL TEST EXECUTION A IMPORTAR LAS PRUEBAS.
testExecKey: 'GX3-477' #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
55 changes: 55 additions & 0 deletions cypress/e2e/Tests/Elements/GX3-470-RadioButtons.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import { removeLogs } from '@helper/RemoveLogs'; //Se importa la funcion
removeLogs(); //Se ejecuta la funcion para evitar los errores (puedes hacerlo al final de tu codigo)

let buttonName = ['Yes', 'Impressive', 'No'];

describe('GX3-470 | Tool QA | Elements | Radio Buttons', () => {
beforeEach('Precondición: Ususario debe estar situado en el endpoint de Radio Buttons', () => {
cy.visit('https://demoqa.com/radio-button');
cy.url().should('contain', 'radio-button');
for (let i = 0; i < 3; i++) {
cy.get('[type="radio"]').eq(i).should('exist');
cy.get('[type="radio"]').eq(i).should('not.be.checked');
cy.get('.custom-control-label').eq(i).should('contain.text', buttonName[i]).and('be.visible');
}
});
it('GX3-470 | TC1: Validar poder marcar el boton ‘YES’', () => {
cy.get('[for="yesRadio"]').should('be.visible');
cy.get('[for="yesRadio"]').click();
cy.get('[type="radio"]').eq(0).should('be.checked');
cy.get('.mt-3').should('contain.text', 'You have selected');
cy.get('.text-success').should('contain.text', 'Yes');
});
it('GX3-470 | TC2: Validar poder marcar el boton ‘Impressive’', () => {
cy.get('[for="impressiveRadio"]').should('be.visible');
cy.get('[for="impressiveRadio"]').click();
cy.get('[type="radio"]').eq(1).should('be.checked');
cy.get('.mt-3').should('contain.text', 'You have selected');
cy.get('.text-success').should('contain.text', 'Impressive');
});
it('GX3-470 | TC3: Validar no poder marcar el boton ‘No’', () => {
cy.get('[type="radio"]').eq(2).should('be.disabled');
cy.get('.mt-3').should('not.exist');
cy.get('.text-success').should('not.exist');
});
it('GX3-470 | TC4: Validar poder cambiar de ‘Yes’ a ‘Impressive’', () => {
cy.get('[for="yesRadio"]').click();
cy.get('[type="radio"]').eq(0).should('be.checked');
cy.get('[type="radio"]').eq(1).should('not.be.checked');
cy.get('[for="impressiveRadio"]').click();
cy.get('[type="radio"]').eq(0).should('not.be.checked');
cy.get('[type="radio"]').eq(1).should('be.checked');
cy.get('.mt-3').should('contain.text', 'You have selected');
cy.get('.text-success').should('contain.text', 'Impressive');
});
it('GX3-470 | TC5: Validar poder cambiar de ‘Impressive’ a ‘Yes’', () => {
cy.get('[for="impressiveRadio"]').click();
cy.get('[type="radio"]').eq(0).should('not.be.checked');
cy.get('[type="radio"]').eq(1).should('be.checked');
cy.get('[for="yesRadio"]').click();
cy.get('[type="radio"]').eq(0).should('be.checked');
cy.get('[type="radio"]').eq(1).should('not.be.checked');
cy.get('.mt-3').should('contain.text', 'You have selected');
cy.get('.text-success').should('contain.text', 'Yes');
});
});
26 changes: 26 additions & 0 deletions cypress/e2e/Tests/Elements/GX3-572-Upload-Download.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { DownUp } from '@pages/Elements/GX3-572-Upload-Download.Page';
import { removeLogs } from '@helper/RemoveLogs';

describe('GX3-572 GX3-572 ToolsQA | Elements | Upload and Download', () => {
beforeEach('Precondicion: Usuario debe situarse en la web', () => {
cy.visit('/upload-download');
DownUp.get.headerTitle().should('have.text', 'Upload and Download');
removeLogs();
});

it('573 | TC1: Validar poder realizar una Descarga de Archivo cuando se hace clic en el Botón "Download".', () => {
DownUp.downloadButton();
cy.wait(2000);
cy.readFile('cypress/downloads/sampleFile.jpeg').should('exist');
});

it('573 | TC2: Validar poder realizar una Subida de Archivo cuando se hace clic en el Botón "Choose file".', () => {
DownUp.selectFile1Title();
cy.wait(1000);
DownUp.get.uploadFileButtonText().should('contain.text', 'upexgalaxy.gif');

DownUp.selectFile2Title();
cy.wait(1000);
DownUp.get.uploadFileButtonText().should('contain.text', 'upexlogo.png');
});
});
24 changes: 24 additions & 0 deletions cypress/support/pages/Elements/GX3-572-Upload-Download.Page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class DownloadUpload {
get = {
headerTitle: () => cy.get('.main-header'),
downloadButton: () => cy.get('#downloadButton'),
selectFileTitle: () => cy.get('.form-file-label'),
uploadFile1Button: () => cy.get('#uploadFile'),
uploadFile2Button: () => cy.get('#uploadFile'),
uploadFileButtonText: () => cy.get('#uploadedFilePath'),
};

downloadButton() {
this.get.downloadButton().click();
}

selectFile1Title() {
this.get.uploadFile1Button().attachFile('images/upexgalaxy.gif');
}

selectFile2Title() {
this.get.uploadFile2Button().attachFile('images/upexlogo.png');
}
}

export const DownUp = new DownloadUpload();
65 changes: 65 additions & 0 deletions cypress/test-plan/in-sprint/sprint-30/GX3-470.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
Description Como QA aprendiz,

Quiero testear los Radio Buttons

Para practicar hacer este tipo de Escenario de Testing

✅ACCEPTANCE CRITERIA

Cada Radio Buttons (RB) debe tener la siguiente etiqueta respectiva, hay un total de 3:

Yes

Impressive

No

Output:

Por cada vez que se seleccione un RB, debe visualizar el mensaje siguiente:

“You have selected ” + buttonName

(TechNote: tomar en cuenta la separación)

donde “buttonName” = RB seleccionado

Excepción:

El único RB que no debe ser seleccionado es el “No”

## El cursor del mouse no puede seleccionarlo.

🚩BUSINESS RULES SPEC

Cada Radio Buttons (RB) debe tener la siguiente etiqueta respectiva, hay un total de 3:

Yes

Impressive

No

Output:

Por cada vez que se seleccione un RB, debe visualizar el mensaje siguiente:

“You have selected ” + buttonName

(TechNote: tomar en cuenta la separación)

donde “buttonName” = RB seleccionado

Excepción:

El único RB que no debe ser seleccionado es el “No”

## El cursor del mouse no puede seleccionarlo.

⛳SCOPE

Endpoint: https://demoqa.com/radio-button

🏴‍☠️OOS

Otros componentes
37 changes: 37 additions & 0 deletions cypress/test-plan/in-sprint/sprint-30/GX3-572.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
GX3-572 | ToolsQA | Elements | Upload and Download

Challenge para QA:

QAA deberá de válidar la descarga realizada.

QAA deberá de válidar la subida de un archivo local. (NO usar una imagen nueva, usar las de ejemplo ubicadas en cypress/fixtures/image/ )

El objetivo del test será aprender:

Obtener elementos, y realizar acciones;

Aprender a utilizar herramientas externas y/o propias de Cypress

BUSINESS RULES SPEC

Button:

Download:

IF: The "download" button is selected.

THEN: The file must be downloaded into the "download" PC folder.

Choose file:

IF: The "choose file" button is selected.

THEN: The PC File Explorer is open in order to select and upload a file.

AND: The uploaded file must display the Name and Location.

TechNote: The button “Choose File” is the only one that must be used to upload files.

⛳SCOPE Only Page: https://demoqa.com/upload-download

🏴‍☠️OOS Other Pages. Ads (please ignore ads).