Merge pull request #36407 from overleaf/mj-tabs-teardown

[web] Tear down tabs feature flag

GitOrigin-RevId: c25a3abe5c4b85f9802751bb1882385ed9c50a4a
This commit is contained in:
Mathias Jakobsen
2026-09-17 11:53:28 +00:00
committed by Copybot
parent 57697c6c56
commit 06b4124aca
7 changed files with 14 additions and 44 deletions
@@ -206,15 +206,6 @@ function selectDoc(id: string, path?: string[]) {
selectEntity(makeDocEntity(id, DOC_NAMES[id], path))
}
function enableEditorTabs() {
cy.window().then(win => {
win.metaAttributesCache.set('ol-splitTestVariants', {
'editor-tabs': 'enabled',
})
win.metaAttributesCache.set('ol-labsExperiments', ['editor-tabs'])
})
}
describe('File Tabs', function () {
function mountTabs(options?: { rootFolder?: any; userSettings?: any }) {
const rootFolder = options?.rootFolder ?? defaultRootFolder
@@ -241,7 +232,6 @@ describe('File Tabs', function () {
cy.interceptEvents()
cy.interceptTutorials()
cy.interceptCompile()
enableEditorTabs()
// Clear persisted tab state from localStorage
cy.window().then(win => {
@@ -1208,7 +1198,6 @@ describe('File Tabs', function () {
cy.clock()
cy.window().then(win => {
win.metaAttributesCache.set('ol-splitTestVariants', {
'editor-tabs': 'enabled',
'intermittent-connection-improvements': 'enabled',
})
})
@@ -1235,11 +1224,6 @@ describe('File Tabs', function () {
})
it('does not disable tabs when the feature flag is off', function () {
cy.window().then(win => {
win.metaAttributesCache.set('ol-splitTestVariants', {
'editor-tabs': 'enabled',
})
})
mountWithStaleDocs()
cy.then(() => selectDoc(DOC_IDS.main))
cy.tick(1000)