diff --git a/package.json b/package.json index 72dc159e..f5bb4ccf 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "packages/bruno-testbench" ], "devDependencies": { + "@faker-js/faker": "^7.6.0", "@playwright/test": "^1.27.1", "jest": "^29.2.0", "randomstring": "^1.2.2" diff --git a/tests/home.spec.js b/tests/home.spec.js index de85ae11..b26f3358 100644 --- a/tests/home.spec.js +++ b/tests/home.spec.js @@ -1,4 +1,5 @@ const { test, expect } = require('@playwright/test'); +const { faker } = require('@faker-js/faker'); const { HomePage } = require('../tests/pages/home.page'); test.describe('bruno e2e test', () => { @@ -33,7 +34,7 @@ test.describe('bruno e2e test', () => { }); test('user should be able to create new collection', async () => { - await homePage.createCollection('test'); + await homePage.createCollection(faker.random.words()); await expect(homePage.createCollectionToastSuccess).toBeVisible(); })