Skip to content

Commit

Permalink
fixup! Refresh the dashboard layout
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmyersdev committed Jul 29, 2024
1 parent aeb2189 commit b4a2977
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions layouts/dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ onUnmounted(() => {
<IconSun v-else-if="isLight" :stroke-width="1.25" class="w-6" />
<IconSunMoon v-else :stroke-width="1.25" class="w-6" />
</CoreButton>
<CoreButton v-if="doc" :as="CoreLink" :to="{ path: `/docs/${doc.id}/meta` }" class="lg:hidden" data-test-toggle-meta>
<CoreButton v-if="doc" class="hidden lg:flex" data-test-id="toggle-meta" data-test-toggle-meta @click="toggleMeta">
<IconDotsVertical :stroke-width="1.25" class="h-6" />
</CoreButton>
<CoreButton v-if="doc" class="hidden lg:flex" data-test-toggle-meta @click="toggleMeta">
<CoreButton v-if="doc" :as="CoreLink" :to="{ path: `/docs/${doc.id}/meta` }" class="lg:hidden" data-test-id="toggle-meta" data-test-toggle-meta>
<IconDotsVertical :stroke-width="1.25" class="h-6" />
</CoreButton>
</div>
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/editor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ test.describe('editor', () => {

await page.keyboard.type('Check out [[link]] and [[My \n', { delay: 100 })

await page.getByTestId('toggle-sidebars').click()
await page.getByTestId('toggle-meta').nth(0).click()

await expect(page.getByTestId('doc-references').getByRole('link')).toHaveText('My Test Doc')
})
Expand All @@ -155,7 +155,7 @@ test.describe('editor', () => {

await page.keyboard.type('# Test 2\n\nCheck out [[link]] and [[My \n', { delay: 100 })

await page.getByTestId('toggle-sidebars').click()
await page.getByTestId('toggle-meta').nth(0).click()
await page.getByTestId('doc-references').getByRole('link').click()

await expect(page.getByTestId('doc-backlinks').getByRole('link')).toHaveText('Test 2')
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/healthchecks/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test('sets the max-width of the editor to the readability max-width setting', as

const inkContainers = await page.locator('.ink-mde-container').all()

expect(inkContainers).toHaveLength(3)
expect(inkContainers).toHaveLength(2)

for (const inkContainer of inkContainers) {
await expect(inkContainer).toHaveCSS('max-width', '1000px')
Expand Down

0 comments on commit b4a2977

Please sign in to comment.