mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 08:34:15 +01:00
chore(#197): ran prettier on tests folder
This commit is contained in:
parent
bd0738198c
commit
4531cfc994
@ -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();
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user