Skip to content

Instantly share code, notes, and snippets.

View brizental's full-sized avatar
🏠
Working from home

Beatriz Rizental brizental

🏠
Working from home
  • 04:33 (UTC +02:00)
View GitHub Profile
<template>
<div class="whiteWrapper">
<div class="container">
<div class="row">
<figure class="logo valign-wrapper">
<img class="responsive-img" src="/static/img/logo.svg" />
</figure>
<h1 class="logo-legend center-align">O App oficial!</h1>
</div>
<template>
<div class="whiteWrapper">
<div class="container">
<div class="row">
<figure class="logo valign-wrapper">
<img class="responsive-img" src="/static/img/logo.svg" />
</figure>
<h1 class="logo-legend center-align">O App oficial!</h1>
</div>
@brizental
brizental / comments-auth.js
Created August 15, 2017 18:24
Add a screenshot to a comment
"Add a screenshot to a comment": async function() {
await FunctionalHelpers.openPage(
this,
url("/issues/100"),
".wc-Comment-body"
);
let input = await this.remote.findById("image");
await this.remote.execute(function(element){
@brizental
brizental / comments-auth.js
Created August 15, 2017 18:29
Add a screenshot to a comment
"Add a screenshot to a comment": async function() {
await FunctionalHelpers.openPage(
this,
url("/issues/100"),
".wc-Comment-body"
);
let input = await this.remote.findById("image");
await input.type(require.toUrl("../fixtures/green_square.png"));
module.exports = function(file, api) {
// Alias the jscodeshift API.
var j = api.jscodeshift;
// Parse JS code into AST.
var root = j(file.source);
root.find(j.ExpressionStatement).forEach(function(p) {
// Only change the registerSuite method.
if (p.value.expression.callee &&
p.value.expression.callee.name === "registerSuite") {
import React from 'react'
import IdCrop from 'idcrop'
import Head from 'next/head'
class IdCropComponent extends React.Component {
constructor(props) {
super(props);
}
componentDidMount() {
@brizental
brizental / safari-failures.md
Created January 15, 2018 13:55
Intern 4 Safarari Failures

Example Failures

File uploads

"uploaded image file preview"() {
  return FunctionalHelpers.openPage(this, url, ".js-image-upload-label")
    .findById("image")
    .type("tests/fixtures/green_square.png")
    .sleep(1000)
// Cria uma função que retorna uma Promise.
// Essa função recebe como argumento uma URL e faz uma request HTTP
// para essa URL. A Promise resolve se a request tiver sido bem sucedida
// e retorna os dados da resposta da request. Se a request nao for bem
// sucedida a Promise sera rejeitada.
function getData(url) {
return new Promise(function (resolve, reject) {
// Cria uma nova request
const req = new XMLHttpRequest()
const perguntas = {
pergunta1: {
texto: "lorem ipsum blablabla",
resposta: "sim",
},
pergunta2: {
texto: "shururu",
resposta: "nao"
}
}