Adding end-to-end tests
The first test is testing a tricky cache scenario with the back when testing variables. The end-to-end package used is testcafe.
This commit is contained in:
parent
d8ecae64f0
commit
a82f4e1813
17 changed files with 9243 additions and 5 deletions
5
maps/tests/Variables/Cache/script.js
Normal file
5
maps/tests/Variables/Cache/script.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
WA.onInit().then(async () => {
|
||||
console.log('Trying to set variable "myvar". This should work, even if the cache was busted.');
|
||||
await WA.state.saveVariable('myvar', {'foo': 'bar'});
|
||||
console.log('SUCCESS!');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue