mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(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
This commit is contained in:
parent
45c7602f49
commit
ff901c06d2
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user