blob: b1d56136ea5cd04eec2bf365154ef6a1ff546899 [file]
:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
= E2E Notes
== Installation
* in `src/test/e2e`
* per link:https://basarat.gitbook.io/typescript/intro-1/cypress[this blog post] and also link:https://docs.cypress.io/guides/getting-started/installing-cypress.html[Cypress getting started docs]:
+
[source,bash]
----
mkdir e2e
cd e2e
npm init -y
npm install cypress typescript
npx tsc --init --types cypress --lib dom,es6
echo {} > cypress.json
----
* add some scripts to the `e2e/package.json` file:
+
[source,json]
----
"scripts": {
"cypress:open": "cypress open",
"cypress:run": "cypress run"
},
----
* run for the first time (creates scaffolding):
+
[source,bash]
----
npm run cypress:open
----
* moved the scaffolding to `cypress-scaffolding` for reference
+
NOTE: it uses JavaScript rather than TypeScript.
== Tab support (plugin)
* as per link:https://github.com/Bkucera/cypress-plugin-tab[Bkucera/cypress-plugin-tab]:
+
[source,bash]
----
npm install -D cypress-plugin-tab
----