Skip to content

Commit

Permalink
Merge pull request #28 from TheNeoStormZ/develop
Browse files Browse the repository at this point in the history
[FIX] Arreglos de tests
  • Loading branch information
TheNeoStormZ authored Jun 30, 2023
2 parents 06eda40 + 31a60d3 commit 951af76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test-auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test('testRegister', async ({ page }) => {
await page.getByLabel('Correo electrónico *').fill('[email protected]');
await page.getByLabel('Contraseña *', { exact: true }).fill('test1234');
await page.getByLabel('Confirmar contraseña *').fill('test1234');
await page.getByRole('button', { name: 'Resgitrarme' }).click();
await page.getByRole('button', { name: 'Registrarme' }).click();
});

test('testRegisterNegative', async ({ page }) => {
Expand All @@ -19,7 +19,7 @@ test('testRegisterNegative', async ({ page }) => {
await page.getByLabel('Correo electrónico *').fill('[email protected]');
await page.getByLabel('Contraseña *', { exact: true }).fill('test1234');
await page.getByLabel('Confirmar contraseña *').fill('test1234');
await page.getByRole('button', { name: 'Resgitrarme' }).click();
await page.getByRole('button', { name: 'Registrarme' }).click();
await expect(page.getByRole('alert')).toHaveText("Los datos son incorrectos");
});

Expand Down
4 changes: 4 additions & 0 deletions tests/test-extras.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ test('testRelationshipsCharacterAddAndGraph', async ({ page }) => {

await page.getByRole('option', { name: 'Sin clasificar' }).getByRole('checkbox').click();

await page.locator('#menu- > .MuiBackdrop-root').click();

await expect(page.getByRole('button', { name: 'Rndom' }).first()).toBeVisible();

});
Expand Down Expand Up @@ -431,6 +433,8 @@ test('testRelationshipsCharacterAddAndGraph', async ({ page }) => {
await page.getByRole('button', { name: 'Filtrar ​' }).click();

await page.getByRole('option', { name: 'Misterio' }).getByRole('checkbox').click();

await page.locator('#menu- > .MuiBackdrop-root').click();

await expect(page.getByRole('button', { name: 'Las epicas aventuras de Sherlock Holmes Sherlock se embarca en una aventura sin precedentes, a la cual deberá enfrentar con todos los medios a su disposición.' }).first()).toBeVisible();

Expand Down

0 comments on commit 951af76

Please sign in to comment.