Skip to content

Commit d07145f

Browse files
fix: test instructions
1 parent 433c105 commit d07145f

File tree

3 files changed

+59
-20
lines changed

3 files changed

+59
-20
lines changed

docs-site/src/pages/pattern-lab/_patterns/02-components/chip/10-chip-url-variations.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<bolt-list-item>
1010
{% include "@bolt-components-chip/chip.twig" with {
1111
text: "Has URL",
12-
url: "#!",
12+
url: "https://pega.com",
1313
} only %}
1414
</bolt-list-item>
1515
</bolt-list>

packages/components/bolt-chip/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Stylistic tags for displaying meta data. Part of the Bolt “Components” CSS framework that powers the [Bolt Design System](https://www.boltdesignsystem.com).
1+
Pill like container for displaying meta data text. Part of the Bolt “Components” CSS framework that powers the [Bolt Design System](https://www.boltdesignsystem.com).
22

33
###### Install via NPM
44

Lines changed: 57 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,62 @@
1-
# Chip testing steps
1+
# Chip component testing steps
22

3-
## Chip render as expected
3+
## Chip component render as expected (functionally and visually)
44

5-
- Component is rendered as `bolt-chip` with text inside
5+
The `bolt-chip` component requires JS to function. Perform all tests with JS on.
66

7-
Testing URL: `pattern-lab/patterns/02-components-chip-05-chip/02-components-chip-05-chip.html`
8-
9-
- By adding `url` attribute we can add link to chip
10-
11-
Testing URL: `pattern-lab/patterns/02-components-chip-05-chip/02-components-chip-05-chip.html`
12-
13-
- Attributes passed to element are added to it
14-
15-
Testing URL: `pattern-lab/patterns/02-components-chip-05-chip/02-components-chip-05-chip.html`
16-
17-
## Icon as web component render as expected
7+
# Chip component functional testing steps
188

19-
- Component is rendered as `bolt-chip` with rendered text
20-
- By adding `url` attribute we can add link to chip
21-
- Attributes passed to element are added to it
9+
Functional testing should be performed manually by the QA team across the standard compliment of browsers. In each scenario, browser-type is specified when necessary. If browser type is not specified, the test applies to both "desktop" and "mobile" browsers.
2210

23-
Testing URL: `pattern-lab/patterns/02-components-chip-10-chip-with-web-component/02-components-chip-10-chip-with-web-component.html`
11+
## Feature: chip
12+
13+
In order to present meta data text
14+
As a UX designer, developer or content administrator
15+
I need to ensure the "bolt-chip" component renders and functions as expected
16+
17+
## Scenario: basic
18+
19+
1. Given I am viewing the [basic chip page](https://boltdesignsystem.com/pattern-lab/patterns/02-components-chip-05-chip/02-components-chip-05-chip.html)
20+
2. And I see a piece of text in a pill like container that reads "Chip"
21+
3. When I click on the chip
22+
4. Then nothing should happen because default chips are not links
23+
24+
Note: The behavior outlined above should be true for all subsequent tests unless otherwise noted. It will be referred to as the "default chip behavior".
25+
26+
## Scenario: url variations
27+
28+
1. Given I am viewing the URL section of the [URL demo page](https://boltdesignsystem.com/pattern-lab/patterns/02-components-chip-10-chip-url-variations/02-components-chip-10-chip-url-variations.html)
29+
2. And I see two chips, one reads "No URL", the other reads "Has URL"
30+
3. When I click on the "No URL" chip
31+
4. Then nothing should happen
32+
5. When I hover over "Has URL" chip
33+
6. Then the chip's background color will become darker
34+
7. When I click on the "Has URL" chip
35+
8. Then the page will be directed to https://pega.com
36+
37+
## Scenario: target variations
38+
39+
1. Given I am viewing the Target section of the [URL demo page](https://boltdesignsystem.com/pattern-lab/patterns/02-components-chip-10-chip-url-variations/02-components-chip-10-chip-url-variations.html)
40+
2. And I see two chips, one reads "Open link in current tab", the other reads "Open link in new tab"
41+
3. When I click on the "Open link in current tab" chip
42+
4. Then the page will be directed to https://pega.com
43+
7. When I click on the "Open link in new tab" chip
44+
8. Then a new tab or window will open and be directed to https://pega.com
45+
46+
## Scenario: spacing variations
47+
48+
[Spacing demo](https://boltdesignsystem.com/pattern-lab/patterns/02-components-chip-15-chip-spacing-variations/02-components-chip-15-chip-spacing-variations.html)
49+
50+
`// This is a purely visual test, use VRT`
51+
52+
## Scenario: icon variations
53+
54+
[Icon usage demo](https://boltdesignsystem.com/pattern-lab/patterns/02-components-chip-20-chip-icon-variations/02-components-chip-20-chip-icon-variations.html)
55+
56+
`// This is a purely visual test, use VRT`
57+
58+
## Scenario: chip with web components
59+
60+
[Web components demo](https://boltdesignsystem.com/pattern-lab/patterns/02-components-chip-999-chip-with-web-component/02-components-chip-999-chip-with-web-component.html)
61+
62+
`// This is a purely visual test, use VRT`

0 commit comments

Comments
 (0)