File tree 6 files changed +42
-14
lines changed
tests/test-project/src/test/01_general 6 files changed +42
-14
lines changed Original file line number Diff line number Diff line change 17
17
strategy :
18
18
fail-fast : false
19
19
matrix :
20
- version : [min, 1.96.4 , max]
20
+ version : [min, 1.97.2 , max]
21
21
uses : ./.github/workflows/template-main.yaml
22
22
with :
23
23
version : ${{ matrix.version }}
Original file line number Diff line number Diff line change 40
40
41
41
| NodeJS | Visual Studio Code | Operating System |
42
42
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
43
- | <table style =" text-align :center ;" > <tr ><th >20.x.x</th ><th >LTS</th ><th >Latest</th ></tr ><tr ><td >✅</td ><td >✅❓</td ><td >✅❓</td ></tr ><tr ><td colspan =" 3 " >❓ Best-effort</td ></tr > </table > | <table style =" text-align :center ;" > <tr ><th >min</th ><th >-</th ><th >max</th ></tr ><tr ><td >1.95 .x</td ><td >1.96 .x</td ><td >1.97 .x</td ></tr > </table > | <table style =" text-align :center ;" > <tr ><th >Linux</th ><th >Windows</th ><th >macOS</th ></tr ><tr ><td >✅ ⚠️</td ><td >✅</td ><td >✅ ⚠️</td ></tr ><tr ><td colspan =" 3 " >⚠️ [ Known Issues] ( KNOWN_ISSUES.md ) </td ></tr > </table > |
43
+ | <table style =" text-align :center ;" > <tr ><th >20.x.x</th ><th >LTS</th ><th >Latest</th ></tr ><tr ><td >✅</td ><td >✅❓</td ><td >✅❓</td ></tr ><tr ><td colspan =" 3 " >❓ Best-effort</td ></tr > </table > | <table style =" text-align :center ;" > <tr ><th >min</th ><th >-</th ><th >max</th ></tr ><tr ><td >1.96 .x</td ><td >1.97 .x</td ><td >1.98 .x</td ></tr > </table > | <table style =" text-align :center ;" > <tr ><th >Linux</th ><th >Windows</th ><th >macOS</th ></tr ><tr ><td >✅ ⚠️</td ><td >✅</td ><td >✅ ⚠️</td ></tr ><tr ><td colspan =" 3 " >⚠️ [ Known Issues] ( KNOWN_ISSUES.md ) </td ></tr > </table > |
44
44
45
45
#### NodeJS Support Policy
46
46
Original file line number Diff line number Diff line change 52
52
" ui-test"
53
53
],
54
54
"supportedVersions" : {
55
- "vscode-min" : " 1.95.3 " ,
56
- "vscode-max" : " 1.97 .2" ,
55
+ "vscode-min" : " 1.96.4 " ,
56
+ "vscode-max" : " 1.98 .2" ,
57
57
"nodejs" : " 20"
58
58
},
59
59
"dependencies" : {
Original file line number Diff line number Diff line change
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
+
18
+ import { By , LocatorDiff } from '@redhat-developer/page-objects' ;
19
+
20
+ export const diff : LocatorDiff = {
21
+ locators : {
22
+ ScmView : {
23
+ sourceControlSection : By . xpath ( `.//div[@aria-label='Changes Section']` ) ,
24
+ } ,
25
+ ViewSection : {
26
+ button : By . xpath ( `.//a[contains(@class, 'action-label')]` ) ,
27
+ } ,
28
+ } ,
29
+ } ;
Original file line number Diff line number Diff line change @@ -143,10 +143,11 @@ export abstract class ViewSection extends AbstractElement {
143
143
* @returns Promise resolving to array of ViewPanelAction objects
144
144
*/
145
145
async getActions ( ) : Promise < ViewPanelAction [ ] > {
146
+ await this . getDriver ( ) . actions ( ) . move ( { origin : this } ) . perform ( ) ; // move mouse to bring auto-hided buttons visible
146
147
const actions = await this . findElement ( ViewSection . locators . ViewSection . actions ) . findElements ( ViewSection . locators . ViewSection . button ) ;
147
148
return Promise . all (
148
149
actions . map ( async ( action ) => {
149
- const dropdown = await action . getAttribute ( 'aria-haspopup' ) ;
150
+ const dropdown = ( await action . getAttribute ( 'aria-haspopup' ) ) || ( await action . getAttribute ( 'aria-expanded' ) ) ;
150
151
if ( dropdown ) {
151
152
return new ViewPanelActionDropdown ( action , this ) ;
152
153
} else {
Original file line number Diff line number Diff line change @@ -47,16 +47,14 @@ describe('Open resource test', function () {
47
47
48
48
const index = title ?. indexOf ( prefix ) ?? 0 ;
49
49
50
- if ( index > 0 ) {
51
- let openFolderPath = title ?. slice ( index + prefix . length ) ;
52
- if ( openFolderPath ) {
53
- if ( openFolderPath . startsWith ( '~/' ) ) {
54
- openFolderPath = path . join ( os . homedir ( ) , openFolderPath . slice ( 2 ) ) ;
55
- }
56
-
57
- expect ( openFolderPath . split ( ' ' ) [ 0 ] ) . equals ( process . cwd ( ) ) ;
58
- return true ;
50
+ let openFolderPath = title ?. slice ( index + prefix . length ) ;
51
+ if ( openFolderPath ) {
52
+ if ( openFolderPath . startsWith ( '~/' ) ) {
53
+ openFolderPath = path . join ( os . homedir ( ) , openFolderPath . slice ( 2 ) ) ;
59
54
}
55
+
56
+ expect ( openFolderPath . split ( ' ' ) [ 0 ] ) . equals ( process . cwd ( ) ) ;
57
+ return true ;
60
58
}
61
59
62
60
return false ;
You can’t perform that action at this time.
0 commit comments