diff --git a/website/tests/pages/navigation.spec.ts b/website/tests/pages/navigation.spec.ts
index b9065a146..ebdabd9af 100644
--- a/website/tests/pages/navigation.spec.ts
+++ b/website/tests/pages/navigation.spec.ts
@@ -9,7 +9,7 @@ const organismIndependentNavigationItems = [
];
const organismNavigationItems = [
- { link: 'Search', title: 'Search' },
+ { link: 'Search', title: '[Organism] - Browse' },
{ link: 'Submit', title: 'Submit' },
{ link: 'Revise', title: 'Revise' },
{ link: 'User', title: 'Login' },
@@ -29,11 +29,11 @@ test.describe('Clicking the navigation links', () => {
await navigationFixture.openOrganismNavigation();
await navigationFixture.clickLink(dummyOrganism.displayName);
- await navigationFixture.expectTitle(dummyOrganism.displayName);
+ await navigationFixture.expectTitle(`${dummyOrganism.displayName} - Browse`);
for (const { link, title } of organismNavigationItems) {
await navigationFixture.clickLink(link);
- await navigationFixture.expectTitle(title);
+ await navigationFixture.expectTitle(title.replace('[Organism]', dummyOrganism.displayName));
}
});
});
diff --git a/website/tests/pages/search/index.spec.ts b/website/tests/pages/search/index.spec.ts
index 034fd06b1..40de63411 100644
--- a/website/tests/pages/search/index.spec.ts
+++ b/website/tests/pages/search/index.spec.ts
@@ -6,7 +6,6 @@ import { baseUrl, dummyOrganism, expect, test, testSequenceEntry } from '../../e
test.describe('The search page', () => {
test('should show the search form with button and a table', async ({ searchPage }) => {
await searchPage.goto();
- await expect(searchPage.page).toHaveTitle('Search');
await expect(searchPage.searchButton).toBeVisible();
await expect(searchPage.table).toBeVisible();
});