fix(ui): some uxt fixes
This commit is contained in:
parent
df10875a00
commit
04733ade09
2 changed files with 5 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ function TestEdit() {
|
|||
uxtestingStore.createNewTest(isPreview).then((test) => {
|
||||
if (isPreview) {
|
||||
window.open(`${test.startingPath}?oruxt=${test.testId}`, '_blank', 'noopener,noreferrer');
|
||||
history.push(withSiteId(usabilityTestingEdit(test.testId), siteId));
|
||||
history.replace(withSiteId(usabilityTestingEdit(test.testId), siteId));
|
||||
} else {
|
||||
history.push(withSiteId(usabilityTestingView(test.testId), siteId));
|
||||
}
|
||||
|
|
@ -195,6 +195,9 @@ function TestEdit() {
|
|||
value={uxtestingStore.instance!.startingPath}
|
||||
onChange={(e) => {
|
||||
setHasChanged(true);
|
||||
if (!e.target.value.startsWith('https://')) {
|
||||
e.target.value = 'https://' + e.target.value;
|
||||
}
|
||||
uxtestingStore.instance!.setProperty('startingPath', e.target.value);
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ export default class UxtestingStore {
|
|||
initNewTest(title: string, description: string) {
|
||||
const initialData = {
|
||||
title: title,
|
||||
startingPath: '',
|
||||
startingPath: 'https://',
|
||||
requireMic: false,
|
||||
requireCamera: false,
|
||||
description: description,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue