Skip to content

Commit d2bcfa2

Browse files
committed
Updated the test by removing logs
1 parent 652ae18 commit d2bcfa2

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

e2e-tests/test-app-create_collection.spec.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,43 +19,25 @@ test('Create Collection', async ({ page }) => {
1919
const collectionName = generateRandomCollectionName();
2020
// ------------code from playwright------------ //
2121
await page.getByRole('img').first().click();
22-
console.log('clicked on the sidebar menu icon');
2322
await page.locator('#tippy-2').getByText('Create Collection').click();
24-
console.log('clicked on the create collection');
2523
await page.getByLabel('Name').click();
2624
await page.getByLabel('Name').fill(collectionName);
27-
console.log('filled the collection name');
2825
await page.getByLabel('Name').press('Tab');
29-
console.log('pressed tab');
3026
await page.getByLabel('Location').fill(await collection_location);
3127
await page.getByRole('button', { name: 'Create', exact: true }).click();
32-
console.log('clicked on the create button');
28+
3329
//await page.pause();
34-
await page.waitForTimeout(1000);
3530
await expect(page.getByText(collectionName)).toBeVisible();
36-
console.log('collection verified successfully');
37-
await page.waitForTimeout(1000);
3831

3932
// duplicate collection creation to verify the error.
4033
await page.getByRole('img').first().click();
41-
console.log('clicked on the sidebar menu icon');
4234
await page.locator('#tippy-2').getByText('Create Collection').click();
43-
console.log('clicked on the create collection');
4435
await page.getByLabel('Name').click();
4536
await page.getByLabel('Name').fill(collectionName);
46-
console.log('filled the collection name');
4737
await page.getByLabel('Name').press('Tab');
48-
console.log('pressed tab');
4938
await page.getByLabel('Location').fill(collection_location);
5039
await page.getByRole('button', { name: 'Create', exact: true }).click();
51-
console.log('clicked on the create button');
52-
console.log('log message');
53-
console.error('error message');
54-
55-
//await page.pause();
56-
await page.waitForTimeout(500);
5740
await expect(page.getByText('An error occurred while')).toBeVisible();
58-
console.log('collection already exists error verified successfully');
5941

6042
execSync(`rm -rf ${collection_location}/${collectionName}`);
6143
});

0 commit comments

Comments
 (0)