// rotas com mocks.
// Necessário por enquanto, dado que a aplicação demoautomation está instável
cy.server()
cy.route({
method: 'POST',
url: '**/api/1/databases/userdetails/collections/newtable?**',
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
{ | |
// Define o tema do VSCode | |
"workbench.colorTheme": "Dracula", | |
//Aumenta a fonte do terminal | |
"terminal.integrated.fontSize": 22, | |
// Define o tema dos ícones na sidebar | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.startupEditor": "newUntitledFile", |
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. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
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
// Adicionar este código dentro de support/index.js | |
// Importante: aplicável para projetos que usam o mochawesome como relatório | |
// No cypress.json, setar as seguintes configs: | |
// "screenshotsFolder": "mochawesome-report/assets", | |
// "videosFolder": "mochawesome-report/videos" | |
import './commands' | |
import addContext from 'mochawesome/addContext' |
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" /> | |
context('Portal', () => { | |
beforeEach(() => { | |
/** | |
Para autenticar no site são usados dois Cookies: | |
- OAuth_Token_Request_State | |
- JSESSIONID | |
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
// Cypress version: 6.5.0 | |
context('Diego', () => { | |
beforeEach(() => { | |
// rota para os endpoints que trazem cada post | |
cy.intercept({ | |
method: 'GET', | |
path: '/_next/data/**' | |
}).as('data') |
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
export const format = (value) => { | |
let formattedValue | |
formattedValue = value.replace(',', '.') | |
formattedValue = Number(formattedValue.split('$')[1].trim()) | |
formattedValue = String(value).includes('-') ? -formattedValue : formattedValue | |
return formattedValue | |
} |
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 workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] |
UPDATE Novembro/2023:
Atualmente existe uma solução com menos passos de configuração para o mesmo relatório:
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
{ | |
// Editor | |
"editor.parameterHints.enabled": false, | |
"editor.renderLineHighlight": "gutter", | |
"editor.tabSize": 2, | |
"editor.fontSize": 16, | |
"editor.lineHeight": 26, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.suggestSelection": "first", |
OlderNewer