fix(ui): some uxt fixes

This commit is contained in:
nick-delirium 2023-12-06 13:36:39 +01:00
parent df10875a00
commit 04733ade09
2 changed files with 5 additions and 2 deletions

View file

@ -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);
}}
/>

View file

@ -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,