New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build tests container #11549

Merged
merged 1 commit into from Nov 28, 2018

Conversation

Projects
None yet
3 participants
@PierreRambaud
Copy link
Contributor

PierreRambaud commented Nov 28, 2018

Questions Answers
Branch? develop
Description? Remove unwanted cache & files before installing PrestaShop
Type? bug fix
Category? TE
BC breaks? no
Deprecations? no
How to test? Follow DOCKER.md in tests/E2E.

This change is Reviewable

Unable to build container
Remove unwanted cache & files before installing PrestaShop

@PierreRambaud PierreRambaud added this to the 1.7.6.0 milestone Nov 28, 2018

@Quetzacoalt91

This comment has been minimized.

Copy link
Member

Quetzacoalt91 commented Nov 28, 2018

docker-compose exec tests bash /tmp/run-tests.sh
npm WARN lifecycle END2END@1.0.0~install: cannot run in wd END2END@1.0.0 node_modules/selenium-standalone/bin/selenium-standalone install (wd=/var/www/html/tests/E2E)
added 65 packages from 43 contributors, removed 83 packages, updated 95 packages and audited 5166 packages in 17.964s
found 39 vulnerabilities (12 low, 18 moderate, 8 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details


   ╭───────────────────────────────────────────────────────────────╮
   │                                                               │
   │      New minor version of npm available! 6.3.0 -> 6.4.1       │
   │   Changelog: https://github.com/npm/cli/releases/tag/v6.4.1   │
   │               Run npm install -g npm to update!               │
   │                                                               │
   ╰───────────────────────────────────────────────────────────────╯

npm run test -- --URL=prestashop-web --HEADLESS --SELENIUM_HOST=selenium-chrome

> END2END@1.0.0 test /var/www/html/tests/E2E
> node_modules/mocha/bin/mocha test/campaigns/regular/* "--URL=prestashop-web" "--HEADLESS" "--SELENIUM_HOST=selenium-chrome"



  Create "Product"
    Login in the Back Office
      ✓ should open the browser
      ✓ should login successfully in the Back Office (26830ms)
    Close the onboarding modal if exist 
      ✓ should close the onboarding modal if exist
    Create a new product in the Back Office
      ✓ should go to "Products" page
      ✓ should click on "New Product" button
      ✓ should set the "Name" input
      ✓ should set the "Reference" input
      ✓ should set the "Quantity" input
      ✓ should set the "Price" input
      ✓ should upload the first product picture
      Save the created product
        ✓ should switch the product online
        ✓ should verify the appearance of the green validation
        ✓ should click on "Save" button
        ✓ should verify the appearance of the green validation
    Check the product creation in the Back Office
      ✓ should go to "Catalog" page
      ✓ should search for product by name
      ✓ should check the existence of product name
      ✓ should check the existence of product reference
      ✓ should check the existence of product category
      ✓ should check the existence of product price TE
      ✓ should check the existence of product quantity
      ✓ should check the existence of product status
      ✓ should click on "Reset button"
    Logout from the Back Office
      ✓ should logout successfully from the Back Office

  Check the created product in the Front Office
    Login in the Front Office
      ✓ should open the browser
      ✓ should login successfully in the Front Office
    Check that the created product is well displayed in the Front Office
      ✓ should set the shop language to "English"
      ✓ should search for the product
      ✓ should go to the product page
      ✓ should check that the product name is equal to "DRESS1543428554350"
      ✓ should check that the product price is equal to "€6.00"
      ✓ should check that the product reference is equal to "robe"
      ✓ should check that the product quantity is equal to "10"
    Logout from the Front Office
      ✓ should logout successfully from the Front Office

  Create order in the Front Office
    Open the browser and connect to the Front Office
      ✓ should open the browser
      ✓ should login successfully in the Front Office
    Create order in the Front Office
      Create order in the Front Office
        ✓ should set the language of shop to "English"
        ✓ should go to the first product page
        ✓ should select product "size M" 
        ✓ should select product "color Black"
        ✓ should set the product "quantity"
        ✓ should click on "Add to cart" button  
        ✓ should click on proceed to checkout button 1
        ✓ should click on proceed to checkout button 2
        ✓ should click on confirm address button
        Choose "SHIPPING METHOD"
          ✓ should choose shipping method my carrier
          ✓ should create message
          ✓ should click on "confirm delivery" button
        Choose "PAYMENT" method
          ✓ should set the payment type "Payment by bank wire"
          ✓ should set "the condition to approve"
          ✓ should click on order with an obligation to pay button
          ✓ should check the order confirmation
    Logout from the Front Office
      ✓ should logout successfully from the Front Office

  Check the created order in the Back Office
    Open the browser and connect to the Back Office
      ✓ should open the browser
      ✓ should login successfully in the Back Office
    Check the created order in the Back Office
      ✓ should go to "Orders" page
      ✓ should search the order created by reference
      ✓ should go to search order
      ✓ should go to the order 
      ✓ should check the customer name 
      ✓ should status be equal to Awaiting bank wire payment 
      ✓ should check the shipping price
      ✓ should check the product
      ✓ should check the order message 
      ✓ should check the total price
      ✓ should check basic product price
      ✓ should check shipping method 

  Create a customer account in the Front Office
    ✓ should open the browser
    ✓ should access to the Front Office
    ✓ should change the Front Office language to "English"
    ✓ should click on the "Sign in" link
    ✓ should click on "No account? Create one here" link
    ✓ should choose a "Social title" option
    ✓ should set the "First name" input
    ✓ should set the "Last name" input
    ✓ should set the "Email" input
    ✓ should set the "Password" input
    ✓ should click on "Save" button

  Check the creation of customer account
    ✓ should "Sign out"
    ✓ should change the Front Office language to "English"
    ✓ should login successfully with the created account
    ✓ should set the "Email" input
    ✓ should set the "Password" input
    ✓ should click on "SIGN IN" button

  Create "Address"
    ✓ should click on "ADD FIRST ADDRESS" button
    ✓ should set the "Address" input
    ✓ should set the "Zip/Postal Code" input
    ✓ should set the "City" input
    ✓ should click on "SAVE" button
    ✓ should check that the success alert message is well displayed

  Check the creation of the address
    ✓ should click on "update" link
    ✓ should check that the "First name" of customer is equal to "John"
    ✓ should check that the "Last name" of customer is equal to "Doe"
    ✓ should check that the "Address" of customer is equal to "16, Main street"
    ✓ should check that the "Zip/Postal Code" of customer is equal to "75002"
    ✓ should check that the "City" of customer is equal to "Paris"
    ✓ should go back to the home page
    ✓ should logout successfully from the Front Office


  98 passing (2m)

@Quetzacoalt91 Quetzacoalt91 merged commit abdb5b0 into PrestaShop:develop Nov 28, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@Quetzacoalt91

This comment has been minimized.

Copy link
Member

Quetzacoalt91 commented Nov 28, 2018

Thank you @PierreRambaud

@PierreRambaud PierreRambaud deleted the PierreRambaud:fix-docker-compose-e2e branch Nov 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment