Skip to content

Commit 591e10b

Browse files
committed
fix credentials
1 parent d13373b commit 591e10b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
env:
1212
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
1313
CYPRESS_AUTHORIZATION_TOKEN: ${{ secrets.AUTHORIZATION_TOKEN }}
14-
CREDENTIALS: ${{ secrets.CREDENTIALS }}
14+
echo '{"CREDENTIALS": $CREDENTIALS}' > cypress.env.json
1515
with:
16-
command: npx cypress run --quiet false
16+
command: npm run test:cloud

cypress/e2e/deleteBooking.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('Testes referente a funcionalidade de exclusão de reservas via API', (
3535

3636
it('Verificar exclusão de reserva com sucesso usando autenticação com token', () => {
3737
console.log("Valor de CREDENTIALS:", Cypress.env('CREDENTIALS'));
38-
const credentials = JSON.parse(Cypress.env('CREDENTIALS'));
38+
const credentials = Cypress.env('CREDENTIALS');
3939

4040
//finalizar teste , e descrever etapas , (uso do alias, etc)
4141

cypress/e2e/updateBooking.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('Testes referente a funcionalidade de alteração de reservas via API',
6060
//Mesmo cenário de cima, alterando a forma de autenticação
6161
it('Verificar alteração de reserva com sucesso usando autenticação com token', () => {
6262
console.log("Valor de CREDENTIALS:", Cypress.env('CREDENTIALS'));
63-
const credentials = JSON.parse(Cypress.env('CREDENTIALS'));
63+
const credentials = Cypress.env('CREDENTIALS');
6464

6565
var reservaUpdate = {
6666
"firstname": 'Marta',

cypress/e2e/updatePartialBooking.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('Testes referente a funcionalidade de alteração PARCIAL de reservas v
4848
"additionalneeds": 'Parking and breakfast'
4949
}
5050
console.log("Valor de CREDENTIALS:", Cypress.env('CREDENTIALS'));
51-
const credentials = JSON.parse(Cypress.env('CREDENTIALS'));
51+
const credentials = Cypress.env('CREDENTIALS');
5252

5353
cy.createToken(credentials);
5454

0 commit comments

Comments
 (0)