Skip to content

Instantly share code, notes, and snippets.

View slawekradzyminski's full-sized avatar

Slawek Radzyminski slawekradzyminski

View GitHub Profile
/// <reference types="cypress" />
describe('Awesome tests', () => {
beforeEach(() => {
cy.visit('https://www.awesome-testing.com/')
cy.viewport(1920, 1080)
console.log('This will be logged before cy.visit')
})
it('should find Cypress posts', () => {
start
end
middle
console.log('start');
setTimeout(() => {
console.log('middle');
}, 1000);
console.log('end');
start
middle
end
console.log('start');
console.log('middle');
console.log('end');
/// <reference types="cypress" />
describe('Awesome tests', () => {
it('should find Cypress posts', () => {
cy.visit('https://awesome-testing.com/')
.then(() => {
cy.get('.gsc-input input')
}).then(($input) => {
cy.wrap($input).type('Cypress')
/// <reference types="cypress" />
describe('Awesome tests', () => {
beforeEach(() => {
cy.visit('https://awesome-testing.com/')
})
it('should find Cypress posts', () => {
cy.get('.gsc-input input').type('Cypress')
cy.get('.gsc-search-button input').click()
name: Cypress tests
on: [push]
jobs:
cypress:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
import io.gatling.core.Predef;
import io.gatling.core.scenario.Simulation;
import io.gatling.core.structure.ScenarioBuilder;
import io.gatling.http.Predef;
import io.gatling.http.protocol.HttpProtocolBuilder;
public class SimpleLoadTest extends Simulation {
HttpProtocolBuilder httpConf = Predef.http().baseUrl("http://localhost:8080")
.acceptHeader("application/json");
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
class SimpleLoadTest extends Simulation {
val httpConf = http.baseUrl("http://localhost:8080")
.acceptHeader("application/json")
val scn = scenario("Simple Load Test")