diff --git a/tests/home.spec.js b/tests/home.spec.js index 4611db829..6c10905fb 100644 --- a/tests/home.spec.js +++ b/tests/home.spec.js @@ -5,7 +5,7 @@ import * as faker from './utils/data-faker'; test.describe('bruno e2e test', () => { let homePage; - test.beforeEach(async ({ page }) => { + test.beforeEach(async ({ page }) => { homePage = new HomePage(page); await homePage.open(); @@ -45,5 +45,4 @@ test.describe('bruno e2e test', () => { await homePage.updateUser(); await expect(homePage.statusRequestSuccess).toBeVisible(); }); - }); diff --git a/tests/pages/home.page.js b/tests/pages/home.page.js index 5f475fe6b..e9cfa9b30 100644 --- a/tests/pages/home.page.js +++ b/tests/pages/home.page.js @@ -1,7 +1,7 @@ exports.HomePage = class HomePage { constructor(page) { this.page = page; - + // welcome this.createCollectionSelector = page.locator('#create-collection'); this.addCollectionSelector = page.locator('#add-collection'); @@ -22,7 +22,7 @@ exports.HomePage = class HomePage { this.statusRequestSuccess = page.getByText('200 OK'); this.statusRequestNotFound = page.getByText('404 Not Found'); this.statusRequestCreated = page.getByText('201 Created'); - + // create collection this.collectionNameField = page.locator('#collection-name'); this.submitButton = page.locator(`button[type='submit']`); @@ -83,4 +83,4 @@ exports.HomePage = class HomePage { await this.submitButton.click(); await this.sendRequestButton.click(); } -} +}; diff --git a/tests/utils/data-faker.js b/tests/utils/data-faker.js index 47183065e..2674b6244 100644 --- a/tests/utils/data-faker.js +++ b/tests/utils/data-faker.js @@ -3,4 +3,4 @@ const { faker } = require('@faker-js/faker'); export let randomWords = faker.random.words(); export let randomVerb = faker.hacker.verb(); export let randomHttpMethod = faker.internet.httpMethod(); -export let randomUrl = faker.internet.url(); \ No newline at end of file +export let randomUrl = faker.internet.url();