-
Notifications
You must be signed in to change notification settings - Fork 0
/
component.go
30 lines (26 loc) · 815 Bytes
/
component.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package cruda
import (
"github.com/Oppodelldog/chromedp-test/group"
"github.com/chromedp/chromedp"
)
func WaitForComponent() chromedp.Action {
return prefixError("WaitForComponent",
group.New("wait for CRUDAComponent to show",
chromedp.WaitVisible("*[data-testid='CRUDComponent']", chromedp.ByQuery),
),
)
}
func WaitForJSXPageComponent() chromedp.Action {
return prefixError("WaitForJSXPageComponent",
group.New("wait for JSX Element that defines a page",
chromedp.WaitVisible("*[data-testid='jsx-page']", chromedp.ByQuery),
),
)
}
func WaitForToolsContainer() chromedp.Action {
return prefixError("WaitForToolsContainer",
group.New("wait for tools container that holds the custom tools",
chromedp.WaitVisible("*[data-testid='crud-and-tools-container']", chromedp.ByQuery),
),
)
}