Skip to content

Instantly share code, notes, and snippets.

View christian-bromann's full-sized avatar
🕵️‍♂️
Testing All The Things™

Christian Bromann christian-bromann

🕵️‍♂️
Testing All The Things™
View GitHub Profile
import decamelize from 'decamelize';
import { namedTypes } from 'ast-types';
import { possibleStandardNames } from './constants.js';
type Node = namedTypes.Property | namedTypes.ObjectProperty | namedTypes.Expression | namedTypes.SpreadElement | namedTypes.SpreadProperty | namedTypes.ObjectMethod | undefined
/**
* Get the React property name for a given Stencil property name
@christian-bromann
christian-bromann / scripts-getA11yTree.ts
Created March 24, 2025 11:29
WebdriverIO Workshop Script for Chapter 13th
interface NodeInfo {
// xpath: string
cssSelector: string
tagName: string
role?: string
name?: string | null
description?: string
isDisabled?: boolean
isAccessible: boolean
children?: NodeInfo[]