@elastic/eui-test-helpers 2.1.0 → 2.2.0
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.
- package/README.md +6 -0
- package/lib/cjs/components/call_out/selectors.d.ts +22 -0
- package/lib/cjs/components/call_out/selectors.js +36 -0
- package/lib/cjs/components/form/field_search/selectors.d.ts +11 -0
- package/lib/cjs/components/form/field_search/selectors.js +25 -0
- package/lib/cjs/components/pagination/selectors.d.ts +21 -0
- package/lib/cjs/components/pagination/selectors.js +35 -0
- package/lib/cjs/components/search_bar/selectors.d.ts +11 -0
- package/lib/cjs/components/search_bar/selectors.js +25 -0
- package/lib/cjs/components/side_nav/selectors.d.ts +21 -0
- package/lib/cjs/components/side_nav/selectors.js +35 -0
- package/lib/cjs/components/table/selectors.d.ts +15 -0
- package/lib/cjs/components/table/selectors.js +29 -0
- package/lib/cjs/index.d.ts +6 -0
- package/lib/cjs/index.js +66 -24
- package/lib/cjs/playwright/components/basic_table/object.d.ts +7 -12
- package/lib/cjs/playwright/components/basic_table/object.js +7 -13
- package/lib/cjs/playwright/components/call_out/object.d.ts +36 -0
- package/lib/cjs/playwright/components/call_out/object.js +84 -0
- package/lib/cjs/playwright/components/form/field_search/object.d.ts +21 -0
- package/lib/cjs/playwright/components/form/field_search/object.js +51 -0
- package/lib/cjs/playwright/components/pagination/object.d.ts +37 -0
- package/lib/cjs/playwright/components/pagination/object.js +121 -0
- package/lib/cjs/playwright/components/search_bar/object.d.ts +12 -0
- package/lib/cjs/playwright/components/search_bar/object.js +26 -0
- package/lib/cjs/playwright/components/side_nav/object.d.ts +34 -0
- package/lib/cjs/playwright/components/side_nav/object.js +84 -0
- package/lib/cjs/playwright/components/table/object.d.ts +28 -0
- package/lib/cjs/playwright/components/table/object.js +57 -0
- package/lib/cjs/selectors.d.ts +42 -0
- package/lib/cjs/selectors.js +42 -30
- package/lib/esm/components/call_out/selectors.d.ts +22 -0
- package/lib/esm/components/call_out/selectors.js +30 -0
- package/lib/esm/components/call_out/selectors.js.map +1 -0
- package/lib/esm/components/form/field_search/selectors.d.ts +11 -0
- package/lib/esm/components/form/field_search/selectors.js +19 -0
- package/lib/esm/components/form/field_search/selectors.js.map +1 -0
- package/lib/esm/components/pagination/selectors.d.ts +21 -0
- package/lib/esm/components/pagination/selectors.js +29 -0
- package/lib/esm/components/pagination/selectors.js.map +1 -0
- package/lib/esm/components/search_bar/selectors.d.ts +11 -0
- package/lib/esm/components/search_bar/selectors.js +19 -0
- package/lib/esm/components/search_bar/selectors.js.map +1 -0
- package/lib/esm/components/side_nav/selectors.d.ts +21 -0
- package/lib/esm/components/side_nav/selectors.js +29 -0
- package/lib/esm/components/side_nav/selectors.js.map +1 -0
- package/lib/esm/components/table/selectors.d.ts +15 -0
- package/lib/esm/components/table/selectors.js +23 -0
- package/lib/esm/components/table/selectors.js.map +1 -0
- package/lib/esm/index.d.ts +6 -0
- package/lib/esm/index.js +6 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/playwright/components/basic_table/object.d.ts +7 -12
- package/lib/esm/playwright/components/basic_table/object.js +7 -15
- package/lib/esm/playwright/components/basic_table/object.js.map +1 -1
- package/lib/esm/playwright/components/call_out/object.d.ts +36 -0
- package/lib/esm/playwright/components/call_out/object.js +72 -0
- package/lib/esm/playwright/components/call_out/object.js.map +1 -0
- package/lib/esm/playwright/components/form/field_search/object.d.ts +21 -0
- package/lib/esm/playwright/components/form/field_search/object.js +41 -0
- package/lib/esm/playwright/components/form/field_search/object.js.map +1 -0
- package/lib/esm/playwright/components/pagination/object.d.ts +37 -0
- package/lib/esm/playwright/components/pagination/object.js +118 -0
- package/lib/esm/playwright/components/pagination/object.js.map +1 -0
- package/lib/esm/playwright/components/search_bar/object.d.ts +12 -0
- package/lib/esm/playwright/components/search_bar/object.js +20 -0
- package/lib/esm/playwright/components/search_bar/object.js.map +1 -0
- package/lib/esm/playwright/components/side_nav/object.d.ts +34 -0
- package/lib/esm/playwright/components/side_nav/object.js +76 -0
- package/lib/esm/playwright/components/side_nav/object.js.map +1 -0
- package/lib/esm/playwright/components/table/object.d.ts +28 -0
- package/lib/esm/playwright/components/table/object.js +46 -0
- package/lib/esm/playwright/components/table/object.js.map +1 -0
- package/lib/esm/selectors.d.ts +42 -0
- package/lib/esm/selectors.js +12 -0
- package/lib/esm/selectors.js.map +1 -1
- package/package.json +1 -1
- package/src/components/basic_table/README.md +1 -0
- package/src/components/call_out/README.md +29 -0
- package/src/components/form/field_search/README.md +29 -0
- package/src/components/pagination/README.md +31 -0
- package/src/components/search_bar/README.md +18 -0
- package/src/components/side_nav/README.md +31 -0
- package/src/components/table/README.md +31 -0
package/lib/cjs/selectors.js
CHANGED
|
@@ -6,21 +6,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.selectors = void 0;
|
|
7
7
|
var _selectors = require("./components/accordion/selectors");
|
|
8
8
|
var _selectors2 = require("./components/basic_table/selectors");
|
|
9
|
-
var _selectors3 = require("./components/
|
|
10
|
-
var _selectors4 = require("./components/
|
|
11
|
-
var _selectors5 = require("./components/
|
|
12
|
-
var _selectors6 = require("./components/
|
|
13
|
-
var _selectors7 = require("./components/
|
|
14
|
-
var _selectors8 = require("./components/
|
|
15
|
-
var _selectors9 = require("./components/
|
|
16
|
-
var _selectors10 = require("./components/
|
|
17
|
-
var _selectors11 = require("./components/
|
|
18
|
-
var _selectors12 = require("./components/
|
|
19
|
-
var _selectors13 = require("./components/
|
|
20
|
-
var _selectors14 = require("./components/
|
|
21
|
-
var _selectors15 = require("./components/
|
|
22
|
-
var _selectors16 = require("./components/
|
|
23
|
-
var _selectors17 = require("./components/
|
|
9
|
+
var _selectors3 = require("./components/call_out/selectors");
|
|
10
|
+
var _selectors4 = require("./components/color_picker/selectors");
|
|
11
|
+
var _selectors5 = require("./components/combo_box/selectors");
|
|
12
|
+
var _selectors6 = require("./components/context_menu/selectors");
|
|
13
|
+
var _selectors7 = require("./components/datagrid/selectors");
|
|
14
|
+
var _selectors8 = require("./components/drag_and_drop/selectors");
|
|
15
|
+
var _selectors9 = require("./components/form/field_search/selectors");
|
|
16
|
+
var _selectors10 = require("./components/filter_button/selectors");
|
|
17
|
+
var _selectors11 = require("./components/flyout/selectors");
|
|
18
|
+
var _selectors12 = require("./components/modal/selectors");
|
|
19
|
+
var _selectors13 = require("./components/pagination/selectors");
|
|
20
|
+
var _selectors14 = require("./components/popover/selectors");
|
|
21
|
+
var _selectors15 = require("./components/form/range/selectors");
|
|
22
|
+
var _selectors16 = require("./components/search_bar/selectors");
|
|
23
|
+
var _selectors17 = require("./components/selectable/selectors");
|
|
24
|
+
var _selectors18 = require("./components/side_nav/selectors");
|
|
25
|
+
var _selectors19 = require("./components/form/super_select/selectors");
|
|
26
|
+
var _selectors20 = require("./components/table/selectors");
|
|
27
|
+
var _selectors21 = require("./components/toast/selectors");
|
|
28
|
+
var _selectors22 = require("./components/tool_tip/selectors");
|
|
29
|
+
var _selectors23 = require("./components/tree_view/selectors");
|
|
24
30
|
/*
|
|
25
31
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
26
32
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -38,19 +44,25 @@ var _selectors17 = require("./components/tree_view/selectors");
|
|
|
38
44
|
const selectors = exports.selectors = {
|
|
39
45
|
accordion: _selectors.EuiAccordionSelectors,
|
|
40
46
|
basicTable: _selectors2.EuiBasicTableSelectors,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
callOut: _selectors3.EuiCallOutSelectors,
|
|
48
|
+
colorPicker: _selectors4.EuiColorPickerSelectors,
|
|
49
|
+
comboBox: _selectors5.EuiComboBoxSelectors,
|
|
50
|
+
contextMenu: _selectors6.EuiContextMenuSelectors,
|
|
51
|
+
dataGrid: _selectors7.EuiDataGridSelectors,
|
|
52
|
+
draggable: _selectors8.EuiDraggableSelectors,
|
|
53
|
+
fieldSearch: _selectors9.EuiFieldSearchSelectors,
|
|
54
|
+
filterButton: _selectors10.EuiFilterButtonSelectors,
|
|
55
|
+
flyout: _selectors11.EuiFlyoutSelectors,
|
|
56
|
+
modal: _selectors12.EuiModalSelectors,
|
|
57
|
+
pagination: _selectors13.EuiPaginationSelectors,
|
|
58
|
+
popover: _selectors14.EuiPopoverSelectors,
|
|
59
|
+
range: _selectors15.EuiRangeSelectors,
|
|
60
|
+
searchBar: _selectors16.EuiSearchBarSelectors,
|
|
61
|
+
selectable: _selectors17.EuiSelectableSelectors,
|
|
62
|
+
sideNav: _selectors18.EuiSideNavSelectors,
|
|
63
|
+
superSelect: _selectors19.EuiSuperSelectSelectors,
|
|
64
|
+
table: _selectors20.EuiTableSelectors,
|
|
65
|
+
globalToastList: _selectors21.EuiGlobalToastListSelectors,
|
|
66
|
+
toolTip: _selectors22.EuiToolTipSelectors,
|
|
67
|
+
treeView: _selectors23.EuiTreeViewSelectors
|
|
56
68
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable selectors for
|
|
3
|
+
* {@link https://eui.elastic.co/docs/components/display/callout/|EuiCallOut}.
|
|
4
|
+
* `*_SELECTOR` values are CSS, `*_TEST_SUBJ` values are `data-test-subj` names EUI sets itself.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EuiCallOutSelectors: {
|
|
7
|
+
/** The panel root carrying the consumer's `data-test-subj`. */
|
|
8
|
+
ROOT_SELECTOR: string;
|
|
9
|
+
/** The title element, rendered only with a `title`. */
|
|
10
|
+
TITLE_SELECTOR: string;
|
|
11
|
+
/** The `text` block, rendered only with a `text`. */
|
|
12
|
+
TEXT_SELECTOR: string;
|
|
13
|
+
/** Prefix of the root class that carries the color, e.g. `euiCallOut--warning`. */
|
|
14
|
+
COLOR_CLASS_PREFIX: string;
|
|
15
|
+
/** The dismiss button, rendered only with `onDismiss`. */
|
|
16
|
+
DISMISS_BUTTON_TEST_SUBJ: string;
|
|
17
|
+
/**
|
|
18
|
+
* The dismiss button by its test subj, or by its cross icon when
|
|
19
|
+
* `dismissButtonProps` replaced the test subj.
|
|
20
|
+
*/
|
|
21
|
+
DISMISS_BUTTON_SELECTOR: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Stable selectors for
|
|
10
|
+
* {@link https://eui.elastic.co/docs/components/display/callout/|EuiCallOut}.
|
|
11
|
+
* `*_SELECTOR` values are CSS, `*_TEST_SUBJ` values are `data-test-subj` names EUI sets itself.
|
|
12
|
+
*/
|
|
13
|
+
export const EuiCallOutSelectors = {
|
|
14
|
+
/** The panel root carrying the consumer's `data-test-subj`. */
|
|
15
|
+
ROOT_SELECTOR: '.euiCallOut',
|
|
16
|
+
/** The title element, rendered only with a `title`. */
|
|
17
|
+
TITLE_SELECTOR: '.euiCallOutHeader__title',
|
|
18
|
+
/** The `text` block, rendered only with a `text`. */
|
|
19
|
+
TEXT_SELECTOR: '.euiCallOut__text',
|
|
20
|
+
/** Prefix of the root class that carries the color, e.g. `euiCallOut--warning`. */
|
|
21
|
+
COLOR_CLASS_PREFIX: 'euiCallOut--',
|
|
22
|
+
/** The dismiss button, rendered only with `onDismiss`. */
|
|
23
|
+
DISMISS_BUTTON_TEST_SUBJ: 'euiDismissCalloutButton',
|
|
24
|
+
/**
|
|
25
|
+
* The dismiss button by its test subj, or by its cross icon when
|
|
26
|
+
* `dismissButtonProps` replaced the test subj.
|
|
27
|
+
*/
|
|
28
|
+
DISMISS_BUTTON_SELECTOR: '[data-test-subj="euiDismissCalloutButton"], button:has([data-icon-type="cross"])',
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../src/components/call_out/selectors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,+DAA+D;IAC/D,aAAa,EAAE,aAAa;IAE5B,uDAAuD;IACvD,cAAc,EAAE,0BAA0B;IAE1C,qDAAqD;IACrD,aAAa,EAAE,mBAAmB;IAElC,mFAAmF;IACnF,kBAAkB,EAAE,cAAc;IAElC,0DAA0D;IAC1D,wBAAwB,EAAE,yBAAyB;IAEnD;;;OAGG;IACH,uBAAuB,EACrB,kFAAkF;CACrF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable selectors for
|
|
3
|
+
* {@link https://eui.elastic.co/docs/components/forms/search-and-filter/search/|EuiFieldSearch}.
|
|
4
|
+
* `*_SELECTOR` values are CSS, `*_TEST_SUBJ` values are `data-test-subj` names EUI sets itself.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EuiFieldSearchSelectors: {
|
|
7
|
+
/** The `<input type="search">` carrying the consumer's `data-test-subj`. */
|
|
8
|
+
ROOT_SELECTOR: string;
|
|
9
|
+
/** The clear button next to the input, rendered only with `isClearable` and a value. */
|
|
10
|
+
CLEAR_BUTTON_TEST_SUBJ: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Stable selectors for
|
|
10
|
+
* {@link https://eui.elastic.co/docs/components/forms/search-and-filter/search/|EuiFieldSearch}.
|
|
11
|
+
* `*_SELECTOR` values are CSS, `*_TEST_SUBJ` values are `data-test-subj` names EUI sets itself.
|
|
12
|
+
*/
|
|
13
|
+
export const EuiFieldSearchSelectors = {
|
|
14
|
+
/** The `<input type="search">` carrying the consumer's `data-test-subj`. */
|
|
15
|
+
ROOT_SELECTOR: '.euiFieldSearch',
|
|
16
|
+
/** The clear button next to the input, rendered only with `isClearable` and a value. */
|
|
17
|
+
CLEAR_BUTTON_TEST_SUBJ: 'clearSearchButton',
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../../src/components/form/field_search/selectors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,4EAA4E;IAC5E,aAAa,EAAE,iBAAiB;IAEhC,wFAAwF;IACxF,sBAAsB,EAAE,mBAAmB;CAC5C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable selectors for
|
|
3
|
+
* {@link https://eui.elastic.co/docs/components/navigation/pagination/|EuiPagination}.
|
|
4
|
+
* `*_SELECTOR` values are CSS, `*_TEST_SUBJ` values are `data-test-subj` names EUI sets itself.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EuiPaginationSelectors: {
|
|
7
|
+
/** The `<nav>` root carrying the consumer's `data-test-subj`. */
|
|
8
|
+
ROOT_SELECTOR: string;
|
|
9
|
+
/** A numbered page button. Not rendered in the compressed variant. */
|
|
10
|
+
PAGE_BUTTON_SELECTOR: string;
|
|
11
|
+
/** The numbered page button of the active page. */
|
|
12
|
+
ACTIVE_PAGE_BUTTON_SELECTOR: string;
|
|
13
|
+
/** The "page of total" text of the compressed variant, with one `<span>` per number. */
|
|
14
|
+
COMPRESSED_TEXT_SELECTOR: string;
|
|
15
|
+
/** Prefix of a page button's test subj, followed by the 0-based page index. */
|
|
16
|
+
PAGE_BUTTON_TEST_SUBJ_PREFIX: string;
|
|
17
|
+
FIRST_BUTTON_TEST_SUBJ: string;
|
|
18
|
+
PREVIOUS_BUTTON_TEST_SUBJ: string;
|
|
19
|
+
NEXT_BUTTON_TEST_SUBJ: string;
|
|
20
|
+
LAST_BUTTON_TEST_SUBJ: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Stable selectors for
|
|
10
|
+
* {@link https://eui.elastic.co/docs/components/navigation/pagination/|EuiPagination}.
|
|
11
|
+
* `*_SELECTOR` values are CSS, `*_TEST_SUBJ` values are `data-test-subj` names EUI sets itself.
|
|
12
|
+
*/
|
|
13
|
+
export const EuiPaginationSelectors = {
|
|
14
|
+
/** The `<nav>` root carrying the consumer's `data-test-subj`. */
|
|
15
|
+
ROOT_SELECTOR: '.euiPagination',
|
|
16
|
+
/** A numbered page button. Not rendered in the compressed variant. */
|
|
17
|
+
PAGE_BUTTON_SELECTOR: '.euiPaginationButton',
|
|
18
|
+
/** The numbered page button of the active page. */
|
|
19
|
+
ACTIVE_PAGE_BUTTON_SELECTOR: '.euiPaginationButton[aria-current="page"]',
|
|
20
|
+
/** The "page of total" text of the compressed variant, with one `<span>` per number. */
|
|
21
|
+
COMPRESSED_TEXT_SELECTOR: '.euiPagination__compressedText',
|
|
22
|
+
/** Prefix of a page button's test subj, followed by the 0-based page index. */
|
|
23
|
+
PAGE_BUTTON_TEST_SUBJ_PREFIX: 'pagination-button-',
|
|
24
|
+
FIRST_BUTTON_TEST_SUBJ: 'pagination-button-first',
|
|
25
|
+
PREVIOUS_BUTTON_TEST_SUBJ: 'pagination-button-previous',
|
|
26
|
+
NEXT_BUTTON_TEST_SUBJ: 'pagination-button-next',
|
|
27
|
+
LAST_BUTTON_TEST_SUBJ: 'pagination-button-last',
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../src/components/pagination/selectors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,iEAAiE;IACjE,aAAa,EAAE,gBAAgB;IAE/B,sEAAsE;IACtE,oBAAoB,EAAE,sBAAsB;IAE5C,mDAAmD;IACnD,2BAA2B,EAAE,2CAA2C;IAExE,wFAAwF;IACxF,wBAAwB,EAAE,gCAAgC;IAE1D,+EAA+E;IAC/E,4BAA4B,EAAE,oBAAoB;IAElD,sBAAsB,EAAE,yBAAyB;IACjD,yBAAyB,EAAE,4BAA4B;IACvD,qBAAqB,EAAE,wBAAwB;IAC/C,qBAAqB,EAAE,wBAAwB;CAChD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable selectors for
|
|
3
|
+
* {@link https://eui.elastic.co/docs/components/forms/search-and-filter/search-bar/|EuiSearchBar}.
|
|
4
|
+
* `*_SELECTOR` values are CSS.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EuiSearchBarSelectors: {
|
|
7
|
+
/** The wrapper of the search box. */
|
|
8
|
+
SEARCH_HOLDER_SELECTOR: string;
|
|
9
|
+
/** The wrapper of the filter buttons, rendered only with `filters`. */
|
|
10
|
+
FILTERS_HOLDER_SELECTOR: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Stable selectors for
|
|
10
|
+
* {@link https://eui.elastic.co/docs/components/forms/search-and-filter/search-bar/|EuiSearchBar}.
|
|
11
|
+
* `*_SELECTOR` values are CSS.
|
|
12
|
+
*/
|
|
13
|
+
export const EuiSearchBarSelectors = {
|
|
14
|
+
/** The wrapper of the search box. */
|
|
15
|
+
SEARCH_HOLDER_SELECTOR: '.euiSearchBar__searchHolder',
|
|
16
|
+
/** The wrapper of the filter buttons, rendered only with `filters`. */
|
|
17
|
+
FILTERS_HOLDER_SELECTOR: '.euiSearchBar__filtersHolder',
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../src/components/search_bar/selectors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,qCAAqC;IACrC,sBAAsB,EAAE,6BAA6B;IAErD,uEAAuE;IACvE,uBAAuB,EAAE,8BAA8B;CACxD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable selectors for
|
|
3
|
+
* {@link https://eui.elastic.co/docs/components/navigation/side-nav/|EuiSideNav}.
|
|
4
|
+
* `*_SELECTOR` values are CSS.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EuiSideNavSelectors: {
|
|
7
|
+
/** The `<nav>` root carrying the consumer's `data-test-subj`. */
|
|
8
|
+
ROOT_SELECTOR: string;
|
|
9
|
+
/** An item wrapper at any depth. Closed branches are not rendered at all. */
|
|
10
|
+
ITEM_SELECTOR: string;
|
|
11
|
+
/** The clickable part of an item, an `<a>`, `<button>` or `<div>` depending on its props. */
|
|
12
|
+
ITEM_BUTTON_SELECTOR: string;
|
|
13
|
+
/** The item button of the selected item. */
|
|
14
|
+
SELECTED_ITEM_BUTTON_SELECTOR: string;
|
|
15
|
+
/** The item button of an expanded accordion item. */
|
|
16
|
+
OPEN_ITEM_BUTTON_SELECTOR: string;
|
|
17
|
+
/** The text label inside an item button. */
|
|
18
|
+
ITEM_LABEL_SELECTOR: string;
|
|
19
|
+
/** The container of an item's child items, rendered only while open. */
|
|
20
|
+
CHILD_ITEMS_SELECTOR: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Stable selectors for
|
|
10
|
+
* {@link https://eui.elastic.co/docs/components/navigation/side-nav/|EuiSideNav}.
|
|
11
|
+
* `*_SELECTOR` values are CSS.
|
|
12
|
+
*/
|
|
13
|
+
export const EuiSideNavSelectors = {
|
|
14
|
+
/** The `<nav>` root carrying the consumer's `data-test-subj`. */
|
|
15
|
+
ROOT_SELECTOR: '.euiSideNav',
|
|
16
|
+
/** An item wrapper at any depth. Closed branches are not rendered at all. */
|
|
17
|
+
ITEM_SELECTOR: '.euiSideNavItem',
|
|
18
|
+
/** The clickable part of an item, an `<a>`, `<button>` or `<div>` depending on its props. */
|
|
19
|
+
ITEM_BUTTON_SELECTOR: '.euiSideNavItemButton',
|
|
20
|
+
/** The item button of the selected item. */
|
|
21
|
+
SELECTED_ITEM_BUTTON_SELECTOR: '.euiSideNavItemButton-isSelected',
|
|
22
|
+
/** The item button of an expanded accordion item. */
|
|
23
|
+
OPEN_ITEM_BUTTON_SELECTOR: '.euiSideNavItemButton-isOpen',
|
|
24
|
+
/** The text label inside an item button. */
|
|
25
|
+
ITEM_LABEL_SELECTOR: '.euiSideNavItemButton__label',
|
|
26
|
+
/** The container of an item's child items, rendered only while open. */
|
|
27
|
+
CHILD_ITEMS_SELECTOR: '.euiSideNavItem__items',
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../src/components/side_nav/selectors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,iEAAiE;IACjE,aAAa,EAAE,aAAa;IAE5B,6EAA6E;IAC7E,aAAa,EAAE,iBAAiB;IAEhC,6FAA6F;IAC7F,oBAAoB,EAAE,uBAAuB;IAE7C,4CAA4C;IAC5C,6BAA6B,EAAE,kCAAkC;IAEjE,qDAAqD;IACrD,yBAAyB,EAAE,8BAA8B;IAEzD,4CAA4C;IAC5C,mBAAmB,EAAE,8BAA8B;IAEnD,wEAAwE;IACxE,oBAAoB,EAAE,wBAAwB;CAC/C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable selectors for
|
|
3
|
+
* {@link https://eui.elastic.co/docs/components/tabular-content/tables/|EuiTable}.
|
|
4
|
+
* `*_SELECTOR` values are CSS.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EuiTableSelectors: {
|
|
7
|
+
/** The `<table>` element carrying the consumer's `data-test-subj`. */
|
|
8
|
+
ROOT_SELECTOR: string;
|
|
9
|
+
/** A body row. Also matches EUI's own empty/error message row, callers must exclude those. */
|
|
10
|
+
ROW_SELECTOR: string;
|
|
11
|
+
/** A body cell. */
|
|
12
|
+
ROW_CELL_SELECTOR: string;
|
|
13
|
+
/** A header cell, including the selection checkbox cell which has its own class. */
|
|
14
|
+
HEADER_CELL_SELECTOR: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Stable selectors for
|
|
10
|
+
* {@link https://eui.elastic.co/docs/components/tabular-content/tables/|EuiTable}.
|
|
11
|
+
* `*_SELECTOR` values are CSS.
|
|
12
|
+
*/
|
|
13
|
+
export const EuiTableSelectors = {
|
|
14
|
+
/** The `<table>` element carrying the consumer's `data-test-subj`. */
|
|
15
|
+
ROOT_SELECTOR: '.euiTable',
|
|
16
|
+
/** A body row. Also matches EUI's own empty/error message row, callers must exclude those. */
|
|
17
|
+
ROW_SELECTOR: '.euiTableRow',
|
|
18
|
+
/** A body cell. */
|
|
19
|
+
ROW_CELL_SELECTOR: '.euiTableRowCell',
|
|
20
|
+
/** A header cell, including the selection checkbox cell which has its own class. */
|
|
21
|
+
HEADER_CELL_SELECTOR: 'thead > tr > :is(th, td)',
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../src/components/table/selectors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,sEAAsE;IACtE,aAAa,EAAE,WAAW;IAE1B,8FAA8F;IAC9F,YAAY,EAAE,cAAc;IAE5B,mBAAmB;IACnB,iBAAiB,EAAE,kBAAkB;IAErC,oFAAoF;IACpF,oBAAoB,EAAE,0BAA0B;CACjD,CAAC"}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -4,15 +4,21 @@ export { EuiDataGridObject } from './playwright/components/datagrid/object';
|
|
|
4
4
|
export { EuiSuperSelectObject } from './playwright/components/form/super_select/object';
|
|
5
5
|
export { EuiGlobalToastListObject } from './playwright/components/toast/object';
|
|
6
6
|
export { EuiSelectableObject } from './playwright/components/selectable/object';
|
|
7
|
+
export { EuiSideNavObject } from './playwright/components/side_nav/object';
|
|
7
8
|
export { EuiDraggableObject } from './playwright/components/drag_and_drop/object';
|
|
8
9
|
export { EuiFilterButtonObject } from './playwright/components/filter_button/object';
|
|
10
|
+
export { EuiFieldSearchObject } from './playwright/components/form/field_search/object';
|
|
11
|
+
export { EuiSearchBarObject } from './playwright/components/search_bar/object';
|
|
9
12
|
export { EuiRangeObject } from './playwright/components/form/range/object';
|
|
10
13
|
export { EuiPopoverObject } from './playwright/components/popover/object';
|
|
11
14
|
export { EuiFlyoutObject } from './playwright/components/flyout/object';
|
|
12
15
|
export { EuiAccordionObject } from './playwright/components/accordion/object';
|
|
13
16
|
export { EuiContextMenuObject } from './playwright/components/context_menu/object';
|
|
14
17
|
export { EuiModalObject } from './playwright/components/modal/object';
|
|
18
|
+
export { EuiTableObject } from './playwright/components/table/object';
|
|
19
|
+
export { EuiPaginationObject } from './playwright/components/pagination/object';
|
|
15
20
|
export { EuiBasicTableObject } from './playwright/components/basic_table/object';
|
|
21
|
+
export { EuiCallOutObject } from './playwright/components/call_out/object';
|
|
16
22
|
export { EuiColorPickerObject } from './playwright/components/color_picker/object';
|
|
17
23
|
export { EuiTreeViewObject } from './playwright/components/tree_view/object';
|
|
18
24
|
export { EuiToolTipObject } from './playwright/components/tool_tip/object';
|
package/lib/esm/index.js
CHANGED
|
@@ -11,15 +11,21 @@ export { EuiDataGridObject } from './playwright/components/datagrid/object';
|
|
|
11
11
|
export { EuiSuperSelectObject } from './playwright/components/form/super_select/object';
|
|
12
12
|
export { EuiGlobalToastListObject } from './playwright/components/toast/object';
|
|
13
13
|
export { EuiSelectableObject } from './playwright/components/selectable/object';
|
|
14
|
+
export { EuiSideNavObject } from './playwright/components/side_nav/object';
|
|
14
15
|
export { EuiDraggableObject } from './playwright/components/drag_and_drop/object';
|
|
15
16
|
export { EuiFilterButtonObject } from './playwright/components/filter_button/object';
|
|
17
|
+
export { EuiFieldSearchObject } from './playwright/components/form/field_search/object';
|
|
18
|
+
export { EuiSearchBarObject } from './playwright/components/search_bar/object';
|
|
16
19
|
export { EuiRangeObject } from './playwright/components/form/range/object';
|
|
17
20
|
export { EuiPopoverObject } from './playwright/components/popover/object';
|
|
18
21
|
export { EuiFlyoutObject } from './playwright/components/flyout/object';
|
|
19
22
|
export { EuiAccordionObject } from './playwright/components/accordion/object';
|
|
20
23
|
export { EuiContextMenuObject } from './playwright/components/context_menu/object';
|
|
21
24
|
export { EuiModalObject } from './playwright/components/modal/object';
|
|
25
|
+
export { EuiTableObject } from './playwright/components/table/object';
|
|
26
|
+
export { EuiPaginationObject } from './playwright/components/pagination/object';
|
|
22
27
|
export { EuiBasicTableObject } from './playwright/components/basic_table/object';
|
|
28
|
+
export { EuiCallOutObject } from './playwright/components/call_out/object';
|
|
23
29
|
export { EuiColorPickerObject } from './playwright/components/color_picker/object';
|
|
24
30
|
export { EuiTreeViewObject } from './playwright/components/tree_view/object';
|
|
25
31
|
export { EuiToolTipObject } from './playwright/components/tool_tip/object';
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAoB,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAoB,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Locator } from '@playwright/test';
|
|
2
|
-
import {
|
|
2
|
+
import type { ObjectScope } from '../../base_object';
|
|
3
|
+
import { EuiTableObject } from '../table/object';
|
|
3
4
|
/**
|
|
4
5
|
* Playwright Component Object for {@link
|
|
5
6
|
* https://eui.elastic.co/docs/components/tabular-content/tables/ EuiBasicTable}
|
|
@@ -8,20 +9,14 @@ import { BaseObject, type ObjectScope } from '../../base_object';
|
|
|
8
9
|
*
|
|
9
10
|
* `testSubj` must match the `data-test-subj` set by the consumer on the
|
|
10
11
|
* `<EuiBasicTable>`/`<EuiInMemoryTable>` (EUI spreads it onto the `.euiBasicTable`
|
|
11
|
-
* root).
|
|
12
|
+
* root). Extends `EuiTableObject`, so `rows`, `headerCells`, `column` and `cell`
|
|
13
|
+
* are available too. See the package README for what's deliberately excluded.
|
|
12
14
|
*/
|
|
13
|
-
export declare class EuiBasicTableObject extends
|
|
15
|
+
export declare class EuiBasicTableObject extends EuiTableObject {
|
|
14
16
|
constructor(scope: ObjectScope, testSubj: string);
|
|
15
17
|
/**
|
|
16
|
-
* The
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* Excludes EUI's own "no items found" (and error-message) row: when the table
|
|
20
|
-
* is empty, EUI still renders a single `.euiTableRow` whose one cell spans
|
|
21
|
-
* every column (`colSpan` on `EuiTableRowCell`, the `td[colspan]` HTML
|
|
22
|
-
* attribute). Real data rows don't set `colspan` on their cells, so filtering
|
|
23
|
-
* it out is what keeps `toHaveCount(0)` correct on an empty table instead of
|
|
24
|
-
* reading `1`.
|
|
18
|
+
* The data rows. Excludes EUI's own "no items found" row, whose single cell
|
|
19
|
+
* spans every column with `colspan`. Basic table data rows never set it.
|
|
25
20
|
*/
|
|
26
21
|
get rows(): Locator;
|
|
27
22
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { EuiTableObject } from '../table/object';
|
|
9
9
|
import { EuiBasicTableSelectors } from '../../../components/basic_table/selectors';
|
|
10
10
|
/**
|
|
11
11
|
* Playwright Component Object for {@link
|
|
@@ -15,27 +15,19 @@ import { EuiBasicTableSelectors } from '../../../components/basic_table/selector
|
|
|
15
15
|
*
|
|
16
16
|
* `testSubj` must match the `data-test-subj` set by the consumer on the
|
|
17
17
|
* `<EuiBasicTable>`/`<EuiInMemoryTable>` (EUI spreads it onto the `.euiBasicTable`
|
|
18
|
-
* root).
|
|
18
|
+
* root). Extends `EuiTableObject`, so `rows`, `headerCells`, `column` and `cell`
|
|
19
|
+
* are available too. See the package README for what's deliberately excluded.
|
|
19
20
|
*/
|
|
20
|
-
export class EuiBasicTableObject extends
|
|
21
|
+
export class EuiBasicTableObject extends EuiTableObject {
|
|
21
22
|
constructor(scope, testSubj) {
|
|
22
23
|
super(scope, testSubj, EuiBasicTableSelectors.ROOT_SELECTOR);
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
|
-
* The
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* Excludes EUI's own "no items found" (and error-message) row: when the table
|
|
29
|
-
* is empty, EUI still renders a single `.euiTableRow` whose one cell spans
|
|
30
|
-
* every column (`colSpan` on `EuiTableRowCell`, the `td[colspan]` HTML
|
|
31
|
-
* attribute). Real data rows don't set `colspan` on their cells, so filtering
|
|
32
|
-
* it out is what keeps `toHaveCount(0)` correct on an empty table instead of
|
|
33
|
-
* reading `1`.
|
|
26
|
+
* The data rows. Excludes EUI's own "no items found" row, whose single cell
|
|
27
|
+
* spans every column with `colspan`. Basic table data rows never set it.
|
|
34
28
|
*/
|
|
35
29
|
get rows() {
|
|
36
|
-
return this.root
|
|
37
|
-
.locator(EuiBasicTableSelectors.ROW_SELECTOR)
|
|
38
|
-
.filter({ hasNot: this.root.page().locator('td[colspan]') });
|
|
30
|
+
return super.rows.filter({ hasNot: this.root.page().locator('td[colspan]') });
|
|
39
31
|
}
|
|
40
32
|
/**
|
|
41
33
|
* The cells of the given field-data column, one per row, as a `Locator` for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.js","sourceRoot":"","sources":["../../../../../src/playwright/components/basic_table/object.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"object.js","sourceRoot":"","sources":["../../../../../src/playwright/components/basic_table/object.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF;;;;;;;;;;GAUG;AACH,MAAM,OAAO,mBAAoB,SAAQ,cAAc;IACrD,YAAY,KAAkB,EAAE,QAAgB;QAC9C,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,sBAAsB,CAAC,aAAa,CAAC,CAAC;IAC/D,CAAC;IAED;;;OAGG;IACH,IAAoB,IAAI;QACtB,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,KAAK,CAAC,KAAa;QACvB,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;QAC7D,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,CACxC,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE;YACrD,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,IAAI,MAAM,GAAG,OAAO,QAAQ,CAAC,CAAC;YACvD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC,CAAC;YAC3E,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CACjC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC,CAChB,CAAC;YACtC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,IAAI,KAAK,CACb,oDAAoD,aAAa,iCAAiC,CACnG,CAAC;YACJ,CAAC;YACD,OAAO,MAAM,CAAC,SAAS,CAAC;QAC1B,CAAC,EACD,EAAE,MAAM,EAAE,sBAAsB,CAAC,2BAA2B,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CACxF,CAAC;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,yBAAyB,SAAS,GAAG,CAAC,GAAG,CAAC,CAAC;IACtE,CAAC;CACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Locator } from '@playwright/test';
|
|
2
|
+
import { BaseObject, type ObjectScope } from '../../base_object';
|
|
3
|
+
/**
|
|
4
|
+
* Playwright Component Object for {@link
|
|
5
|
+
* https://eui.elastic.co/docs/components/display/callout/ EuiCallOut}.
|
|
6
|
+
*
|
|
7
|
+
* `testSubj` must be set on `EuiCallOut` itself. EUI puts it on the panel
|
|
8
|
+
* root and derives `<subj>__message`, `<subj>__content` and
|
|
9
|
+
* `<subj>__actions` for the inner blocks, which the token based root lookup
|
|
10
|
+
* does not confuse with the root.
|
|
11
|
+
*/
|
|
12
|
+
export declare class EuiCallOutObject extends BaseObject {
|
|
13
|
+
constructor(scope: ObjectScope, testSubj: string);
|
|
14
|
+
/** The call out element itself, see {@link panel}. */
|
|
15
|
+
get locator(): Locator;
|
|
16
|
+
/** The title text, or an empty string when the call out has no title. */
|
|
17
|
+
getTitle(): Promise<string>;
|
|
18
|
+
/** The `text` block, or an empty string when the call out has none. */
|
|
19
|
+
getText(): Promise<string>;
|
|
20
|
+
/** The color variant: `primary`, `success`, `warning` or `danger`. */
|
|
21
|
+
getColor(): Promise<string>;
|
|
22
|
+
/** The dismiss button. Resolves to zero elements without `onDismiss`. */
|
|
23
|
+
get dismissButton(): Locator;
|
|
24
|
+
/**
|
|
25
|
+
* The root narrowed to the call out element. A multi token subj such as
|
|
26
|
+
* `notice shared` also matches the derived `notice shared__message` block
|
|
27
|
+
* by token, so the class keeps lookups on the panel itself.
|
|
28
|
+
*/
|
|
29
|
+
private get panel();
|
|
30
|
+
/**
|
|
31
|
+
* Click the dismiss button. What happens next is up to the consumer's
|
|
32
|
+
* `onDismiss`, usually unmounting the call out, so nothing is asserted.
|
|
33
|
+
*/
|
|
34
|
+
dismiss(): Promise<void>;
|
|
35
|
+
private textOf;
|
|
36
|
+
}
|