Skip to content

Commit c0c9c43

Browse files
fix for custom delete
1 parent 3a3db04 commit c0c9c43

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/e2e/tests/web/regression/insights/import-tutorials.e2e.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,14 @@ test
114114
.notOk(`${tutorialName} tutorial is not uploaded`);
115115
});
116116
// https://redislabs.atlassian.net/browse/RI-4186, https://redislabs.atlassian.net/browse/RI-4213, https://redislabs.atlassian.net/browse/RI-4302
117-
test('Verify that user can upload tutorial with URL with manifest.json', async t => {
117+
test.after(async() => {
118+
tutorialName = 'Tutorials with manifest';
119+
const tutorials = await workbenchPage.InsightsPanel.setActiveTab(ExploreTabs.Explore);
120+
if(await tutorials.tutorialAccordionButton.withText(tutorialName).exists) {
121+
await tutorials.deleteTutorialByName(tutorialName);
122+
}
123+
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneConfig);
124+
})('Verify that user can upload tutorial with URL with manifest.json', async t => {
118125
const labelFromManifest = 'Working with JSON label';
119126
const link = 'https://drive.google.com/u/2/uc?id=1a45zHZGYYvtKgM83Rff6rfjy1yfWiwHt&export=download';
120127
internalLinkName1 = 'manifest-id';

0 commit comments

Comments
 (0)