@@ -87,43 +87,42 @@ describe("Add new element", () => {
87
87
const listElement = createNewElement ( "list" ) as ListDocumentElement ;
88
88
listElement . config . element . __value__ = createNewElement ( "container" ) ;
89
89
const containerElement = createNewElement ( "container" ) ;
90
- // There's a row in the container and a column in the row.
91
- // eslint-disable-next-line testing-library/no-node-access
90
+ // eslint-disable-next-line testing-library/no-node-access -- There's a row in the container and a column in the row.
92
91
containerElement . children [ 0 ] . children [ 0 ] . children [ 0 ] = listElement ;
93
92
94
93
const { container } = renderDocumentPreview ( containerElement ) ;
95
94
96
95
// Select a dropdown inside a Col in List and open it
97
96
await userEvent . click (
98
- // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
97
+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access -- see test's TODO comment
99
98
container . querySelector ( ".col .col .addElement button" ) ,
100
99
) ;
101
100
expect (
102
- // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
101
+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access -- see test's TODO comment
103
102
container . querySelector ( ".col .col .addElement button" ) ,
104
103
) . toHaveAttribute ( "aria-expanded" , "true" ) ;
105
104
106
105
// Hover over the Col in the list
107
- // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
106
+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access -- see test's TODO comment
108
107
fireEvent . mouseOver ( container . querySelector ( ".col .col" ) ) ;
109
108
expect (
110
- // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
109
+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access -- see test's TODO comment
111
110
container . querySelector ( ".col .col .addElement button" ) ,
112
111
) . toHaveAttribute ( "aria-expanded" , "true" ) ;
113
112
114
113
// Hover over the Container of the List, .root.root - is the Document root element
115
- // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
114
+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access -- see test's TODO comment
116
115
fireEvent . mouseOver ( container . querySelector ( ".root.root > .container" ) ) ;
117
116
expect (
118
- // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
117
+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access -- see test's TODO comment
119
118
container . querySelector ( ".col .col .addElement button" ) ,
120
119
) . toHaveAttribute ( "aria-expanded" , "true" ) ;
121
120
} ) ;
122
121
123
122
test ( "can add an element to a container" , async ( ) => {
124
123
const { container } = renderDocumentPreview ( createNewElement ( "container" ) ) ;
125
124
126
- // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
125
+ // eslint-disable-next-line testing-library/no-container, testing-library/no-node-access -- see test's TODO comment
127
126
await userEvent . click ( container . querySelector ( ".col .addElement button" ) ) ;
128
127
await userEvent . click ( screen . getByText ( "Header" , { selector : "a" } ) ) ;
129
128
0 commit comments