Skip to content

[WIP] Small fixes - #27

Closed
ellieschieder wants to merge 2 commits into
docmost:mainfrom
ellieschieder:small-fixes
Closed

ellieschieder wants to merge 2 commits into
docmost:mainfrom
ellieschieder:small-fixes

Conversation

@ellieschieder

Copy link
Copy Markdown

@CLAassistant

CLAassistant commented Jun 30, 2024 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Philipinho

Copy link
Copy Markdown
Member

Hi @ellieschieder, are you actively working on #15? If not, I could bring an update much sooner so you can focus on the two other tasks on the task list.

@Philipinho Philipinho closed this Jul 17, 2024
vvzvlad pushed a commit to vvzvlad/gitmost that referenced this pull request Jun 21, 2026
…rt (docmost#27)

The create/duplicate/import gate tests asserted gate presence via brittle
expect(SRC).toMatch(/regex/) over the source text plus a reimplemented
applyGate() stand-in, so a refactor could break the real gate while they still
passed. Rewrite both specs to execute the REAL methods (PageService.create /
duplicatePage; ImportService.importPage; FileImportTaskService.processGenericImport)
with each caller role and assert on the PERSISTED content via hasHtmlEmbedNode:
member -> stripped, admin/owner+toggle ON -> preserved, toggle OFF -> stripped
for everyone, unknown/missing role -> fail-closed. No source-regex assertions
remain.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants