Skip to content

Commit a3189aa

Browse files
wp
1 parent 1743671 commit a3189aa

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

tests/example.spec.ts

+11-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require('dotenv').config()
44

55
const url = 'https://www.saucedemo.com/'
66

7-
test.only('Purchase article', async ({ page }) => {
7+
test('Purchase article', async ({ page }) => {
88
await ai('go to this page https://www.saucedemo.com/', { page, test })
99
await ai('insert username as standard_user', { page, test })
1010
await ai('insert password as secret_sauce in the password field', { page, test })
@@ -48,13 +48,19 @@ test('Purchace article not complete info', async ({ page }) => {
4848

4949
});
5050

51-
test('Spanish login', async ({ page }) => {
51+
test.only('Spanish login', async ({ page }) => {
5252
await ai('visita la pagina https://www.saucedemo.com/', { page, test })
53-
await ai('inserta username standard_user', { page, test })
54-
await ai('inserta password secret_sauce in the password field', { page, test })
53+
await ai('inserta nombre de usuario standard_user', { page, test })
54+
await ai('inserta contraseña secret_sauce', { page, test })
55+
await page.pause()
56+
5557
await ai('clic en el boton login', { page, test })
56-
await ai('agrega dos articulos', { page, test })
58+
await ai('agrega 3 articulos al carrito', { page, test })
5759
await page.pause()
5860

61+
var numArticles = await ai('cuantos elementos hay agregados al carrito?', { page, test })
62+
console.log(numArticles)
63+
expect(numArticles).toEqual('3')
64+
5965
});
6066

0 commit comments

Comments
 (0)