Skip to content

Instantly share code, notes, and snippets.

View Julian88Tex's full-sized avatar
☁️
Salesforce Staff DevOps Quality Engineer ☁️

Julian Joseph Julian88Tex

☁️
Salesforce Staff DevOps Quality Engineer ☁️
View GitHub Profile
*** Settings ***
Resource cumulusci/robotframework/Salesforce.robot
Library cumulusci.robotframework.PageObjects
Library Process
Suite Setup Run Keywords
... Setup Test Data
... Open Test Browser
Suite Teardown Delete Records And Close Browser
@Julian88Tex
Julian88Tex / close_githubactions_prs.yml
Created May 3, 2023 16:41
GitHub Action: Close PRs Opened by github-actions bot
name: Close PRs Opened by github-actions bot
on:
workflow_run:
workflows: [Tests]
types:
- completed
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@Julian88Tex
Julian88Tex / org_setup.yml
Created December 26, 2022 02:26
Example GitHub Action For Setting Up a Scratch Org Using CumulusCI and workflow_dispatch
name: Org Setup
run-name: '${{ github.event.inputs.name }}::${{ github.event.inputs.org }}::${{ github.event.inputs.flow }}::${{ github.event.inputs.days }}::${{ github.event.inputs.delete_on_failure }}'
on:
workflow_dispatch:
inputs:
name:
type: string
required: true
description: CumulusCI org name (no spaces)
@Julian88Tex
Julian88Tex / main.yml
Created December 23, 2022 21:01
Example of triggering a reusable test.yml GitHub Action workflow from a main.yml (CumulusCI)
name: Main
on:
push:
branches:
- 'main'
env:
CUMULUSCI_KEYCHAIN_CLASS: cumulusci.core.keychain.EnvironmentProjectKeychain
CUMULUSCI_SERVICE_github: ${{ secrets.CUMULUSCI_SERVICE_github }}
@Julian88Tex
Julian88Tex / playwright_create_contact_example.robot
Last active July 8, 2022 01:57
Example Salesforce Playwright Library Robot Framework Test
*** Settings ***
Resource cumulusci/robotframework/SalesforcePlaywright.robot
Suite Setup Run Keywords
... Open Test Browser
... Suite Setup Keywords
Suite Teardown Run Keywords
... Delete Records And Close Browser
*** Test Cases ***
@Julian88Tex
Julian88Tex / enable_history.robot
Created February 9, 2022 18:33
Enable Field History in Salesforce UI Using Robot Framework/CumulusCI
*** Settings ***
Resource cumulusci/robotframework/Salesforce.robot
Library cumulusci.robotframework.PageObjects
Suite Setup Run Keywords
... Setup Test Data
... Open Test Browser
Suite Teardown Delete Records And Close Browser
@Julian88Tex
Julian88Tex / gist:0732c3b02ced0937606ba89a1827b08f
Created July 22, 2021 07:16
Ferdi Unread Notification Debug Info
{"host":{"platform":"darwin","release":"20.5.0","screens":[{"id":441107468,"bounds":{"x":0,"y":0,"width":2560,"height":1440},"workArea":{"x":0,"y":25,"width":2560,"height":1415},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries_d50_referred: [[0.6440, 0.3405], [0.3303, 0.6163], [0.1615, 0.0580]], transfer:0.0777*x + 0.0000 if x < 0.0450 else (0.9495*x + 0.0495)**2.3955 + 0.0003, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":2560,"height":1440},"displayFrequency":59,"workAreaSize":{"width":2560,"height":1415},"scaleFactor":2,"rotation":0,"internal":false,"touchSupport":"unknown"},{"id":69734662,"bounds":{"x":-1344,"y":451,"width":1344,"height":840},"workArea":{"x":-1344,"y":451,"width":1344,"height":840},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":30,"colorSpace":"{primaries:BT709, transfer:IEC61966_2_1_HDR, matrix:RGB, range:FULL}","depthPerComponent":10,"size":{"width":1344,"height":840},"displayFrequency":59,"workAreaSize":{"
@Julian88Tex
Julian88Tex / add_picklist_entries_task.yml
Created April 14, 2021 04:41
Example of CumulusCI add_picklist_entries Task as Flow Steps
5:
task: add_picklist_entries
options:
picklists: npsp__DataImport__c.npsp__Status__c
entries:
- fullName: Ready To Process
- fullName: Imported
- fullName: Dry Run - Validated
- fullName: Dry Run - Error
- fullName: Failed
@Julian88Tex
Julian88Tex / RequestLibrarySuccessExample.robot
Last active February 28, 2024 04:41
A Robot Framework API test example using RequestLibrary
# Run Command: cci task run robot -o suites robot/NPSP/tests/api/success.robot -o vars BROWSER:headlesschrome
[Documentation] Success POST test.
*** Settings ***
Resource cumulusci/robotframework/Salesforce.robot
Resource robot/Cumulus/resources/NPSP.robot
Library DateTime
Library robot/NPSP/resources/RequestsLibrary/
@Julian88Tex
Julian88Tex / activate_custom_theme.robot
Created May 8, 2020 21:31
Activate Custom Lightning Experience Theme Using UI
[Documentation] Activates an existing custom theme based on its position.
... To be run in a CumulusciCI project.
... Add to a folder in root named "tasks".
... Run with command: cci task run robot -o suites tasks/activate_custom_theme.robot
*** Settings ***
Resource cumulusci/robotframework/Salesforce.robot
Suite Setup Open Test Browser