Created
May 8, 2020 21:31
-
-
Save Julian88Tex/2fd4b933c5aede61948974032b5dd49f to your computer and use it in GitHub Desktop.
Activate Custom Lightning Experience Theme Using UI
This file contains 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
[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 | |
Suite Teardown Close Browser | |
*** Variable *** | |
${theme_position}= 1 | |
*** Keywords *** | |
Get Salesforce Domain | |
${orginfo}= Get Org Info | |
${INSTANCE_URL}= Pop From Dictionary ${orginfo} instance_url | |
Set Global Variable ${INSTANCE_URL} ${INSTANCE_URL} | |
*** Test Cases *** | |
Activate Branding | |
Get Salesforce Domain | |
Go To ${INSTANCE_URL}/lightning/setup/ThemingAndBranding/home | |
Wait Until Page Contains LightningRidge | |
Click Button //*[@id="setupComponent"]/div[2]/div/lightning-datatable/div[2]/div/div/div/table/tbody/tr[${theme_position}]/td[6]/lightning-primitive-cell-factory/span/div/lightning-primitive-cell-actions/lightning-button-menu/button | |
Click Element //*/lightning-menu-item[5][@class="slds-dropdown__item"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment