From 2227228469431b5aa5577cf3a1d240bd99007551 Mon Sep 17 00:00:00 2001 From: Russ Poetker Date: Wed, 14 May 2025 16:39:01 -0400 Subject: [PATCH] Change basics next selector invocation --- tests/page_model/SubmissionBasic.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/page_model/SubmissionBasic.js b/tests/page_model/SubmissionBasic.js index 9b0c1c9..fbee213 100644 --- a/tests/page_model/SubmissionBasic.js +++ b/tests/page_model/SubmissionBasic.js @@ -25,7 +25,6 @@ class SubmissionBasic { ); this.journalSelectTrigger = Selector('div.ember-basic-dropdown-trigger'); this.journalSelectInput = Selector('input.ember-power-select-search-input'); - this.goToGrantsButton = Selector('.btn.btn-primary.pull-right.next'); } async inputDoi(doi) { @@ -84,8 +83,11 @@ class SubmissionBasic { } async clickNextToGrants() { - await t.expect(this.goToGrantsButton.exists).ok(); - await t.click(this.goToGrantsButton); + const goToGrantsButton = Selector('button').withAttribute( + 'data-test-workflow-basics-next' + ); + await t.expect(goToGrantsButton.exists).ok(); + await t.click(goToGrantsButton, { speed: 0.5 }); await t .expect(currLocation()) .eql(`${PASS_BASE_URL}/app/submissions/new/grants`);