@redhat-developer/page-objects 1.1.0 → 1.1.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 (125) hide show
  1. package/out/components/AbstractElement.d.ts +18 -2
  2. package/out/components/AbstractElement.js +18 -2
  3. package/out/components/ElementWithContextMenu.d.ts +18 -2
  4. package/out/components/ElementWithContextMenu.js +16 -0
  5. package/out/components/WebviewMixin.d.ts +18 -2
  6. package/out/components/WebviewMixin.js +16 -0
  7. package/out/components/activityBar/ActionsControl.d.ts +19 -3
  8. package/out/components/activityBar/ActionsControl.js +16 -0
  9. package/out/components/activityBar/ActivityBar.d.ts +18 -2
  10. package/out/components/activityBar/ActivityBar.js +16 -0
  11. package/out/components/activityBar/ViewControl.d.ts +19 -3
  12. package/out/components/activityBar/ViewControl.js +16 -0
  13. package/out/components/bottomBar/AbstractViews.d.ts +20 -4
  14. package/out/components/bottomBar/AbstractViews.js +24 -7
  15. package/out/components/bottomBar/BottomBarPanel.d.ts +18 -2
  16. package/out/components/bottomBar/BottomBarPanel.js +18 -3
  17. package/out/components/bottomBar/ProblemsView.d.ts +19 -3
  18. package/out/components/bottomBar/ProblemsView.js +23 -5
  19. package/out/components/bottomBar/Views.d.ts +19 -3
  20. package/out/components/bottomBar/Views.js +17 -1
  21. package/out/components/bottomBar/WebviewView.d.ts +18 -2
  22. package/out/components/bottomBar/WebviewView.js +16 -0
  23. package/out/components/dialog/ModalDialog.d.ts +18 -2
  24. package/out/components/dialog/ModalDialog.js +17 -1
  25. package/out/components/editor/Breakpoint.d.ts +16 -0
  26. package/out/components/editor/Breakpoint.js +16 -0
  27. package/out/components/editor/ContentAssist.d.ts +17 -1
  28. package/out/components/editor/ContentAssist.js +22 -5
  29. package/out/components/editor/CustomEditor.d.ts +17 -1
  30. package/out/components/editor/CustomEditor.js +16 -0
  31. package/out/components/editor/DiffEditor.d.ts +16 -0
  32. package/out/components/editor/DiffEditor.js +16 -0
  33. package/out/components/editor/Editor.d.ts +18 -2
  34. package/out/components/editor/Editor.js +17 -1
  35. package/out/components/editor/EditorAction.d.ts +19 -3
  36. package/out/components/editor/EditorAction.js +16 -0
  37. package/out/components/editor/EditorView.d.ts +21 -5
  38. package/out/components/editor/EditorView.js +28 -7
  39. package/out/components/editor/SettingsEditor.d.ts +27 -11
  40. package/out/components/editor/SettingsEditor.js +36 -19
  41. package/out/components/editor/TextEditor.d.ts +22 -6
  42. package/out/components/editor/TextEditor.js +31 -13
  43. package/out/components/editor/WebView.d.ts +18 -2
  44. package/out/components/editor/WebView.js +18 -2
  45. package/out/components/menu/ContextMenu.d.ts +18 -2
  46. package/out/components/menu/ContextMenu.js +18 -2
  47. package/out/components/menu/MacTitleBar.d.ts +16 -0
  48. package/out/components/menu/MacTitleBar.js +17 -5
  49. package/out/components/menu/Menu.d.ts +18 -2
  50. package/out/components/menu/Menu.js +18 -2
  51. package/out/components/menu/MenuItem.d.ts +18 -2
  52. package/out/components/menu/MenuItem.js +17 -1
  53. package/out/components/menu/TitleBar.d.ts +19 -3
  54. package/out/components/menu/TitleBar.js +18 -2
  55. package/out/components/menu/WindowControls.d.ts +18 -2
  56. package/out/components/menu/WindowControls.js +16 -0
  57. package/out/components/sidebar/SideBarView.d.ts +18 -2
  58. package/out/components/sidebar/SideBarView.js +16 -0
  59. package/out/components/sidebar/ViewContent.d.ts +20 -4
  60. package/out/components/sidebar/ViewContent.js +17 -2
  61. package/out/components/sidebar/ViewItem.d.ts +19 -3
  62. package/out/components/sidebar/ViewItem.js +23 -7
  63. package/out/components/sidebar/ViewSection.d.ts +19 -3
  64. package/out/components/sidebar/ViewSection.js +23 -7
  65. package/out/components/sidebar/ViewTitlePart.d.ts +19 -3
  66. package/out/components/sidebar/ViewTitlePart.js +16 -0
  67. package/out/components/sidebar/WelcomeContent.d.ts +19 -3
  68. package/out/components/sidebar/WelcomeContent.js +17 -1
  69. package/out/components/sidebar/debug/DebugView.d.ts +19 -3
  70. package/out/components/sidebar/debug/DebugView.js +16 -0
  71. package/out/components/sidebar/extensions/ExtensionsViewItem.d.ts +20 -4
  72. package/out/components/sidebar/extensions/ExtensionsViewItem.js +16 -0
  73. package/out/components/sidebar/extensions/ExtensionsViewSection.d.ts +18 -2
  74. package/out/components/sidebar/extensions/ExtensionsViewSection.js +19 -3
  75. package/out/components/sidebar/scm/NewScmView.d.ts +18 -2
  76. package/out/components/sidebar/scm/NewScmView.js +30 -14
  77. package/out/components/sidebar/scm/ScmView.d.ts +21 -5
  78. package/out/components/sidebar/scm/ScmView.js +24 -8
  79. package/out/components/sidebar/tree/TreeSection.d.ts +19 -3
  80. package/out/components/sidebar/tree/TreeSection.js +20 -4
  81. package/out/components/sidebar/tree/custom/CustomTreeItem.d.ts +19 -3
  82. package/out/components/sidebar/tree/custom/CustomTreeItem.js +16 -0
  83. package/out/components/sidebar/tree/custom/CustomTreeSection.d.ts +21 -5
  84. package/out/components/sidebar/tree/custom/CustomTreeSection.js +18 -2
  85. package/out/components/sidebar/tree/debug/BreakpointSectionItem.d.ts +20 -4
  86. package/out/components/sidebar/tree/debug/BreakpointSectionItem.js +17 -1
  87. package/out/components/sidebar/tree/debug/DebugBreakpointSection.d.ts +20 -4
  88. package/out/components/sidebar/tree/debug/DebugBreakpointSection.js +16 -0
  89. package/out/components/sidebar/tree/debug/DebugVariablesSection.d.ts +20 -4
  90. package/out/components/sidebar/tree/debug/DebugVariablesSection.js +16 -0
  91. package/out/components/sidebar/tree/debug/SectionBreakpoint.d.ts +17 -1
  92. package/out/components/sidebar/tree/debug/SectionBreakpoint.js +16 -0
  93. package/out/components/sidebar/tree/debug/VariableSectionItem.d.ts +20 -3
  94. package/out/components/sidebar/tree/debug/VariableSectionItem.js +20 -0
  95. package/out/components/sidebar/tree/default/DefaultTreeItem.d.ts +19 -3
  96. package/out/components/sidebar/tree/default/DefaultTreeItem.js +16 -0
  97. package/out/components/sidebar/tree/default/DefaultTreeSection.d.ts +18 -2
  98. package/out/components/sidebar/tree/default/DefaultTreeSection.js +17 -1
  99. package/out/components/statusBar/StatusBar.d.ts +19 -3
  100. package/out/components/statusBar/StatusBar.js +17 -1
  101. package/out/components/workbench/DebugToolbar.d.ts +17 -1
  102. package/out/components/workbench/DebugToolbar.js +16 -0
  103. package/out/components/workbench/Notification.d.ts +19 -3
  104. package/out/components/workbench/Notification.js +17 -2
  105. package/out/components/workbench/NotificationsCenter.d.ts +18 -2
  106. package/out/components/workbench/NotificationsCenter.js +17 -1
  107. package/out/components/workbench/Workbench.d.ts +28 -12
  108. package/out/components/workbench/Workbench.js +17 -1
  109. package/out/components/workbench/input/Input.d.ts +17 -1
  110. package/out/components/workbench/input/Input.js +29 -20
  111. package/out/components/workbench/input/InputBox.d.ts +17 -1
  112. package/out/components/workbench/input/InputBox.js +20 -5
  113. package/out/components/workbench/input/QuickOpenBox.d.ts +17 -1
  114. package/out/components/workbench/input/QuickOpenBox.js +18 -3
  115. package/out/conditions/WaitForAttribute.d.ts +17 -1
  116. package/out/conditions/WaitForAttribute.js +16 -0
  117. package/out/errors/NullAttributeError.d.ts +16 -0
  118. package/out/errors/NullAttributeError.js +16 -0
  119. package/out/index.d.ts +16 -0
  120. package/out/index.js +16 -0
  121. package/out/locators/loader.d.ts +16 -0
  122. package/out/locators/loader.js +24 -8
  123. package/out/locators/locators.d.ts +24 -8
  124. package/out/locators/locators.js +17 -1
  125. package/package.json +2 -2
