Skip to content

Commit

Permalink
update test id
Browse files Browse the repository at this point in the history
  • Loading branch information
austenem committed Oct 21, 2024
1 parent 5589c31 commit cf70bc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ interface PanelListLandingPageProps extends PropsWithChildren {

function PanelListLandingPage({ title, subtitle, description, children, noIcon, ...rest }: PanelListLandingPageProps) {
return (
<PageWrapper {...rest}>
<PageTitle data-testid="landing-page-title">{title}</PageTitle>
<PageWrapper>
<PageTitle {...rest}>{title}</PageTitle>
<Typography variant="subtitle1" color="primary" data-testid="landing-page-subtitle">
{subtitle}
</Typography>
Expand Down
2 changes: 1 addition & 1 deletion end-to-end/cypress/e2e/portal/pages/publications.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe("publications list page", () => {
cy.visit("/publications");
});
it("has a title, subtitle, and description at the top", () => {
cy.findByTestId("landing-page-title").findByText("Publications");
cy.findByTestId("publications-title").findByText("Publications");
cy.findByTestId("landing-page-description").contains(
"The following publications"
);
Expand Down

0 comments on commit cf70bc2

Please sign in to comment.