Skip to content

Commit

Permalink
Create product from OpenFoodFacts works (#202)
Browse files Browse the repository at this point in the history
* npm update 0

* Added e2e test and Create works

* Create works
  • Loading branch information
turulomio authored Aug 27, 2024
1 parent 5b49397 commit 6cb8910
Show file tree
Hide file tree
Showing 6 changed files with 346 additions and 323 deletions.
24 changes: 24 additions & 0 deletions cypress/e2e/products_off.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { login_test_User, add_product_from_products_vue } from "./commons"
describe('e2e Products Off', () => {
it('Products Off', () => {

login_test_User(cy)

//Select menu products
cy.getDataTest('lateral_icon').click()
cy.getDataTest('lateral_products').click()


cy.get('h1 > .v-btn').last().click()
cy.getDataTest('MyMenuInline_Header2_Item0').click()
cy.getDataTest("OpenFoodFactsSearch_Search").type("Comino molido carrefour{enter}", {timeout:30000})
cy.getDataTest('OpenFoodFactsSearch_Table_ButtonAddProduct8431876265828').click()
cy.getDataTest('ProductsCRUD_FoodTypes').type("Spices{downArrow}{enter}")
cy.getDataTest('ProductsCRUD_ButtonAdd').click()

})



})

Loading

0 comments on commit 6cb8910

Please sign in to comment.