@@ -1,4 +1,20 @@
1
1
  "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License", destination); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * https://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.DebugVariableSection = void 0;
4
20
  const CustomTreeSection_1 = require("../custom/CustomTreeSection");
@@ -1,3 +1,19 @@
1
- import { ElementWithContexMenu } from "../../../ElementWithContextMenu";
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License", destination); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { ElementWithContexMenu } from '../../../ElementWithContextMenu';
2
18
  export declare class SectionBreakpoint extends ElementWithContexMenu {
3
19
  }
@@ -1,4 +1,20 @@
1
1
  "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License", destination); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * https://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.SectionBreakpoint = void 0;
4
20
  const ElementWithContextMenu_1 = require("../../../ElementWithContextMenu");
@@ -1,6 +1,22 @@
1
- import { WebElement } from "selenium-webdriver";
2
- import { TreeSection } from "../TreeSection";
3
- import { CustomTreeItem } from "../custom/CustomTreeItem";
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License", destination); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { WebElement } from 'selenium-webdriver';
18
+ import { TreeSection } from '../TreeSection';
19
+ import { CustomTreeItem } from '../custom/CustomTreeItem';
4
20
  export declare class VariableSectionItem extends CustomTreeItem {
5
21
  constructor(element: WebElement, viewPart: TreeSection);
6
22
  /**
@@ -22,6 +38,7 @@ export declare class VariableSectionItem extends CustomTreeItem {
22
38
  /**
23
39
  * Get variable value tooltip.
24
40
  * @returns a promise resolving to variable value tooltip string
41
+ * @deprecated For VS Code 1.89+ this method won't be working any more
25
42
  */
26
43
  getVariableValueTooltip(): Promise<string>;
27
44
  getLabel(): Promise<string>;
@@ -1,4 +1,20 @@
1
1
  "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License", destination); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * https://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.VariableSectionItem = void 0;
