-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue-58: Resilient to localStorage is null (#59)
* Issue-58: Resilient to localStorage is null.
- Loading branch information
1 parent
ea00833
commit 44bd0f8
Showing
5 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Test for Convivial Profiler with no local storage. | ||
|
||
describe('No Local Storage: Test 01', () => { | ||
it('1. Check no error is thrown if the localstorage is disabled.' | ||
, () => { | ||
cy.disableLocalStorage(); | ||
// Open the default page. | ||
cy.visit(Cypress.env('baseUrl')); | ||
cy.window() | ||
.its('console') | ||
.then((console) => { | ||
cy.stub(console, 'error').throws('Console error') | ||
}) | ||
}) | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(function (window, ConvivialProfiler, config) { | ||
window.convivialProfiler = new ConvivialProfiler(config.config, config.site); | ||
window.convivialProfiler = new ConvivialProfiler(config.config, config.site, config.license_key); | ||
window.convivialProfiler.collect(); | ||
})(window, window.ConvivialProfiler.default, drupalSettings.convivialProfiler); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters