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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80{
"Enter x-secret-email into the email field": {
"actions": [
{
"method": "fill",
"selector": "internal:role=textbox[name=\"Email Address\"i]",
"text": "x-secret-email",
"code": "await page.getByRole('textbox', { name: 'Email Address' }).fill('x-secret-email');"
}
]
},
"Fill out the form with the following details:\nName: John Smith\nAddress: 1045 La Avenida St, Mountain View, CA 94043\nEmail: john.smith@at-microsoft.com": {
"actions": [
{
"method": "fill",
"selector": "internal:role=textbox[name=\"Full Name *\"i]",
"text": "John Smith",
"code": "await page.getByRole('textbox', { name: 'Full Name *' }).fill('John Smith');"
},
{
"method": "fill",
"selector": "internal:role=textbox[name=\"Email Address *\"i]",
"text": "john.smith@at-microsoft.com",
"code": "await page.getByRole('textbox', { name: 'Email Address *' }).fill('john.smith@at-microsoft.com');"
},
{
"method": "fill",
"selector": "internal:role=textbox[name=\"Street Address *\"i]",
"text": "1045 La Avenida St",
"code": "await page.getByRole('textbox', { name: 'Street Address *' }).fill('1045 La Avenida St');"
},
{
"method": "fill",
"selector": "internal:role=textbox[name=\"City *\"i]",
"text": "Mountain View",
"code": "await page.getByRole('textbox', { name: 'City *' }).fill('Mountain View');"
},
{
"method": "fill",
"selector": "internal:role=textbox[name=\"State/Province *\"i]",
"text": "CA",
"code": "await page.getByRole('textbox', { name: 'State/Province *' }).fill('CA');"
},
{
"method": "fill",
"selector": "internal:role=textbox[name=\"ZIP/Postal Code *\"i]",
"text": "94043",
"code": "await page.getByRole('textbox', { name: 'ZIP/Postal Code *' }).fill('94043');"
}
]
},
"- Enter \"bogus\" into the email field\n - Check that the value is in fact \"bogus\"\n - Check that the error message is displayed": {
"actions": [
{
"method": "fill",
"selector": "internal:role=textbox[name=\"Email Address\"i]",
"text": "bogus",
"code": "await page.getByRole('textbox', { name: 'Email Address' }).fill('bogus');"
}
]
},
"click the Fox button": {
"actions": [
{
"method": "click",
"selector": "internal:role=button[name=\"Fox\"i]",
"code": "await page.getByRole('button', { name: 'Fox' }).click();"
}
]
},
"click the Fox button again": {
"actions": [
{
"method": "click",
"selector": "internal:role=button[name=\"Fox\"i]",
"code": "await page.getByRole('button', { name: 'Fox' }).click();"
}
]
}
}