[rich-text] Add "rich-text" split test (#11180)

GitOrigin-RevId: 8df79f3c70020c8dba0793c8b548fd1f1e1fbf76
This commit is contained in:
Alf Eaton
2023-01-12 12:52:54 +00:00
committed by Copybot
parent 3a890226cf
commit 017f0b49a0
4 changed files with 30 additions and 9 deletions
@@ -1067,6 +1067,21 @@ const ProjectController = {
}
)
},
richTextAssignment(cb) {
SplitTestHandler.getAssignment(
req,
res,
'rich-text',
(error, assignment) => {
// do not fail editor load if assignment fails
if (error) {
cb(null, { variant: 'default' })
} else {
cb(null, assignment)
}
}
)
},
},
(
err,
@@ -1083,6 +1098,7 @@ const ProjectController = {
newSourceEditorAssignment,
pdfjsAssignment,
editorLeftMenuAssignment,
richTextAssignment,
}
) => {
if (err != null) {
@@ -1266,6 +1282,7 @@ const ProjectController = {
fixedSizeDocument: true,
useOpenTelemetry: Settings.useOpenTelemetryClient,
showCM6SwitchAwaySurvey: Settings.showCM6SwitchAwaySurvey,
richTextVariant: richTextAssignment.variant,
})
timer.done()
}