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
// file: cypress/support/e2e.js | |
import "@argos-ci/cypress/support"; | |
const resolutions = ["iphone-6", "ipad-2", [1024, 768]]; | |
Cypress.Commands.add("argosScreenshotForResolutions", (name, options = {}) => { | |
// Save the initial viewport size | |
const initialViewportWidth = Cypress.config("viewportWidth"); | |
const initialViewportHeight = Cypress.config("viewportHeight"); |
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
// Load OpenAI API key from script properties | |
const openaiApiKey = "YOUR_API_KEY"; | |
// Load Google Sheet data | |
const sheet = | |
SpreadsheetApp.getActiveSpreadsheet().getActiveSheet() || | |
SpreadsheetApp.getActiveSpreadsheet().getSheets()[0]; | |
const data = sheet.getDataRange().getValues(); | |
// Fetch response from OpenAI's completion API |