Skip to content

Commit

Permalink
Add step to check for a message is visible on preview table.
Browse files Browse the repository at this point in the history
  • Loading branch information
cvacalares committed Aug 19, 2024
1 parent 373f1d2 commit 1d78680
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/features/BI-2164.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Background: Create a new list referencing existing GIDs
When user sets "GermplasmSort" in List Name field of import page
When user sets "GermplasmSort" in List Description field of import page
And user selects "Confirm" button
And user pause for "5" seconds
And user close notification pop-up
When user logs out

@BI-2164
Expand All @@ -25,4 +27,8 @@ Background: Create a new list referencing existing GIDs
And user selects 'Import' button
When user sets "GermplasmSort2" in List Name field of import page
When user sets "GermplasmSort2" in List Description field of import page
# And user selects "Confirm" button
Then user can see "Duplicate names detected and are highlighted in yellow" on preview table
And user selects "Confirm" button
And user pause for "5" seconds
When user selects "Germplasm" in navigation
Then user can see row "10" rows in a table
4 changes: 4 additions & 0 deletions src/step_definitions/importSteps.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,4 +348,8 @@ When('user sets {string} in Project Name field of import page', async function(s
await importPage.setValue("@projectNameField", s);
})

Then('user can see {string} on preview table', async function(s) {
await importPage.assert.visible({selector:`//*[contains(text(), "${s}")]`, locateStrategy:"xpath"});
})


0 comments on commit 1d78680

Please sign in to comment.