You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Once the plugins are added you can install them
51
-
`asdf install` This will install the versions as described in .tool-versions
52
-
53
-
Now you can run `make install` to install the virtualenv and packages. You may need to run `poetry shell` to activate the poetry shell, followed by `make install-playwright` to install the playwright tools. To check if these are installed properly, run `playwright codegen` and check that you see a browser window pop up.
61
+
You can now run the `make install-asdf` command
62
+
* next, run `make install` to install the virtualenv and packages. You may need to run `poetry shell` to activate the poetry shell, followed by `make install-playwright` to install the playwright tools. To check if these are installed properly, run `playwright codegen` and check that you see a browser window pop up.
54
63
55
64
## Developing/Debugging Tests
56
65
@@ -73,10 +82,11 @@ Make sure that your behave run configuration includes the `--product=` & `--env=
73
82
Run the tests by calling the Make command `make run-tests`. This requires the parameters `product=` and `env=` to be passed in.
74
83
Optionally, you can pass in tags to be run, for example `tags=cpt-ui` will run all CPT-UI-tagged tests.
75
84
Further, if you want to actually see the tests being executed, you can pass a `HEADLESS=true` to the makefile.
85
+
If you want to throttle the speed that the tests are done, you can insert a delay between each action by passing the `SLOWMO=<delay, ms>` environment variable. This lets a human keep track of what steps are being done.
76
86
77
87
For example:
78
88
```
79
-
product=cpts-ui env=internal-dev PULL_REQUEST_ID=pr-300 tags=cpt-ui HEADLESS=true make run-tests
89
+
product=cpts-ui env=internal-dev PULL_REQUEST_ID=pr-300 tags=login HEADLESS=false SLOWMO=2000 make run-tests
80
90
```
81
91
82
92
Note that CPT-UI supports localhost testing. To do this, use the `env=localhost` variable - but ensure you have *not* set the `PULL_REQUEST_ID` variable, as it is not needed and will break the tests. Make sure your localhost server is running!
@@ -100,7 +110,7 @@ Change the `env` variable accordingly to either `INT` or `INTERNAL-DEV`.
100
110
If you wish to test a different product i.e. `PFP-APIGEE` then you must change `product=` and `--tags` respectively.
101
111
102
112
### Method 5:
103
-
Run the tests by pushing changes to github in a pull request and running the regression tests job.
113
+
Run the tests by pushing changes to GitHub in a pull request and running the regression tests job.
0 commit comments