cool tests!!!

This commit is contained in:
counterweight 2025-02-26 23:56:14 +01:00
parent 3ac7425824
commit c1161e3a66
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 82 additions and 10 deletions

View file

@ -1,4 +1,4 @@
import { test } from '@playwright/test';
const { test, expect } = require('@playwright/test');
const SessionCreated = require('../src/models/SessionCreated');
const SessionRelatedToPublickey = require('../src/models/SessionRelatedToPublickey');
@ -9,7 +9,7 @@ const hardcodedSessionUuid = '0195423c-33d7-75f8-921b-a06e6d3cb8c5';
const hardcodedPublicKey =
'd3d4c49e7bdbbbf3082151add080e92f9a458d5dec993b371fe6d02cd394d57a';
test.beforeEach(async ({ context }) => {
test.beforeEach(async () => {
for (const someModel of [
SessionCreated,
SessionRelatedToPublickey,
@ -69,5 +69,4 @@ test.beforeEach(async ({ context }) => {
]);
});
export { test, expect } from '@playwright/test';
export { hardcodedSessionUuid };
module.exports = { test, expect, hardcodedSessionUuid };