From ff901c06d2ad7e24097015be951b79f5c3d58330 Mon Sep 17 00:00:00 2001 From: George Gevoian Date: Wed, 18 Jan 2023 09:26:56 -0800 Subject: [PATCH] (core) Dismiss tips in HomeIntro deployment tests Summary: Fixes deployment test failures that were caused by a test user being deleted and recreated, which consequently reset their preferences and made popups and tips always appear. Test Plan: N/A Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3768 --- test/nbrowser/HomeIntro.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/nbrowser/HomeIntro.ts b/test/nbrowser/HomeIntro.ts index 75d82893..a2e73f67 100644 --- a/test/nbrowser/HomeIntro.ts +++ b/test/nbrowser/HomeIntro.ts @@ -53,6 +53,7 @@ describe('HomeIntro', function() { // Open doc-menu await session.loadDocMenu('/', 'skipWelcomeQuestions'); + await gu.dismissCardPopups(); // Check message specific to logged-in user assert.match(await driver.find('.test-welcome-title').getText(), new RegExp(`Welcome.* ${session.name}`)); @@ -322,6 +323,8 @@ async function checkDocAndRestore( await gu.waitForDocMenuToLoad(); // If not logged in, we create docs "unsaved" and don't see them in doc-menu. if (isLoggedIn) { + // Freshly-created users will see a tip for the Add New button; dismiss it. + await gu.dismissBehavioralPrompts(); // Delete the first doc we find. We expect exactly one to exist. await deleteFirstDoc(); }