Skip to content

Instantly share code, notes, and snippets.

View iamdanthedev's full-sized avatar
😃

Dan The Dev iamdanthedev

😃
View GitHub Profile
@saschwarz
saschwarz / commands.js
Last active August 31, 2022 07:16
Automated Azure AD login and session token capture to json file for reading by Cypress commands. Heavily inspired by https://gist.github.com/pieterdv/82773fbe036719479d76ab0a4985dc3b
const API = Cypress.env('API');
const headers = {
Authorization: '',
};
Cypress.Commands.add('loginUser', () => {
return cy.readFile('aad-tokens.json')
.then(creds => {
// set auth headers so test setup calls are authorized
@vabka
vabka / Main.cs
Created November 28, 2019 14:42
Как скачать файл при помощи puppeteersharp, чтобы он скачался в нужную папку
using System;
using System.IO;
using System.Threading.Tasks;
using PuppeteerSharp;
namespace pptrTest
{
class Program
{
static async Task Main()