Skip to content

Commit 462e51f

Browse files
committed
select the first test when loading, Fixes #80
1 parent b75fcf5 commit 462e51f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ export default class ProjectStore {
101101
}
102102

103103
@action.bound fromJS(jsRep) {
104-
this.id = jsRep.id || uuidv4();
105104
this.name = jsRep.name;
106105
this.setUrl(jsRep.url);
107106
this._tests.replace(jsRep.tests.map(TestCase.fromJS));
108107
this._suites.replace(jsRep.suites.map((suite) => Suite.fromJS(suite, this.tests)));
109108
this._urls.replace(jsRep.urls);
109+
this.id = jsRep.id || uuidv4();
110110
this.modified = false;
111111
}
112112

packages/selenium-ide/src/neo/stores/view/UiState.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ class UiState {
254254
this.isRecording = false;
255255
this.suiteStates = {};
256256
this.clearTestStates();
257+
this.selectTest(this._project.tests[0]);
257258
}
258259

259260
@action.bound clearTestStates() {

0 commit comments

Comments
 (0)