This file contains hidden or 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
// Instale essa biblioteca em seu projeto com o comando abaixo: | |
// npm install jwt-decode | |
// adicione essa linha no topo do arquivo sempre que precisar usar | |
import jwt_decode from "jwt-decode"; | |
describe('Exemplo', () => { | |
it('Exemplo JWT Decode', () => { | |
This file contains hidden or 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
/** | |
* Crie um arquivo index.d.ts na pasta support. | |
* Copie o conteúdo abaixo dentro do arquivo index.d.ts criado. | |
* Importante: esse NÃO substitui o index.js existente. Eles possuem finalidades diferentes. | |
*/ | |
/// <reference types="cypress" /> | |
declare namespace Cypress { |
This file contains hidden or 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
/// <reference types="cypress" /> | |
// *********************************************************** | |
// This example plugins/index.js can be used to load plugins | |
// | |
// You can change the location of this file or turn off loading | |
// the plugins file with the 'pluginsFile' configuration option. | |
// | |
// You can read more here: | |
// https://on.cypress.io/plugins-guide | |
// *********************************************************** |
This file contains hidden or 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
# Node.js | |
# Build a general Node.js project with npm. | |
# Add steps that analyze code, save build artifacts, deploy, and more: | |
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | |
# quando o pipeline deve ser executado? | |
trigger: | |
- main | |
# qual máquina o pipeline deve ser executado? |
This file contains hidden or 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
"$schema": "https://raw.githubusercontent.com/cypress-io/cypress/develop/cli/schema/cypress.schema.json" |
This file contains hidden or 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('LongPress no quadrado', () => { | |
it('LongPress no quadrado', () => { | |
// acessa o site codepen, para interação com o componente | |
cy.visit('https://codepen.io/choskim/pen/RLYebL'); | |
// aguarda o frame com o componente ser renderizado (cypress-iframe) | |
cy.frameLoaded('#result') | |
// mapeia o elemento dentro de um iframe para a interação | |
cy.iframe('#result').find('div.square').as('square'); |
This file contains hidden or 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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ main ] | |
pull_request: |
This file contains hidden or 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
# dependencias | |
node_modules/ | |
# relatorios mocha | |
mochawesome-report | |
# relatorios cucumber | |
cypress/reports/index.html | |
cypress/reports/index.html.json | |
cypress/reports/cucumber-json/** |
This file contains hidden or 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
const reporter = require('cucumber-html-reporter') | |
const options = { | |
theme: 'bootstrap', | |
jsonDir: 'cypress/reports/cucumber-json', | |
output: 'cypress/reports/cucumber_report.html', | |
reportSuiteAsScenarios: true, | |
scenarioTimestamp: true, | |
launchReport: true, | |
metadata: { |
This file contains hidden or 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
{ | |
"References Cypress": { | |
"prefix": "cyref", | |
"body": [ | |
"/// <reference types=\"cypress\" />" | |
], | |
"description": "Adiciona autocomplete comandos Cypress" | |
} | |
} |