chore(#197): ran prettier on tests folder

This commit is contained in:
Anoop M D 2023-09-22 00:45:42 +05:30
parent bd0738198c
commit 4531cfc994
3 changed files with 5 additions and 6 deletions

View File

@ -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();
});
});

View File

@ -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();
}
}
};

View File

@ -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();
export let randomUrl = faker.internet.url();