botbuilder-js/testing/browser-functional
Joel Mut 2bdedaae10
bump: [#4684] Upgrade Nighwatch (#4768)
* Upgrade Nighwatch

* Add Microsoft header

* Fix yarn.lock
2024-10-30 08:48:20 -05:00
..
browser-echo-bot
nightwatch bump: [#4684] Upgrade Nighwatch (#4768) 2024-10-30 08:48:20 -05:00
.env
.gitignore
README.md
browser-tests-build-ci.yml bump: [#4684] Upgrade Nighwatch (#4768) 2024-10-30 08:48:20 -05:00
package.json bump: [#4684] Upgrade Nighwatch (#4768) 2024-10-30 08:48:20 -05:00

README.md

Description

The library browser-functional-tests is a suite of tests running with Nightwatch and Selenium to check the compatibility of a bot using libraries from BotBuilder-JS with different browsers.

Run the test locally

Note: The tests are configured to run in two-terminals, one for the webpack-dev-server which runs the bot, another for running the tests.

  1. In the botbuilder-js root directory, open a terminal and run yarn

  2. Go to testing/browser-functional/browser-echo-bot, open a terminal and run the following commands:

    • yarn
    • yarn start This command will start the browser bot using webpack-dev-server.
  3. In the botbuilder-js root directory, open a new terminal and run the following commands:

    • yarn browser-functional-test $browser where $browser is chrome or firefox

Azure Build Pipeline Configuration

The next steps will guide you thought the configuration of a Build pipeline based on YAML file.

Prerequisites

  • Azure DevOps organization. You can find documentation here.
  • Azure subscription. Required to create and delete Azure resources.

Step by step

  1. Create a pipeline using the classic editor, this options allows to us select the YAML file to configure the pipeline. image

  2. Configure the repository and branch. image

  3. In the section Configuration as code select YAML image

  4. In the section YAML, write the build name, select the build YAML file. image

  5. In the Section Variables, Add a variable to save the azure subscription value. image

Variable: AzureSubscription = "YOUR_AZ_SUBSCRIPTION"

  1. Save and queue.