4
20
  const selenium_webdriver_1 = require("selenium-webdriver");
@@ -38,8 +54,12 @@ class VariableSectionItem extends CustomTreeItem_1.CustomTreeItem {
38
54
  /**
39
55
  * Get variable value tooltip.
40
56
  * @returns a promise resolving to variable value tooltip string
57
+ * @deprecated For VS Code 1.89+ this method won't be working any more
41
58
  */
42
59
  async getVariableValueTooltip() {
60
+ if (VariableSectionItem.versionInfo.version >= '1.89.0') {
61
+ throw Error(`DEPRECATED METHOD! For VS Code 1.89+ this method won't be working any more.`);
62
+ }
43
63
  const value = await this.findElement(VariableSectionItem.locators.VariableSectionItem.value.constructor);
44
64
  return VariableSectionItem.locators.VariableSectionItem.value.tooltip(value);
45
65
  }
@@ -1,6 +1,22 @@
1
- import { TreeItem } from "../../ViewItem";
2
- import { TreeSection } from "../TreeSection";
3
- import { WebElement } from "selenium-webdriver";
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License", destination); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { TreeItem } from '../../ViewItem';
18
+ import { TreeSection } from '../TreeSection';
19
+ import { WebElement } from 'selenium-webdriver';
4
20
  /**
5
21
  * Default tree item base on the items in explorer view
6
22
  */
@@ -1,4 +1,20 @@
1
1
  "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License", destination); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * https://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.DefaultTreeItem = void 0;
4
20
  const ViewItem_1 = require("../../ViewItem");
