Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: check logged out status using its locator

Abdullah Attafd8e14e9ff4e
diff --git a/apps/web/__e2e__/models/settings-view.model.ts b/apps/web/__e2e__/models/settings-view.model.ts
index 00f7b7f87..81f931fcc 100644
--- a/apps/web/__e2e__/models/settings-view.model.ts
+++ b/apps/web/__e2e__/models/settings-view.model.ts
@@ -39,8 +39,8 @@ export class SettingsViewModel {
await this.logoutButton.click();
await confirmDialog(this.page);
await this.page
- .locator(getTestId("sync-status-synced"))
- .waitFor({ state: "hidden" });
+ .locator(getTestId("not-logged-in"))
+ .waitFor({ state: "visible" });
}
async getRecoveryKey(password: string) {
diff --git a/apps/web/src/components/status-bar/index.js b/apps/web/src/components/status-bar/index.js
index c856833c6..5e70bbc28 100644
--- a/apps/web/src/components/status-bar/index.js
+++ b/apps/web/src/components/status-bar/index.js
@@ -102,6 +102,7 @@ function StatusBar() {
justifyContent: "center",
display: "flex"
}}
+ data-test-id="not-logged-in"
>
<Circle size={7} color="error" />
<Text variant="subBody" ml={1} sx={{ color: "bgSecondaryText" }}>