Let's start off by storing the GQL API endpoint as an environment variable for convenient retrieval within our tests.
// cypress.json
{
"env": {
"gqlEndpoint": "http://localhost:4000/graphql"| # Source: https://app.circleci.com/pipelines/github/kurtosis-tech/eth2-merge-kurtosis-module/450/workflows/bf293a0e-83ee-47d1-96e5-ce40a4dc1b85/jobs/597 | |
| [37mDEBU[0m[2022-05-05T15:47:46Z] Received gRPC request to method '/module_api.ExecutableModuleService/IsAvailable' with args: | |
| [37mDEBU[0m[2022-05-05T15:47:46Z] gRPC request to method '/module_api.ExecutableModuleService/IsAvailable' succeeded with response: | |
| [37mDEBU[0m[2022-05-05T15:47:46Z] Received gRPC request to method '/module_api.ExecutableModuleService/Execute' with args: | |
| params_json:"{}" | |
| [36mINFO[0m[2022-05-05T15:47:46Z] Deserializing the following execute params: | |
| {} | |
| [36mINFO[0m[2022-05-05T15:47:46Z] Successfully deserialized execute params | |
| [36mINFO[0m[2022-05-05T15:47:46Z] Adding 1 participants logging at level 'info'... |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise |
| # coding: utf8 | |
| """ Attempt at gevent-compatible requests without any monkeypatching """ | |
| import geventhttpclient | |
| from geventhttpclient import httplib as gehttplib | |
| from geventhttpclient.useragent import CompatResponse | |
| import httplib as _httplib | |
| import requests |
| # Create a directory | |
| mkdir ~/tmux-install | |
| cd ~/tmux-install | |
| # Get the files | |
| curl -OL http://downloads.sourceforge.net/tmux/tmux-1.5.tar.gz | |
| curl -OL http://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.16-stable.tar.gz | |
| # Extract them | |
| tar xzf tmux-1.5.tar.gz |
| sudo apt-get install mesa-utils | |
| sudo mkdir /etc/X11/xorg.conf.d/ | |
| echo -e 'Section "Device"\n Identifier "Intel Graphics"\n Driver "Intel"\n Option "AccelMethod" "sna"\n Option "TearFree" "true"\nEndSection' | sudo tee /etc/X11/xorg.conf.d/20-intel.conf | |
| sudo reboot |
| var touchstartX = 0; | |
| var touchstartY = 0; | |
| var touchendX = 0; | |
| var touchendY = 0; | |
| var gesuredZone = document.getElementById('gesuredZone'); | |
| gesuredZone.addEventListener('touchstart', function(event) { | |
| touchstartX = event.screenX; | |
| touchstartY = event.screenY; |