Skip to content

Commit 384728f

Browse files
committed
Fix selectors
1 parent 41970ef commit 384728f

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

client/tests/e2e/TestQueue.e2e.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ describe('Test Queue tester traits when reports exist', () => {
486486
await getPage({ role: 'tester', url: '/test-queue' }, async page => {
487487
const alertSectionHeaderSelector = 'h2 ::-p-text(Alert Example)';
488488
const alertSectionContainerSelector =
489-
'div#disclosure-btn-controls-alert-0';
489+
'div#disclosure-btn-controls-apg\\/alert-0';
490490
const modalDialogSectionHeaderSelector =
491491
'h2 ::-p-text(Modal Dialog Example)';
492492
const modalDialogSectionContainerSelector =

client/tests/e2e/TestRun.e2e.test.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ describe('Test Run when signed in as admin', () => {
113113
const navigateToRunAsTester = async (
114114
page,
115115
{
116-
testPlanSectionButtonSelector = 'button#disclosure-btn-apg/modal-dialog-0',
116+
testPlanSectionButtonSelector = 'button#disclosure-btn-apg\\/modal-dialog-0',
117117
testPlanTableSelector = 'table[aria-label="Reports for Modal Dialog Example V24.06.07 in draft phase"]'
118118
} = {}
119119
) => {
@@ -280,7 +280,7 @@ describe('Test Run when signed in as tester', () => {
280280
const assignSelfAndNavigateToRun = async (
281281
page,
282282
{
283-
testPlanSectionButtonSelector = 'button#disclosure-btn-apg/modal-dialog-0',
283+
testPlanSectionButtonSelector = 'button#disclosure-btn-apg\\/modal-dialog-0',
284284
testPlanTableSelector = 'table[aria-label="Reports for Modal Dialog Example V24.06.07 in draft phase"]'
285285
} = {}
286286
) => {
@@ -339,7 +339,7 @@ describe('Test Run when signed in as tester', () => {
339339
const navigateToRunAsAnotherTester = async (
340340
page,
341341
{
342-
testPlanSectionButtonSelector = 'button#disclosure-btn-apg/modal-dialog-0',
342+
testPlanSectionButtonSelector = 'button#disclosure-btn-apg\\/modal-dialog-0',
343343
testPlanTableSelector = 'table[aria-label="Reports for Modal Dialog Example V24.06.07 in draft phase"]'
344344
} = {}
345345
) => {
@@ -627,7 +627,7 @@ describe('Test Run when signed in as tester', () => {
627627
};
628628
await getPage({ role: 'tester', url: '/test-queue' }, async page => {
629629
await assignSelfAndNavigateToRun(page, {
630-
testPlanSectionButtonSelector: 'button#disclosure-btn-apg/alert-0',
630+
testPlanSectionButtonSelector: 'button#disclosure-btn-apg\\/alert-0',
631631
testPlanTableSelector:
632632
'table[aria-label="Reports for Alert Example V22.04.14 in draft phase"]'
633633
});
@@ -691,7 +691,7 @@ describe('Test Run when signed in as tester', () => {
691691
};
692692
await getPage({ role: 'tester', url: '/test-queue' }, async page => {
693693
await assignSelfAndNavigateToRun(page, {
694-
testPlanSectionButtonSelector: 'button#disclosure-btn-apg/alert-0',
694+
testPlanSectionButtonSelector: 'button#disclosure-btn-apg\\/alert-0',
695695
testPlanTableSelector:
696696
'table[aria-label="Reports for Alert Example V22.04.14 in draft phase"]'
697697
});
@@ -828,7 +828,8 @@ describe('Test Run when signed in as tester', () => {
828828
it('enforces read-only and shows on-hold modal when report is On hold', async () => {
829829
// Ensure the report is On hold as admin first, then switch to tester in same page
830830
await getPage({ role: 'admin', url: '/test-queue' }, async page => {
831-
const sectionButtonSelector = 'button#disclosure-btn-apg/modal-dialog-0';
831+
const sectionButtonSelector =
832+
'button#disclosure-btn-apg\\/modal-dialog-0';
832833
const tableSelector =
833834
'table[aria-label="Reports for Modal Dialog Example V24.06.07 in draft phase"]';
834835

0 commit comments

Comments
 (0)