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
# Snippetes | |
Uma forma fácil e produtiva de acionar comandos. | |
## Caminho do arquivo conforme o SO (Sistema Operacional) | |
Windows: | |
C:\Users\seuNomedeUsuario\AppData\Roaming\Code\User\snippets\ | |
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('Hacker Stories', () => { | |
const initialTerm = 'React' | |
const newTerm = 'Cypress' | |
context('Hitting the real API', () => { | |
beforeEach(() => { | |
cy.intercept({ | |
method: 'GET', | |
pathname: '**/search', | |
query: { |
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
{ | |
"name": "curso-cypress-avancado", | |
"version": "1.0.0", | |
"description": "Projeto do curso avançado de Cypress da Escola TAT", | |
"main": "index.js", | |
"scripts": { | |
"lint": "npx standard", | |
"lint:fix": "npx standard --fix", | |
"test": "cypress run", | |
"cy:open": "cypress open" |
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
############ INSTALAR NODEJS | |
sudo apt install nodejs | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
sudo apt-get install gcc g++ make | |
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update && sudo apt-get install yarn | |
//npx create-react-app [NombreApp] | |
############## INSTALAR SQL SERVER |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export ANDROID_HOME=~/Android/Sdk | |
export PATH="$PATH:$ANDROID_HOME/tools" | |
export PATH="$PATH:$ANDROID_HOME/platform-tools" | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/diegofernandes/.oh-my-zsh" | |
export PATH="$PATH:/usr/local/bin" |
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
Cypress.Commands.add("clickRecaptcha", () => { | |
cy.window().then(win => { | |
win.document | |
.querySelector("iframe[src*='recaptcha']") | |
.contentDocument.getElementById("recaptcha-token") | |
.click(); | |
}); | |
}); |
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
/** | |
* 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 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
{ | |
"terminal.integrated.fontSize": 14, | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.tabSize": 2, | |
"editor.fontSize": 18, | |
"editor.lineHeight": 26, | |
"editor.fontFamily": "Fira Code", |
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
// 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 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: [ master ] | |
pull_request: |
NewerOlder