Skip to content

Commit

Permalink
questions: title of the tab changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit Dave committed May 2, 2024
1 parent 8f8c16a commit c39adee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/cypress/src/integration/questions/read.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ describe('[Questions]', () => {

cy.step('Can visit question')
cy.visit(`/questions/${question.slug}`)
cy.title().should('eq', question.title);

cy.step('All metadata visible')
cy.contains(`${question.subscribers.length} following`)
Expand Down
1 change: 0 additions & 1 deletion src/pages/Question/QuestionListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export const QuestionListItem = ({ question, query }: IProps) => {
e.stopPropagation()
e.preventDefault()
navigate(url)
document.title = title;
}}
data-href={url}
tabIndex={0}
Expand Down
1 change: 1 addition & 0 deletions src/pages/Question/QuestionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const QuestionPage = () => {
<Loader />
) : question ? (
<>
{document.title = question.title}
<Card sx={{ position: 'relative', marginTop: 4 }}>
<Flex sx={{ flexDirection: 'column', padding: 4, gap: 2 }}>
<Flex sx={{ flexWrap: 'wrap', gap: 2 }}>
Expand Down

0 comments on commit c39adee

Please sign in to comment.