Skip to content

Commit fb7f4e6

Browse files
committed
select a added test when calling loadProject
1 parent dcbcffc commit fb7f4e6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/selenium-ide/src/neo/IO/filesystem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ export function loadProject(project, file) {
148148
cancelLabel: "Discard"
149149
}, (choseMigration) => {
150150
if (choseMigration) {
151-
project.addTestCase(TestCase.fromJS(migrateUrls(test, baseUrl)));
151+
UiState.selectTest(project.addTestCase(TestCase.fromJS(migrateUrls(test, baseUrl))));
152152
}
153153
});
154154
} else {
155-
project.addTestCase(TestCase.fromJS(test, baseUrl));
155+
UiState.selectTest(project.addTestCase(TestCase.fromJS(test, baseUrl)));
156156
}
157157
}
158158
} catch (error) {

packages/selenium-ide/src/neo/stores/domain/ProjectStore.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export default class ProjectStore {
112112
test.name = `${test.name} (${foundNumber})`;
113113
}
114114
this._tests.push(test);
115+
return test;
115116
}
116117
}
117118

0 commit comments

Comments
 (0)