add cookie to fixture
This commit is contained in:
parent
f00a3aa103
commit
c7505f5009
1 changed files with 15 additions and 1 deletions
|
|
@ -1,9 +1,10 @@
|
||||||
const { test, expect } = require('./test-setup');
|
const { test, expect } = require('./test-setup');
|
||||||
|
|
||||||
const SessionRelatedToPublickey = require('../src/models/SessionRelatedToPublickey');
|
const SessionRelatedToPublickey = require('../src/models/SessionRelatedToPublickey');
|
||||||
const NymSet = require('../src/models/NymSet');
|
const NymSet = require('../src/models/NymSet');
|
||||||
const ContactDetailsSet = require('../src/models/ContactDetailsSet');
|
const ContactDetailsSet = require('../src/models/ContactDetailsSet');
|
||||||
|
|
||||||
test('Mock ecords are present', async ({ page }) => {
|
test('Mock records are present', async ({ page }) => {
|
||||||
for (const someModel of [
|
for (const someModel of [
|
||||||
SessionRelatedToPublickey,
|
SessionRelatedToPublickey,
|
||||||
NymSet,
|
NymSet,
|
||||||
|
|
@ -13,6 +14,19 @@ test('Mock ecords are present', async ({ page }) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('Session cookie is there', async ({ page }) => {
|
||||||
|
await page.goto('http://localhost');
|
||||||
|
|
||||||
|
const cookiesInPage = await page.context().cookies();
|
||||||
|
expect(cookiesInPage).toHaveLength(1);
|
||||||
|
expect(cookiesInPage[0].name).toBe('sessionUuid');
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Offers is reachable', async ({ page }) => {
|
||||||
|
await page.goto('http://localhost/offers');
|
||||||
|
console.log(await page.innerHTML('html'));
|
||||||
|
});
|
||||||
|
|
||||||
// Check that UI controls are manageable with a few test cases.
|
// Check that UI controls are manageable with a few test cases.
|
||||||
|
|
||||||
// Check that the offer is created after submitting
|
// Check that the offer is created after submitting
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue