@@ -32,11 +32,12 @@ module.exports = {
32
32
. pause ( 100 )
33
33
. waitForElementVisible ( '*[data-id="treeViewLitreeViewItemcontracts"]' )
34
34
. waitForElementNotPresent ( '*[data-id="treeViewLitreeViewItem.git"]' )
35
- . waitForElementNotVisible ( '[data-id="workspaceGitPanel "]' )
35
+ . waitForElementVisible ( '[data-id="treeViewDivtreeViewItemREADME.txt "]' )
36
36
} ,
37
37
'Should add credentials #group1 #group2 #group3' : function ( browser : NightwatchBrowser ) {
38
38
browser
39
- . clickLaunchIcon ( 'settings' )
39
+ . waitForElementVisible ( '*[data-id="topbar-settingsIcon"]' )
40
+ . click ( '*[data-id="topbar-settingsIcon"]' )
40
41
. setValue ( '[data-id="settingsTabGithubUsername"]' , 'circleci' )
41
42
. setValue ( '[data-id="settingsTabGithubEmail"]' , '[email protected] ' )
42
43
. click ( '[data-id="settingsTabSaveGistToken"]' )
@@ -45,7 +46,7 @@ module.exports = {
45
46
'Should create and initialize a GIT repository #group1' : function ( browser : NightwatchBrowser ) {
46
47
browser
47
48
. clickLaunchIcon ( 'filePanel' )
48
- . waitForElementNotVisible ( '[data-id="workspaceGitPanel"]' )
49
+ // .waitForElementNotVisible('[data-id="workspaceGitPanel"]')
49
50
. click ( '*[data-id="workspacesSelect"]' )
50
51
. click ( '*[data-id="workspacecreate"]' )
51
52
. waitForElementPresent ( '*[data-id="create-blank"]' )
@@ -81,15 +82,15 @@ module.exports = {
81
82
'Should clone a repository #group2' : function ( browser : NightwatchBrowser ) {
82
83
browser
83
84
. clickLaunchIcon ( 'filePanel' )
84
- . waitForElementVisible ( '[data-id="workspacesSelect "]' )
85
- . click ( '[data-id="workspacesSelect "]' )
86
- . waitForElementVisible ( '[data-id="workspaceclone "]' )
87
- . click ( '[data-id="workspaceclone "]' )
88
- . waitForElementVisible ( '[data-id="fileSystemModalDialogModalBody -react"]' )
89
- . click ( '[data-id="fileSystemModalDialogModalBody -react"]' )
85
+ . waitForElementVisible ( '* [data-id="github-dropdown-toggle "]' )
86
+ . click ( '* [data-id="github-dropdown-toggle "]' )
87
+ . waitForElementVisible ( '* [data-id="github-dropdown-item-clone "]' )
88
+ . click ( '* [data-id="github-dropdown-item-clone "]' )
89
+ . waitForElementVisible ( '[data-id="topbarModalModalDialogModalBody -react"]' )
90
+ . click ( '[data-id="topbarModalModalDialogModalBody -react"]' )
90
91
. waitForElementVisible ( '[data-id="modalDialogCustomPromptTextClone"]' )
91
92
. setValue ( '[data-id="modalDialogCustomPromptTextClone"]' , 'https://github.com/ethereum/awesome-remix' )
92
- . click ( '[data-id="fileSystem -modal-footer-ok-react"]' )
93
+ . click ( '[data-id="topbarModal -modal-footer-ok-react"]' )
93
94
. waitForElementPresent ( '.fa-spinner' )
94
95
. pause ( 5000 )
95
96
. waitForElementNotPresent ( '.fa-spinner' )
@@ -107,33 +108,37 @@ module.exports = {
107
108
108
109
'Should display non-clashing names for duplicate clone #group2' : '' + function ( browser : NightwatchBrowser ) {
109
110
browser
110
- . click ( '[data-id="workspacesSelect"]' )
111
- . waitForElementVisible ( '[data-id="workspaceclone"]' )
112
- . click ( '[data-id="workspaceclone"]' )
113
- . waitForElementVisible ( '[data-id="fileSystemModalDialogModalBody-react"]' )
114
- . click ( '[data-id="fileSystemModalDialogModalBody-react"]' )
111
+ . waitForElementVisible ( '*[data-id="github-dropdown-toggle"]' )
112
+ . click ( '*[data-id="github-dropdown-toggle"]' )
113
+ . waitForElementVisible ( '*[data-id="github-dropdown-item-clone"]' )
114
+ . click ( '*[data-id="github-dropdown-item-clone"]' )
115
+ . waitForElementVisible ( '[data-id="topbarModalModalDialogModalBody-react"]' )
116
+ . click ( '[data-id="topbarModalModalDialogModalBody-react"]' )
115
117
. waitForElementVisible ( '[data-id="modalDialogCustomPromptTextClone"]' )
116
118
. setValue ( '[data-id="modalDialogCustomPromptTextClone"]' , 'https://github.com/ethereum/awesome-remix' )
117
- . click ( '[data-id="fileSystem -modal-footer-ok-react"]' )
119
+ . click ( '[data-id="topbarModal -modal-footer-ok-react"]' )
118
120
. pause ( 5000 )
119
121
. waitForElementContainsText ( '[data-id="workspacesSelect"]' , 'awesome-remix1' )
120
- . click ( '[data-id="workspacesSelect"]' )
121
- . waitForElementVisible ( '[data-id="workspaceclone"]' )
122
- . click ( '[data-id="workspaceclone"]' )
123
- . waitForElementVisible ( '[data-id="fileSystemModalDialogModalBody-react"]' )
124
- . click ( '[data-id="fileSystemModalDialogModalBody-react"]' )
122
+ . waitForElementVisible ( '*[data-id="github-dropdown-toggle"]' )
123
+ . click ( '*[data-id="github-dropdown-toggle"]' )
124
+ . waitForElementVisible ( '*[data-id="github-dropdown-item-clone"]' )
125
+ . click ( '*[data-id="github-dropdown-item-clone"]' )
126
+ . waitForElementVisible ( '[data-id="topbarModalModalDialogModalBody-react"]' )
127
+ . click ( '[data-id="topbarModalModalDialogModalBody-react"]' )
125
128
. waitForElementVisible ( '[data-id="modalDialogCustomPromptTextClone"]' )
126
129
. setValue ( '[data-id="modalDialogCustomPromptTextClone"]' , 'https://github.com/ethereum/awesome-remix' )
127
- . click ( '[data-id="fileSystem -modal-footer-ok-react"]' )
130
+ . click ( '[data-id="topbarModal -modal-footer-ok-react"]' )
128
131
. pause ( 5000 )
129
132
. waitForElementContainsText ( '[data-id="workspacesSelect"]' , 'awesome-remix2' )
130
- . click ( '[data-id="workspacesSelect"]' )
131
- . waitForElementVisible ( '[data-id="workspaceDropdownMenuIcon]"' )
132
- . waitForElementVisible ( '[data-id="fileSystemModalDialogModalBody-react"]' )
133
- . click ( '[data-id="fileSystemModalDialogModalBody-react"]' )
133
+ . waitForElementVisible ( '*[data-id="github-dropdown-toggle"]' )
134
+ . click ( '*[data-id="github-dropdown-toggle"]' )
135
+ . waitForElementVisible ( '*[data-id="github-dropdown-item-clone"]' )
136
+ . click ( '*[data-id="github-dropdown-item-clone"]' )
137
+ . waitForElementVisible ( '[data-id="topbarModalModalDialogModalBody-react"]' )
138
+ . click ( '[data-id="topbarModalModalDialogModalBody-react"]' )
134
139
. waitForElementVisible ( '[data-id="modalDialogCustomPromptTextClone"]' )
135
140
. setValue ( '[data-id="modalDialogCustomPromptTextClone"]' , 'https://github.com/ethereum/awesome-remix' )
136
- . click ( '[data-id="fileSystem -modal-footer-ok-react"]' )
141
+ . click ( '[data-id="topbarModal -modal-footer-ok-react"]' )
137
142
. pause ( 5000 )
138
143
. waitForElementContainsText ( '[data-id="workspacesSelect"]' , 'awesome-remix3' )
139
144
. switchWorkspace ( 'awesome-remix' )
@@ -144,15 +149,15 @@ module.exports = {
144
149
145
150
'Should display error message in modal for failed clone #group2' : function ( browser : NightwatchBrowser ) {
146
151
browser
147
- . waitForElementVisible ( '[data-id="workspacesSelect "]' )
148
- . click ( '[data-id="workspacesSelect "]' )
149
- . waitForElementVisible ( '[data-id="workspaceclone "]' )
150
- . click ( '[data-id="workspaceclone "]' )
151
- . waitForElementVisible ( '[data-id="fileSystemModalDialogModalBody -react"]' )
152
- . click ( '[data-id="fileSystemModalDialogModalBody -react"]' )
152
+ . waitForElementVisible ( '* [data-id="github-dropdown-toggle "]' )
153
+ . click ( '* [data-id="github-dropdown-toggle "]' )
154
+ . waitForElementVisible ( '* [data-id="github-dropdown-item-clone "]' )
155
+ . click ( '* [data-id="github-dropdown-item-clone "]' )
156
+ . waitForElementVisible ( '[data-id="topbarModalModalDialogModalBody -react"]' )
157
+ . click ( '[data-id="topbarModalModalDialogModalBody -react"]' )
153
158
. waitForElementVisible ( '[data-id="modalDialogCustomPromptTextClone"]' )
154
159
. setValue ( '[data-id="modalDialogCustomPromptTextClone"]' , 'https://github.com/ethereum/non-existent-repo' )
155
- . click ( '[data-id="fileSystem -modal-footer-ok-react"]' )
160
+ . click ( '[data-id="topbarModal -modal-footer-ok-react"]' )
156
161
. pause ( 5000 )
157
162
. waitForElementVisible ( '[data-id="cloneGitRepositoryModalDialogModalBody-react"]' )
158
163
. waitForElementContainsText ( '[data-id="cloneGitRepositoryModalDialogModalBody-react"]' , 'An error occurred: Please check that you have the correct URL for the repo. If the repo is private, you need to add your github credentials (with the valid token permissions) in the Git plugin' )
@@ -165,15 +170,16 @@ module.exports = {
165
170
'Should show all cloned repo branches #group3' : function ( browser : NightwatchBrowser ) {
166
171
browser
167
172
. clickLaunchIcon ( 'filePanel' )
168
- . waitForElementNotVisible ( '[data-id="workspaceGitPanel"]' )
169
- . click ( '[data-id="workspacesSelect"]' )
170
- . waitForElementVisible ( '[data-id="workspaceclone"]' )
171
- . click ( '[data-id="workspaceclone"]' )
172
- . waitForElementVisible ( '[data-id="fileSystemModalDialogModalBody-react"]' )
173
- . click ( '[data-id="fileSystemModalDialogModalBody-react"]' )
173
+ // .waitForElementNotVisible('[data-id="workspaceGitPanel"]')
174
+ . waitForElementVisible ( '*[data-id="github-dropdown-toggle"]' )
175
+ . click ( '*[data-id="github-dropdown-toggle"]' )
176
+ . waitForElementVisible ( '*[data-id="github-dropdown-item-clone"]' )
177
+ . click ( '*[data-id="github-dropdown-item-clone"]' )
178
+ . waitForElementVisible ( '[data-id="topbarModalModalDialogModalBody-react"]' )
179
+ . click ( '[data-id="topbarModalModalDialogModalBody-react"]' )
174
180
. waitForElementVisible ( '[data-id="modalDialogCustomPromptTextClone"]' )
175
181
. setValue ( '[data-id="modalDialogCustomPromptTextClone"]' , 'https://github.com/ioedeveloper/test-branch-change' )
176
- . click ( '[data-id="fileSystem -modal-footer-ok-react"]' )
182
+ . click ( '[data-id="topbarModal -modal-footer-ok-react"]' )
177
183
. waitForElementPresent ( '.fa-spinner' )
178
184
. pause ( 7000 )
179
185
. waitForElementNotPresent ( '.fa-spinner' )
0 commit comments