{
await page.goto('./account');
await page.getByRole('heading', { name: 'Advanced' }).click();
+ // look into the config file: if it starts Time Safari, it might say which server it should set by default
const webServer = testInfo.config.webServer;
const endorserWords = webServer?.command.split(' ');
const ENDORSER_ENV_NAME = 'VITE_DEFAULT_ENDORSER_API_SERVER';
const endorserTerm = endorserWords?.find(word => word.startsWith(ENDORSER_ENV_NAME + '='));
- const endorserServer = endorserTerm?.substring(ENDORSER_ENV_NAME.length + 1) || 'https://test-api.endorser.ch';
+ const endorserTermInConfig = endorserTerm?.substring(ENDORSER_ENV_NAME.length + 1);
+
+ const endorserServer = endorserTermInConfig || 'https://test-api.endorser.ch';
await expect(page.getByRole('textbox').nth(1)).toHaveValue(endorserServer);
});
\ No newline at end of file
diff --git a/test-playwright/03-check-noid-messaging.spec.ts b/test-playwright/03-check-noid-messaging.spec.ts
index 8ae27d34d..4e855796c 100644
--- a/test-playwright/03-check-noid-messaging.spec.ts
+++ b/test-playwright/03-check-noid-messaging.spec.ts
@@ -17,4 +17,7 @@ test('Check no-ID messaging in account', async ({ page }) => {
// Check 'a friend needs to register you' notice
await expect(page.locator('#noticeBeforeAnnounce')).toBeVisible();
+
+ // Check that there is no ID
+ await expect(page.locator('#sectionIdentityDetails code.truncate')).toBeEmpty();
});
\ No newline at end of file