-
Notifications
You must be signed in to change notification settings - Fork 167
/
Copy path.markbot.yml
78 lines (73 loc) · 2.03 KB
/
.markbot.yml
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
repo: "pretty-products"
canvasCourse: "web-design-1"
inherit:
- naming-restrict-live
- git-2
- html
- css
html:
- path: "index.html"
outline: false
hasNot:
- selector: "h1"
message: "This isn’t a full webpage, just a small section, so starting at `<h2>` makes sense."
search:
- "Favourite"
- "Share"
- "Add to"
- "cart"
- "Crystal"
- "Shiny, glowy and make great sounds."
- "Diamond"
- "Diamonds sparkle in all shapes, sizes & clarities."
- "Gem"
- "Lots of bright, wonderful colours—and shapes."
- "Jewel"
- "The root word of jewellery, so ya know it’s gorg’"
- "Pearl"
- "Beautifly pearlescent circles created inside living creatures."
- "Rock"
- "Who doesn’t love a good, plain, ol’ rock now & then."
- "Ruby"
- "If you love dazzling red—this is the one!"
- "Sapphire"
- "Blue for you. Blue is blue. Yay, blue."
css:
- path: "css/main.css"
has:
- ["html", "font-family", "Karma, serif"]
- ["html", "line-height", "1.5"]
search:
- "display: grid"
- "display: flex"
- "justify-content"
- "align-items"
- "gap"
- "padding"
- "margin"
- "background-color"
- "color"
- "font-family"
- "font-weight"
- "Oswald, sans-serif"
screenshots:
- path: "index.html"
sizes: [800]
functionality:
- path: "index.html"
label: "Accessibility"
tests:
- |
/** Double check all links have unique inner text or ARIA labels. **/
const links = $$("a");
let linkText = []
let uniqText = false;
[].forEach.call(links, (elem) => {
let text = elem.innerText.trim() + (elem.getAttribute("aria-label") || "").trim();
linkText.push(text.replace(/\s*/, ''));
});
uniqText = new Set(linkText);
if (uniqText.size != linkText.length) {
fail("Some links have duplicate content without unique labels.")
}
pass();