This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"run:jenkins": "cypress run --env configFile=jenkins" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"name": "jenkins", | |
"baseURL": "https://{JENKINS_BRANCH_NAME}.genial.ly" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Login Tests', () => { | |
it('[C1] should go to the correct environment URL', () => { | |
cy.visit(Cypress.env().baseURL}; | |
); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm run run:qa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// promisified fs module | |
const fs = require('fs-extra') | |
const path = require('path') | |
function getConfigurationByFile(file) { | |
const pathToConfigFile = path.resolve(__dirname, '../config', `${file}.json`) | |
return fs.readJson(pathToConfigFile) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"name": "qa", | |
"baseURL": "https://qa.genial.ly" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cogemos la imagen de base con Cypress ya instalado. | |
FROM cypress/base:14.10.1 | |
USER root | |
# Vemos la versión de Node que tenemos instalada. | |
RUN node --version | |
# Añadimos las librerias para descargar Edge | |
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
... | |
"test:edge": "cypress run --browser edge --headless" | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[debug] [ADB] Running '/Users/estefania.fernandez/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n com.example.estefafdez.myfirstandroidapp/com.example.estefafdez.myfirstandroidapp.MainActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' | |
[debug] [ADB] Waiting up to 20000ms for activity matching pkg: 'com.example.estefafdez.myfirstandroidapp' and activity: 'com.example.estefafdez.myfirstandroidapp.MainActivity' to be focused | |
[debug] [ADB] Possible activities, to be checked: 'com.example.estefafdez.myfirstandroidapp.MainActivity', 'com.example.estefafdez.myfirstandroidapp.com.example.estefafdez.myfirstandroidapp.MainActivity' | |
[debug] [ADB] Getting focused package and activity | |
[debug] [ADB] Running '/Users/estefania.fernandez/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window windows' | |
[debug] [ADB] Found package: 'com.example.estefafdez.myfirstandroidapp' and fully qualified activity name : 'com.example. |