Current location - test subject

Current location test subject represents the current URL address of the application.


Usage

With the current location test subject you can make assertions against the URL of the current application page.

In Test Editor:

Current location - location equal to Suitest docs
Current location - location equal to Suitest docs

In the Suitest JavaScript API use the location subject:

await suitest.assert.location().equals('https://suite.st/');

If you use Suitestify, your app will run under a random URL during the test. However, the assertions on Current Location are still made on the original URL.