generated from Arquisoft/dede_0
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from Arquisoft/Adrian-nuevo
- Loading branch information
Showing
23 changed files
with
186 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,35 +88,6 @@ defineFeature(feature, test => { | |
}); | ||
}) | ||
|
||
|
||
|
||
test('The user can see the history of orders', ({given,when,then}) => { | ||
|
||
let email:string; | ||
let password:string; | ||
|
||
given('An existing user', () => { | ||
email = "[email protected]" | ||
password = "efren" | ||
}); | ||
|
||
when('I log in and want to check the orders', async () => { | ||
|
||
// Primero hacemos login | ||
await expect(page).toMatch('Iniciar Sesión') | ||
await expect(page).toFill('#email', email); | ||
await expect(page).toFill('#pass', password); | ||
|
||
// Hacemos click en el icono de usuarios y vamos al historial de pedidos | ||
await expect(page2).toClick('#basic-button') | ||
|
||
}); | ||
|
||
then('I can see the orders made in the website', async () => { | ||
await expect(page4).toMatch('orderOneExample') | ||
}); | ||
}) | ||
|
||
afterEach(async ()=>{ | ||
browser.close() | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,8 +66,8 @@ const App: FC = () => { | |
<Route index element = {<Home onAddCart={onAddCart} cartItems = {cartItems}/>}/> | ||
<Route path = 'login' element = {<LogIn/>}/> | ||
<Route path = 'signup' element = {<SignUp/>}/> | ||
<Route path = 'user/profile' element = {<Profile email={"[email protected]"}/>} /> | ||
<Route path = 'user/orderHistory' element = {<OrderHistory email={"[email protected]"}/>} /> | ||
<Route path = 'user/profile' element = {<Profile />} /> | ||
<Route path = 'user/orderHistory' element = {<OrderHistory />} /> | ||
<Route path = 'products' element = {<ListProducts onAddCart={onAddCart} cartItems = {cartItems}/>}/> | ||
<Route path = 'pago' element = {<Pago/>}/> | ||
<Route path= 'help' element = {<HelpPage/>} /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.