comment tooltip tests back in

This commit is contained in:
Abbey Campbell
2025-11-21 12:33:04 -08:00
parent 8b33319935
commit 6ed6c2b31b

View File

@@ -61,11 +61,10 @@ describe( "shows tooltip", () => {
renderComponent( <AddObsButton /> );
// Temporarily disabled the tooltip for new users, as it is freezing the app in some cases.
// const tooltipText = await screen.findByText(
// "Press and hold to view more options"
// );
// expect( tooltipText ).toBeTruthy();
const tooltipText = await screen.findByText(
"Press and hold to view more options"
);
expect( tooltipText ).toBeTruthy();
} );
it( "to new users only after they dismissed the account creation card", async () => {
@@ -87,11 +86,10 @@ describe( "shows tooltip", () => {
}
} );
// Temporarily disabled the tooltip for new users, as it is freezing the app in some cases.
// const tooltipTextAfter = await screen.findByText(
// "Press and hold to view more options"
// );
// expect( tooltipTextAfter ).toBeTruthy();
const tooltipTextAfter = await screen.findByText(
"Press and hold to view more options"
);
expect( tooltipTextAfter ).toBeTruthy();
} );
it( "to logged in users with more than 50 observations after card dismissal", async () => {
@@ -110,10 +108,9 @@ describe( "shows tooltip", () => {
}
} );
// Temporarily disabled the tooltip for new users, as it is freezing the app in some cases.
// const tooltipTextAfter = await screen.findByText(
// "Press and hold to view more options"
// );
// expect( tooltipTextAfter ).toBeTruthy();
const tooltipTextAfter = await screen.findByText(
"Press and hold to view more options"
);
expect( tooltipTextAfter ).toBeTruthy();
} );
} );