Skip to content

Commit

Permalink
fix(tests): update live edit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Nov 28, 2024
1 parent ad20943 commit 59d2ac3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const DocumentPerspectiveList = memo(function DocumentPerspectiveList() {
)}
</Text>
}
disabled={!editState?.published}
disabled={editState?.liveEdit ? false : !editState?.published}
onClick={handleBundleChange('published')}
selected={
/** the publish is selected when:
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/tests/document-actions/liveEdit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ test(`liveEdited document can be created, edited, and deleted`, async ({
const name = 'Test Name'

await createDraftDocument('/test/content/playlist')
await page.getByText('select the publish document to edit it')
// Navigate to the published perspective
await page.getByRole('button', {name: 'Published'}).click()
await page.getByTestId('field-name').getByTestId('string-input').fill(name)

await page.getByTestId('action-menu-button').click()
Expand Down

0 comments on commit 59d2ac3

Please sign in to comment.