@@ -1,5 +1,21 @@
1
- import { TreeSection } from "../TreeSection";
2
- import { TreeItem } from "../../../..";
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License", destination); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { TreeSection } from '../TreeSection';
18
+ import { TreeItem } from '../../../..';
3
19
  /**
4
20
  * Default view section
5
21
  */
@@ -1,4 +1,20 @@
1
1
  "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License", destination); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * https://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.DefaultTreeSection = void 0;
4
20
  const TreeSection_1 = require("../TreeSection");
@@ -24,7 +40,7 @@ class DefaultTreeSection extends TreeSection_1.TreeSection {
24
40
  do {
25
41
  const temp = await container.findElements(DefaultTreeSection.locators.DefaultTreeItem.ctor(label));
26
42
  if (temp.length > 0) {
27
- const level = +await temp[0].getAttribute(DefaultTreeSection.locators.ViewSection.level);
43
+ const level = +(await temp[0].getAttribute(DefaultTreeSection.locators.ViewSection.level));
28
44
  if (maxLevel < 1 || level <= maxLevel) {
29
45
  item = await new DefaultTreeItem_1.DefaultTreeItem(temp[0], this).wait();
30
46
  }
@@ -1,6 +1,22 @@
1
- import { WebElement } from "selenium-webdriver";
2
- import { AbstractElement } from "../AbstractElement";
3
- import { NotificationsCenter } from "../workbench/NotificationsCenter";
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License", destination); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { WebElement } from 'selenium-webdriver';
18
+ import { AbstractElement } from '../AbstractElement';
19
+ import { NotificationsCenter } from '../workbench/NotificationsCenter';
4
20
  /**
5
21
  * Page object for the status bar at the bottom
6
22
  */
@@ -1,4 +1,20 @@
1
1
  "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License", destination); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * https://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.StatusBar = void 0;
4
20
  const selenium_webdriver_1 = require("selenium-webdriver");
@@ -27,7 +43,7 @@ class StatusBar extends AbstractElement_1.AbstractElement {
27
43
  const items = await this.getItems();
28
44
  for (const item of items) {
29
45
  try {
30
- if (await item.getAttribute(StatusBar.locators.StatusBar.itemTitle) === title) {
46
+ if ((await item.getAttribute(StatusBar.locators.StatusBar.itemTitle)) === title) {
31
47
  return item;
32
48
  }
33
49
  }
@@ -1,4 +1,20 @@
1
- import { AbstractElement } from "../AbstractElement";
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License", destination); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { AbstractElement } from '../AbstractElement';
2
18
  /**
3
19
  * Page object for the Debugger Toolbar
4
20
  */
@@ -1,4 +1,20 @@
1
1
  "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License", destination); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * https://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.DebugToolbar = void 0;
4
20
  const selenium_webdriver_1 = require("selenium-webdriver");
@@ -1,6 +1,22 @@
1
- import { ElementWithContexMenu } from "../ElementWithContextMenu";
2
- import { AbstractElement } from "../AbstractElement";
3
- import { By, WebElement } from "selenium-webdriver";
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License", destination); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { ElementWithContexMenu } from '../ElementWithContextMenu';
18
+ import { AbstractElement } from '../AbstractElement';
19
+ import { By, WebElement } from 'selenium-webdriver';
4
20
  /**
5
21
  * Available types of notifications
6
22
  */
@@ -1,4 +1,20 @@
1
1
  "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License", destination); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * https://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.CenterNotification = exports.StandaloneNotification = exports.Notification = exports.NotificationType = void 0;
4
20
  const ElementWithContextMenu_1 = require("../ElementWithContextMenu");
@@ -78,8 +94,7 @@ class Notification extends ElementWithContextMenu_1.ElementWithContexMenu {
78
94
  */
79
95
  async getActions() {
80
96
  const buttons = [];
81
- const elements = await this.findElement(Notification.locators.Notification.actions)
82
- .findElements(Notification.locators.Notification.action);
97
+ const elements = await this.findElement(Notification.locators.Notification.actions).findElements(Notification.locators.Notification.action);
83
98
  for (const button of elements) {
84
99
  const title = await Notification.locators.Notification.actionLabel.value(button);
85
100
  buttons.push(await new NotificationButton(Notification.locators.Notification.buttonConstructor(title), this).wait());
@@ -1,5 +1,21 @@
1
- import { AbstractElement } from "../AbstractElement";
2
- import { Notification, NotificationType } from "./Notification";
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License", destination); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { AbstractElement } from '../AbstractElement';
18
+ import { Notification, NotificationType } from './Notification';
3
19
  /**
4
20
  * Notifications center page object
5
21
  */
@@ -1,4 +1,20 @@
1
1
  "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License", destination); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * https://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.NotificationsCenter = void 0;
4
20
  const selenium_webdriver_1 = require("selenium-webdriver");
@@ -46,7 +62,7 @@ class NotificationsCenter extends AbstractElement_1.AbstractElement {
46
62
  const elements = await this.findElements(NotificationsCenter.locators.NotificationsCenter.row);
47
63
  for (const element of elements) {
48
64
  const not = new Notification_1.CenterNotification(element);
49
- if (type === Notification_1.NotificationType.Any || await not.getType() === type) {
65
+ if (type === Notification_1.NotificationType.Any || (await not.getType()) === type) {
50
66
  notifications.push(await not.wait());
51
67
  }
52
68
  }
@@ -1,15 +1,31 @@
1
- import { AbstractElement } from "../AbstractElement";
2
- import { TitleBar } from "../menu/TitleBar";
3
- import { SideBarView } from "../sidebar/SideBarView";
4
- import { ActivityBar } from "../activityBar/ActivityBar";
5
- import { StatusBar } from "../statusBar/StatusBar";
6
- import { EditorView } from "../editor/EditorView";
7
- import { BottomBarPanel } from "../bottomBar/BottomBarPanel";
8
- import { Notification } from "./Notification";
9
- import { NotificationsCenter } from "./NotificationsCenter";
10
- import { QuickOpenBox } from "./input/QuickOpenBox";
11
- import { SettingsEditor } from "../editor/SettingsEditor";
12
- import { InputBox } from "./input/InputBox";
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License", destination); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { AbstractElement } from '../AbstractElement';
18
+ import { TitleBar } from '../menu/TitleBar';
19
+ import { SideBarView } from '../sidebar/SideBarView';
20
+ import { ActivityBar } from '../activityBar/ActivityBar';
21
+ import { StatusBar } from '../statusBar/StatusBar';
22
+ import { EditorView } from '../editor/EditorView';
23
+ import { BottomBarPanel } from '../bottomBar/BottomBarPanel';
24
+ import { Notification } from './Notification';
25
+ import { NotificationsCenter } from './NotificationsCenter';
26
+ import { QuickOpenBox } from './input/QuickOpenBox';
27
+ import { SettingsEditor } from '../editor/SettingsEditor';
28
+ import { InputBox } from './input/InputBox';
13
29
  /**
14
30
  * Handler for general workbench related actions
15
31
  */
@@ -1,4 +1,20 @@
1
1
  "use strict";
2
+ /**
3
+ * Licensed to the Apache Software Foundation (ASF) under one or more
4
+ * contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright ownership.
6
+ * The ASF licenses this file to You under the Apache License, Version 2.0
7
+ * (the "License", destination); you may not use this file except in compliance with
8
+ * the License. You may obtain a copy of the License at
9
+ *
10
+ * https://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.Workbench = void 0;
4
20
  const AbstractElement_1 = require("../AbstractElement");
@@ -122,7 +138,7 @@ class Workbench extends AbstractElement_1.AbstractElement {
122
138
  async executeCommand(command) {
123
139
  const prompt = await this.openCommandPrompt();
124
140
  await prompt.setText(`>${command}`);
125
- const quickPicks = await Promise.all((await prompt.getQuickPicks()).map(item => item.getLabel()));
141
+ const quickPicks = await Promise.all((await prompt.getQuickPicks()).map((item) => item.getLabel()));
126
142
  if (quickPicks.includes(command)) {
127
143
  await prompt.selectQuickPick(command);
128
144
  }
@@ -1,4 +1,20 @@
1
- import { AbstractElement } from "../../AbstractElement";
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License", destination); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * https://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { AbstractElement } from '../../AbstractElement';
2
18
  /**
3
19
  * Abstract page object for input fields
4
20
  */