Skip to content

Commit

Permalink
criando arquivo de constants e removendo testes de exemplo
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomachadors committed May 14, 2024
1 parent 181d6c6 commit a74eddb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
/playwright-report/
/blob-report/
/playwright/.cache/
.env
19 changes: 0 additions & 19 deletions tests/example.spec.js

This file was deleted.

12 changes: 7 additions & 5 deletions tests/perfil.spec.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
const { test, expect } = require('@playwright/test');
const { PATH } = require('../utils/constants');

test('acessar perfil', async ({ page }) => {
await page.goto('/user/profile?show=profile');
await page.goto(PATH.perfil);

await expect(page).toHaveTitle(/Tem Vaga Mestre/);

await expect(page.getByRole('heading', { name: 'Estilos preferidos' })).toBeVisible();
await expect(
page.getByRole('heading', { name: 'Estilos preferidos' })
).toBeVisible();
await expect(page.getByRole('heading', { name: 'Conquistas' })).toBeVisible();

await page.getByRole('button', { name: 'Ver mais'}).click();
await page.getByRole('button', { name: 'Ver mais' }).click();
});

0 comments on commit a74eddb

Please sign in to comment.