wip
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
|
||||
import type { StepHarness } from '../support/StepHarness';
|
||||
import { createStepHarness } from '../support/StepHarness';
|
||||
import { IRACING_SELECTORS } from 'packages/infrastructure/adapters/automation/dom/IRacingSelectors';
|
||||
|
||||
describe('Step 6 – admins', () => {
|
||||
let harness: StepHarness;
|
||||
@@ -18,8 +19,16 @@ describe('Step 6 – admins', () => {
|
||||
const page = harness.adapter.getPage();
|
||||
expect(page).not.toBeNull();
|
||||
|
||||
const sidebarAdmins = await page!.textContent('#wizard-sidebar-link-set-admins');
|
||||
expect(sidebarAdmins).toContain('Admins');
|
||||
const sidebarAdmins = await page!
|
||||
.locator(IRACING_SELECTORS.wizard.sidebarLinks.admins)
|
||||
.first()
|
||||
.innerText();
|
||||
expect(sidebarAdmins).toMatch(/Admins/i);
|
||||
|
||||
const adminsContainer = page!
|
||||
.locator(IRACING_SELECTORS.wizard.stepContainers.admins)
|
||||
.first();
|
||||
expect(await adminsContainer.count()).toBeGreaterThan(0);
|
||||
|
||||
const result = await harness.executeStep(6, {
|
||||
adminSearch: 'Marc',
|
||||
@@ -42,6 +51,11 @@ describe('Step 6 – admins', () => {
|
||||
const page = harness.adapter.getPage();
|
||||
expect(page).not.toBeNull();
|
||||
|
||||
const adminsContainer = page!
|
||||
.locator(IRACING_SELECTORS.wizard.stepContainers.admins)
|
||||
.first();
|
||||
expect(await adminsContainer.count()).toBeGreaterThan(0);
|
||||
|
||||
const header = await page!.textContent('#set-admins .card-header');
|
||||
expect(header).toContain('Set Admins');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user