@helvetia-design/playwright 0.0.0-stage → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/LICENSE +210 -0
  2. package/dist/src/index.js +8 -0
  3. package/dist/src/lib/components/accordion.po.js +74 -0
  4. package/dist/src/lib/components/app-footer.po.js +132 -0
  5. package/dist/src/lib/components/app-navbar.po.js +106 -0
  6. package/dist/src/lib/components/badge.po.js +32 -0
  7. package/dist/src/lib/components/brand-icon.po.js +13 -0
  8. package/dist/src/lib/components/button.po.js +86 -0
  9. package/dist/src/lib/components/card.po.js +148 -0
  10. package/dist/src/lib/components/carousel.po.js +92 -0
  11. package/dist/src/lib/components/checkbox.po.js +107 -0
  12. package/dist/src/lib/components/close.po.js +31 -0
  13. package/dist/src/lib/components/content.po.js +32 -0
  14. package/dist/src/lib/components/counter.po.js +121 -0
  15. package/dist/src/lib/components/data-item.po.js +235 -0
  16. package/dist/src/lib/components/data.po.js +110 -0
  17. package/dist/src/lib/components/datepicker.po.js +260 -0
  18. package/dist/src/lib/components/divider.po.js +10 -0
  19. package/dist/src/lib/components/drawer.po.js +55 -0
  20. package/dist/src/lib/components/file-upload.po.js +200 -0
  21. package/dist/src/lib/components/heading.po.js +32 -0
  22. package/dist/src/lib/components/hint.po.js +71 -0
  23. package/dist/src/lib/components/icon.po.js +13 -0
  24. package/dist/src/lib/components/index.js +49 -0
  25. package/dist/src/lib/components/input.po.js +107 -0
  26. package/dist/src/lib/components/label.po.js +32 -0
  27. package/dist/src/lib/components/list.po.js +68 -0
  28. package/dist/src/lib/components/logo.po.js +13 -0
  29. package/dist/src/lib/components/modal.po.js +97 -0
  30. package/dist/src/lib/components/notification.po.js +56 -0
  31. package/dist/src/lib/components/number-input.po.js +107 -0
  32. package/dist/src/lib/components/page-object.js +47 -0
  33. package/dist/src/lib/components/pagination.po.js +146 -0
  34. package/dist/src/lib/components/phone-input.po.js +302 -0
  35. package/dist/src/lib/components/popup.po.js +55 -0
  36. package/dist/src/lib/components/radio.po.js +89 -0
  37. package/dist/src/lib/components/root.po.js +32 -0
  38. package/dist/src/lib/components/segment.po.js +135 -0
  39. package/dist/src/lib/components/select.po.js +257 -0
  40. package/dist/src/lib/components/shape.po.js +10 -0
  41. package/dist/src/lib/components/sheet.po.js +88 -0
  42. package/dist/src/lib/components/slider.po.js +101 -0
  43. package/dist/src/lib/components/snackbar.po.js +115 -0
  44. package/dist/src/lib/components/spinner.po.js +13 -0
  45. package/dist/src/lib/components/stack.po.js +32 -0
  46. package/dist/src/lib/components/steps.po.js +112 -0
  47. package/dist/src/lib/components/tabs.po.js +110 -0
  48. package/dist/src/lib/components/tag.po.js +53 -0
  49. package/dist/src/lib/components/text.po.js +32 -0
  50. package/dist/src/lib/components/textarea.po.js +89 -0
  51. package/dist/src/lib/components/toast.po.js +92 -0
  52. package/dist/src/lib/components/toggle.po.js +107 -0
  53. package/dist/src/lib/components/tooltip.po.js +32 -0
  54. package/dist/src/lib/devices.js +6 -0
  55. package/dist/src/lib/extend.js +375 -0
  56. package/dist/src/lib/functions/a11y.js +31 -0
  57. package/dist/src/lib/matchers/index.js +12 -0
  58. package/dist/src/lib/matchers/to-have-first-received-event-detail.js +44 -0
  59. package/dist/src/lib/matchers/to-have-nth-received-event-detail.js +53 -0
  60. package/dist/src/lib/matchers/to-have-received-event-detail.js +44 -0
  61. package/dist/src/lib/matchers/to-have-received-event-times.js +33 -0
  62. package/dist/src/lib/matchers/to-have-received-event.js +33 -0
  63. package/dist/src/lib/page/event-spy.js +198 -0
  64. package/dist/src/lib/page/utils/goto.js +71 -0
  65. package/dist/src/lib/page/utils/index.js +6 -0
  66. package/dist/src/lib/page/utils/locator.js +38 -0
  67. package/dist/src/lib/page/utils/mount-ssr.js +118 -0
  68. package/dist/src/lib/page/utils/mount.js +70 -0
  69. package/dist/src/lib/page/utils/spy-on-event.js +34 -0
  70. package/dist/src/lib/page/utils/wait-for-changes.js +99 -0
  71. package/dist/src/lib/screenshot.js +13 -0
  72. package/dist/src/lib/test-expect.js +1 -0
  73. package/dist/src/lib/types.js +54 -0
  74. package/package.json +31 -3
  75. package/sbom.cdx.json +80472 -0
  76. package/README.md +0 -3
@@ -0,0 +1,55 @@
1
+ import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
2
+ import { _ as _inherits } from "@swc/helpers/_/_inherits";
3
+ import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
4
+ import { expect } from '@playwright/test';
5
+ import { PageObject } from './page-object';
6
+ import { DsClose } from './close.po';
7
+ export var DsPopup = /*#__PURE__*/ function(PageObject) {
8
+ "use strict";
9
+ _inherits(DsPopup, PageObject);
10
+ function DsPopup(el) {
11
+ var _this;
12
+ _this = PageObject.call(this, el) || this;
13
+ _this.panel = el.locator('[part="panel"]');
14
+ _this.close = new DsClose(el.locator('[part="close"]'));
15
+ return _this;
16
+ }
17
+ var _proto = DsPopup.prototype;
18
+ _proto.assertToBeOpen = function assertToBeOpen() {
19
+ return _async_to_generator(function() {
20
+ return _ts_generator(this, function(_state) {
21
+ switch(_state.label){
22
+ case 0:
23
+ return [
24
+ 4,
25
+ expect(this.el).toHaveClass(/\bis-open\b/)
26
+ ];
27
+ case 1:
28
+ _state.sent();
29
+ return [
30
+ 2
31
+ ];
32
+ }
33
+ });
34
+ }).call(this);
35
+ };
36
+ _proto.assertToBeClosed = function assertToBeClosed() {
37
+ return _async_to_generator(function() {
38
+ return _ts_generator(this, function(_state) {
39
+ switch(_state.label){
40
+ case 0:
41
+ return [
42
+ 4,
43
+ expect(this.el).not.toHaveClass(/\bis-open\b/)
44
+ ];
45
+ case 1:
46
+ _state.sent();
47
+ return [
48
+ 2
49
+ ];
50
+ }
51
+ });
52
+ }).call(this);
53
+ };
54
+ return DsPopup;
55
+ }(PageObject);
@@ -0,0 +1,89 @@
1
+ import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
2
+ import { _ as _inherits } from "@swc/helpers/_/_inherits";
3
+ import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
4
+ import { expect } from '@playwright/test';
5
+ import { PageObject } from './page-object';
6
+ export var DsRadio = /*#__PURE__*/ function(PageObject) {
7
+ "use strict";
8
+ _inherits(DsRadio, PageObject);
9
+ function DsRadio(el) {
10
+ var _this;
11
+ _this = PageObject.call(this, el) || this;
12
+ _this.nativeInput = el.locator('[part="input"]');
13
+ return _this;
14
+ }
15
+ var _proto = DsRadio.prototype;
16
+ _proto.select = function select() {
17
+ return _async_to_generator(function() {
18
+ return _ts_generator(this, function(_state) {
19
+ switch(_state.label){
20
+ case 0:
21
+ return [
22
+ 4,
23
+ this.el.click()
24
+ ];
25
+ case 1:
26
+ _state.sent();
27
+ return [
28
+ 2
29
+ ];
30
+ }
31
+ });
32
+ }).call(this);
33
+ };
34
+ _proto.assertToBeChecked = function assertToBeChecked() {
35
+ return _async_to_generator(function() {
36
+ return _ts_generator(this, function(_state) {
37
+ switch(_state.label){
38
+ case 0:
39
+ return [
40
+ 4,
41
+ expect(this.nativeInput).toBeChecked()
42
+ ];
43
+ case 1:
44
+ _state.sent();
45
+ return [
46
+ 2
47
+ ];
48
+ }
49
+ });
50
+ }).call(this);
51
+ };
52
+ _proto.assertToBeUnchecked = function assertToBeUnchecked() {
53
+ return _async_to_generator(function() {
54
+ return _ts_generator(this, function(_state) {
55
+ switch(_state.label){
56
+ case 0:
57
+ return [
58
+ 4,
59
+ expect(this.nativeInput).not.toBeChecked()
60
+ ];
61
+ case 1:
62
+ _state.sent();
63
+ return [
64
+ 2
65
+ ];
66
+ }
67
+ });
68
+ }).call(this);
69
+ };
70
+ _proto.assertToBeDisabled = function assertToBeDisabled() {
71
+ return _async_to_generator(function() {
72
+ return _ts_generator(this, function(_state) {
73
+ switch(_state.label){
74
+ case 0:
75
+ return [
76
+ 4,
77
+ expect(this.nativeInput).toBeDisabled()
78
+ ];
79
+ case 1:
80
+ _state.sent();
81
+ return [
82
+ 2
83
+ ];
84
+ }
85
+ });
86
+ }).call(this);
87
+ };
88
+ return DsRadio;
89
+ }(PageObject);
@@ -0,0 +1,32 @@
1
+ import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
2
+ import { _ as _inherits } from "@swc/helpers/_/_inherits";
3
+ import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
4
+ import { expect } from '@playwright/test';
5
+ import { PageObject } from './page-object';
6
+ export var DsRoot = /*#__PURE__*/ function(PageObject) {
7
+ "use strict";
8
+ _inherits(DsRoot, PageObject);
9
+ function DsRoot(el) {
10
+ return PageObject.call(this, el) || this;
11
+ }
12
+ var _proto = DsRoot.prototype;
13
+ _proto.assertToContainText = function assertToContainText(text) {
14
+ return _async_to_generator(function() {
15
+ return _ts_generator(this, function(_state) {
16
+ switch(_state.label){
17
+ case 0:
18
+ return [
19
+ 4,
20
+ expect(this.el).toContainText(text)
21
+ ];
22
+ case 1:
23
+ _state.sent();
24
+ return [
25
+ 2
26
+ ];
27
+ }
28
+ });
29
+ }).call(this);
30
+ };
31
+ return DsRoot;
32
+ }(PageObject);
@@ -0,0 +1,135 @@
1
+ import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
2
+ import { _ as _inherits } from "@swc/helpers/_/_inherits";
3
+ import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
4
+ import { expect } from '@playwright/test';
5
+ import { PageObject } from './page-object';
6
+ export var DsSegment = /*#__PURE__*/ function(PageObject) {
7
+ "use strict";
8
+ _inherits(DsSegment, PageObject);
9
+ function DsSegment(el) {
10
+ return PageObject.call(this, el) || this;
11
+ }
12
+ var _proto = DsSegment.prototype;
13
+ _proto.itemInput = function itemInput(value) {
14
+ return this.el.locator('#group input[value="' + value + '"]');
15
+ };
16
+ _proto.select = function select(value) {
17
+ return _async_to_generator(function() {
18
+ return _ts_generator(this, function(_state) {
19
+ switch(_state.label){
20
+ case 0:
21
+ return [
22
+ 4,
23
+ this.itemInput(value).click()
24
+ ];
25
+ case 1:
26
+ _state.sent();
27
+ return [
28
+ 2
29
+ ];
30
+ }
31
+ });
32
+ }).call(this);
33
+ };
34
+ _proto.assertSelectedValue = function assertSelectedValue(value) {
35
+ return _async_to_generator(function() {
36
+ return _ts_generator(this, function(_state) {
37
+ switch(_state.label){
38
+ case 0:
39
+ return [
40
+ 4,
41
+ expect(this.itemInput(value)).toBeChecked()
42
+ ];
43
+ case 1:
44
+ _state.sent();
45
+ return [
46
+ 2
47
+ ];
48
+ }
49
+ });
50
+ }).call(this);
51
+ };
52
+ _proto.assertNoSelection = function assertNoSelection() {
53
+ return _async_to_generator(function() {
54
+ var inputs, count, i;
55
+ return _ts_generator(this, function(_state) {
56
+ switch(_state.label){
57
+ case 0:
58
+ inputs = this.el.locator('#group input[type="radio"]');
59
+ return [
60
+ 4,
61
+ inputs.count()
62
+ ];
63
+ case 1:
64
+ count = _state.sent();
65
+ i = 0;
66
+ _state.label = 2;
67
+ case 2:
68
+ if (!(i < count)) return [
69
+ 3,
70
+ 5
71
+ ];
72
+ return [
73
+ 4,
74
+ expect(inputs.nth(i)).not.toBeChecked()
75
+ ];
76
+ case 3:
77
+ _state.sent();
78
+ _state.label = 4;
79
+ case 4:
80
+ i++;
81
+ return [
82
+ 3,
83
+ 2
84
+ ];
85
+ case 5:
86
+ return [
87
+ 2
88
+ ];
89
+ }
90
+ });
91
+ }).call(this);
92
+ };
93
+ _proto.assertToBeDisabled = function assertToBeDisabled() {
94
+ return _async_to_generator(function() {
95
+ var inputs, count, i;
96
+ return _ts_generator(this, function(_state) {
97
+ switch(_state.label){
98
+ case 0:
99
+ inputs = this.el.locator('#group input[type="radio"]');
100
+ return [
101
+ 4,
102
+ inputs.count()
103
+ ];
104
+ case 1:
105
+ count = _state.sent();
106
+ i = 0;
107
+ _state.label = 2;
108
+ case 2:
109
+ if (!(i < count)) return [
110
+ 3,
111
+ 5
112
+ ];
113
+ return [
114
+ 4,
115
+ expect(inputs.nth(i)).toBeDisabled()
116
+ ];
117
+ case 3:
118
+ _state.sent();
119
+ _state.label = 4;
120
+ case 4:
121
+ i++;
122
+ return [
123
+ 3,
124
+ 2
125
+ ];
126
+ case 5:
127
+ return [
128
+ 2
129
+ ];
130
+ }
131
+ });
132
+ }).call(this);
133
+ };
134
+ return DsSegment;
135
+ }(PageObject);
@@ -0,0 +1,257 @@
1
+ import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
2
+ import { _ as _inherits } from "@swc/helpers/_/_inherits";
3
+ import { _ as _create_for_of_iterator_helper_loose } from "@swc/helpers/_/_create_for_of_iterator_helper_loose";
4
+ import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
5
+ import { expect } from '@playwright/test';
6
+ import { PageObject } from './page-object';
7
+ export var DsSelect = /*#__PURE__*/ function(PageObject) {
8
+ "use strict";
9
+ _inherits(DsSelect, PageObject);
10
+ function DsSelect(el) {
11
+ var _this;
12
+ _this = PageObject.call(this, el) || this;
13
+ _this.trigger = el.locator('.ss-main');
14
+ _this.searchInput = el.locator('.ss-search input');
15
+ _this.clearButton = el.locator('.ss-deselect');
16
+ _this.chips = el.locator('.ss-value-text');
17
+ return _this;
18
+ }
19
+ var _proto = DsSelect.prototype;
20
+ _proto.option = function option(label) {
21
+ return this.el.locator('.ss-option', {
22
+ hasText: label
23
+ });
24
+ };
25
+ _proto.open = function open() {
26
+ return _async_to_generator(function() {
27
+ return _ts_generator(this, function(_state) {
28
+ switch(_state.label){
29
+ case 0:
30
+ return [
31
+ 4,
32
+ this.trigger.click()
33
+ ];
34
+ case 1:
35
+ _state.sent();
36
+ return [
37
+ 2
38
+ ];
39
+ }
40
+ });
41
+ }).call(this);
42
+ };
43
+ /** Selects an option the way a user would: opens the dropdown and clicks the option by its visible label (e.g. "Basel", not "ch-bs"). */ _proto.select = function select(label) {
44
+ return _async_to_generator(function() {
45
+ return _ts_generator(this, function(_state) {
46
+ switch(_state.label){
47
+ case 0:
48
+ return [
49
+ 4,
50
+ this.open()
51
+ ];
52
+ case 1:
53
+ _state.sent();
54
+ return [
55
+ 4,
56
+ this.option(label).click()
57
+ ];
58
+ case 2:
59
+ _state.sent();
60
+ return [
61
+ 2
62
+ ];
63
+ }
64
+ });
65
+ }).call(this);
66
+ };
67
+ /** Selects multiple options by their visible labels (multi-select keeps the dropdown open between clicks). */ _proto.selectMultiple = function selectMultiple(labels) {
68
+ return _async_to_generator(function() {
69
+ var _iterator, _step, label;
70
+ return _ts_generator(this, function(_state) {
71
+ switch(_state.label){
72
+ case 0:
73
+ return [
74
+ 4,
75
+ this.open()
76
+ ];
77
+ case 1:
78
+ _state.sent();
79
+ _iterator = _create_for_of_iterator_helper_loose(labels);
80
+ _state.label = 2;
81
+ case 2:
82
+ if (!!(_step = _iterator()).done) return [
83
+ 3,
84
+ 5
85
+ ];
86
+ label = _step.value;
87
+ return [
88
+ 4,
89
+ this.option(label).click()
90
+ ];
91
+ case 3:
92
+ _state.sent();
93
+ _state.label = 4;
94
+ case 4:
95
+ return [
96
+ 3,
97
+ 2
98
+ ];
99
+ case 5:
100
+ return [
101
+ 2
102
+ ];
103
+ }
104
+ });
105
+ }).call(this);
106
+ };
107
+ _proto.search = function search(text) {
108
+ return _async_to_generator(function() {
109
+ return _ts_generator(this, function(_state) {
110
+ switch(_state.label){
111
+ case 0:
112
+ return [
113
+ 4,
114
+ this.open()
115
+ ];
116
+ case 1:
117
+ _state.sent();
118
+ return [
119
+ 4,
120
+ this.searchInput.fill(text)
121
+ ];
122
+ case 2:
123
+ _state.sent();
124
+ return [
125
+ 2
126
+ ];
127
+ }
128
+ });
129
+ }).call(this);
130
+ };
131
+ _proto.clear = function clear() {
132
+ return _async_to_generator(function() {
133
+ return _ts_generator(this, function(_state) {
134
+ switch(_state.label){
135
+ case 0:
136
+ return [
137
+ 4,
138
+ this.clearButton.click()
139
+ ];
140
+ case 1:
141
+ _state.sent();
142
+ return [
143
+ 2
144
+ ];
145
+ }
146
+ });
147
+ }).call(this);
148
+ };
149
+ /** Asserts the selected label(s): a single string checks the trigger text, an array checks the multi-select chips. */ _proto.assertValue = function assertValue(value) {
150
+ return _async_to_generator(function() {
151
+ return _ts_generator(this, function(_state) {
152
+ switch(_state.label){
153
+ case 0:
154
+ if (!Array.isArray(value)) return [
155
+ 3,
156
+ 2
157
+ ];
158
+ return [
159
+ 4,
160
+ expect(this.chips).toHaveText(value)
161
+ ];
162
+ case 1:
163
+ _state.sent();
164
+ return [
165
+ 3,
166
+ 4
167
+ ];
168
+ case 2:
169
+ return [
170
+ 4,
171
+ expect(this.trigger).toContainText(value)
172
+ ];
173
+ case 3:
174
+ _state.sent();
175
+ _state.label = 4;
176
+ case 4:
177
+ return [
178
+ 2
179
+ ];
180
+ }
181
+ });
182
+ }).call(this);
183
+ };
184
+ _proto.assertToBeDisabled = function assertToBeDisabled() {
185
+ return _async_to_generator(function() {
186
+ return _ts_generator(this, function(_state) {
187
+ switch(_state.label){
188
+ case 0:
189
+ return [
190
+ 4,
191
+ expect(this.trigger).toHaveClass(/ss-disabled/)
192
+ ];
193
+ case 1:
194
+ _state.sent();
195
+ return [
196
+ 2
197
+ ];
198
+ }
199
+ });
200
+ }).call(this);
201
+ };
202
+ _proto.assertOpen = function assertOpen() {
203
+ return _async_to_generator(function() {
204
+ return _ts_generator(this, function(_state) {
205
+ switch(_state.label){
206
+ case 0:
207
+ return [
208
+ 4,
209
+ expect(this.trigger).toHaveAttribute('aria-expanded', 'true')
210
+ ];
211
+ case 1:
212
+ _state.sent();
213
+ return [
214
+ 2
215
+ ];
216
+ }
217
+ });
218
+ }).call(this);
219
+ };
220
+ _proto.assertClosed = function assertClosed() {
221
+ return _async_to_generator(function() {
222
+ return _ts_generator(this, function(_state) {
223
+ switch(_state.label){
224
+ case 0:
225
+ return [
226
+ 4,
227
+ expect(this.trigger).toHaveAttribute('aria-expanded', 'false')
228
+ ];
229
+ case 1:
230
+ _state.sent();
231
+ return [
232
+ 2
233
+ ];
234
+ }
235
+ });
236
+ }).call(this);
237
+ };
238
+ _proto.assertHighlighted = function assertHighlighted(label) {
239
+ return _async_to_generator(function() {
240
+ return _ts_generator(this, function(_state) {
241
+ switch(_state.label){
242
+ case 0:
243
+ return [
244
+ 4,
245
+ expect(this.option(label)).toHaveClass(/ss-highlighted/)
246
+ ];
247
+ case 1:
248
+ _state.sent();
249
+ return [
250
+ 2
251
+ ];
252
+ }
253
+ });
254
+ }).call(this);
255
+ };
256
+ return DsSelect;
257
+ }(PageObject);
@@ -0,0 +1,10 @@
1
+ import { _ as _inherits } from "@swc/helpers/_/_inherits";
2
+ import { PageObject } from './page-object';
3
+ export var DsShape = /*#__PURE__*/ function(PageObject) {
4
+ "use strict";
5
+ _inherits(DsShape, PageObject);
6
+ function DsShape(el) {
7
+ return PageObject.call(this, el) || this;
8
+ }
9
+ return DsShape;
10
+ }(PageObject);
@@ -0,0 +1,88 @@
1
+ import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
2
+ import { _ as _inherits } from "@swc/helpers/_/_inherits";
3
+ import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
4
+ import { expect } from '@playwright/test';
5
+ import { PageObject } from './page-object';
6
+ export var DsSheet = /*#__PURE__*/ function(PageObject) {
7
+ "use strict";
8
+ _inherits(DsSheet, PageObject);
9
+ function DsSheet(el) {
10
+ var _this;
11
+ _this = PageObject.call(this, el) || this, _this.container = _this.el.locator('.ds-container');
12
+ return _this;
13
+ }
14
+ var _proto = DsSheet.prototype;
15
+ _proto.assertToContainText = function assertToContainText(text) {
16
+ return _async_to_generator(function() {
17
+ return _ts_generator(this, function(_state) {
18
+ switch(_state.label){
19
+ case 0:
20
+ return [
21
+ 4,
22
+ expect(this.el).toContainText(text)
23
+ ];
24
+ case 1:
25
+ _state.sent();
26
+ return [
27
+ 2
28
+ ];
29
+ }
30
+ });
31
+ }).call(this);
32
+ };
33
+ _proto.assertToBeDefaultContainer = function assertToBeDefaultContainer() {
34
+ return _async_to_generator(function() {
35
+ return _ts_generator(this, function(_state) {
36
+ switch(_state.label){
37
+ case 0:
38
+ return [
39
+ 4,
40
+ expect(this.container).not.toHaveClass(/is-fluid|is-compact/)
41
+ ];
42
+ case 1:
43
+ _state.sent();
44
+ return [
45
+ 2
46
+ ];
47
+ }
48
+ });
49
+ }).call(this);
50
+ };
51
+ _proto.assertToBeFluidContainer = function assertToBeFluidContainer() {
52
+ return _async_to_generator(function() {
53
+ return _ts_generator(this, function(_state) {
54
+ switch(_state.label){
55
+ case 0:
56
+ return [
57
+ 4,
58
+ expect(this.container).toHaveClass(/is-fluid/)
59
+ ];
60
+ case 1:
61
+ _state.sent();
62
+ return [
63
+ 2
64
+ ];
65
+ }
66
+ });
67
+ }).call(this);
68
+ };
69
+ _proto.assertToBeCompactContainer = function assertToBeCompactContainer() {
70
+ return _async_to_generator(function() {
71
+ return _ts_generator(this, function(_state) {
72
+ switch(_state.label){
73
+ case 0:
74
+ return [
75
+ 4,
76
+ expect(this.container).toHaveClass(/is-compact/)
77
+ ];
78
+ case 1:
79
+ _state.sent();
80
+ return [
81
+ 2
82
+ ];
83
+ }
84
+ });
85
+ }).call(this);
86
+ };
87
+ return DsSheet;
88
+ }(PageObject);