@@ -4,7 +4,7 @@ require('dotenv').config()
4
4
5
5
const url = 'https://www.saucedemo.com/'
6
6
7
- test . only ( 'Purchase article' , async ( { page } ) => {
7
+ test ( 'Purchase article' , async ( { page } ) => {
8
8
await ai ( 'go to this page https://www.saucedemo.com/' , { page, test } )
9
9
await ai ( 'insert username as standard_user' , { page, test } )
10
10
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 }) => {
48
48
49
49
} ) ;
50
50
51
- test ( 'Spanish login' , async ( { page } ) => {
51
+ test . only ( 'Spanish login' , async ( { page } ) => {
52
52
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
+
55
57
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 } )
57
59
await page . pause ( )
58
60
61
+ var numArticles = await ai ( 'cuantos elementos hay agregados al carrito?' , { page, test } )
62
+ console . log ( numArticles )
63
+ expect ( numArticles ) . toEqual ( '3' )
64
+
59
65
} ) ;
60
66
0 commit comments