-
WSL: Mixed topics
Starting and shutting down of WSL Starting To start the WSL just start the Ubuntu app from your windows system: Shutting down To shut down the WSL service execute the following command in a Windows console: wsl –shutdown Exchanging files between Windows host and WSL system Accessing Host’s Windows files from inside WSL Change to…
-
Cypress: Running selected tests only
Overview When you start a Cypress run, normally you have to wait quite a time until all your tests run through. You might have multiple Cypress scripts and each of them might have multiple tests. So you might want to have more control over which tests are supposed to be included in a Cypress run.…
-
GIT: Mixed Topics
GIT Installation Linux: $ sudo apt update $ sudo apt install git Windows: Go to GIT’s official page https://git-scm.com, and download and install the GIT client. This will install GIT with its own terminal. You run the GIT commands inside that special git terminal. This download will also install a simple graphical UI for GIT…
-
VS Code: Some practical notes and tips
General Configuration Setting the Display Language To set the display language press [Ctrl][Shift][P] and then enter “display”: Select the [Configure Display Language] option and then choose your desired language. Editing Settings Configuring the tab size (indentation) For Windows version: Open [File\Preferences\Settings]: In the appearing search box enter “Indentation” to filter for related settings. It’s possible…
-
WordPress: Mixed topics
Default admin password After you freshly installed your WordPress page you have to change that password by login with the password provided by your hosting provider and selecting the menu option [Users] then choosing the [Edit Profile] option on the top right and then clicking on [Set New Password]: User Management In WordPress there are…
-
Cypress: Mixed Topics
How to access the parameter passed in an open window event $Tag.Cypress.Stubbing.OpenWindowEvent.AccessingPassedParameter The following code shows how we can not only detect when a click would open a window but also access the parameter which was passed to the method that opens the window: Implicit & Explicit Assertions Implicit Assertions Explicit Assertions $Tag.Cypress.Assertions.Explicit Many assertions…
-
Cypress: Some Errors
Error “Blocked a frame with origin … from accessing a cross-origin frame” Problem We the following cypress script: If we execute this test we get the following error: Blocked a frame with origin “http://localhost:3000” from accessing a cross-origin frame Cause The error “Blocked a frame with origin “…” from accessing a cross-origin frame” is issued…
-
WordPress: Customizing the Twenty Twenty-two theme
Overview To customize a theme it is recommended first to create a child theme of that theme and then customize the child theme. See the following article for more info on this: https://developer.wordpress.org/themes/advanced-topics/child-themes/ The basic idea is that it is better to have changes done on a child theme instead of the original theme because…
-
Cypress: Viewport
The viewport of a web page is the area of the web page visible to the user. That the web page and the parts of it visible to the user at once are not always the same is something which has become more important ever since the same web page can be visited by devices…
-
Cypress: Waiting
Cypress comes with a built-in functionality that makes it retry every command several times before it times out (with a default time out of 4000ms). Because of this built-in functionality, Cypress is capable to wait by itself until a desired state is reached (e.g. a button becomes enabled). To see this behavior we can prepare…