Skip to content

Commit 09ade8e

Browse files
author
Marco Segreto
committed
Attempt to fix cypress test
1 parent 8bcb24a commit 09ade8e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

app/javascript/ui/roles/RolesAdd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ class RolesAdd extends React.Component {
484484
</Row>
485485
<FormActionsContainer style={{ paddingBottom: '0' }}>
486486
<Button
487+
data-cy="Button"
487488
onClick={this.confirmSave}
488489
disabled={this.selectedUsers.length === 0}
489490
>

cypress/support/step_definitions/when.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ When('I choose a link item from the submission box', () => {
6161
// Sharing collections
6262
// ----------------------
6363
When('I click the form add button in the collection sharing modal', () => {
64-
cy.locateDataOrClass('.FormButton').click({ force: true })
64+
cy.locate('Button').click({ force: true })
6565
cy.wait('@apiInviteUserToCollection')
6666
cy.wait('@apiSearchUsersAndGroups')
6767
cy.wait('@apiSearchUsersAndGroups')
@@ -86,7 +86,7 @@ When('I click a sample group', () => {
8686
})
8787

8888
When('I click the form add button in the group sharing modal', () => {
89-
cy.locateDataOrClass('.FormButton').click({ force: true })
89+
cy.locate('Button').click({ force: true })
9090
cy.wait('@apiInviteUserToGroup')
9191
cy.wait('@apiSearchUsersAndGroups')
9292
cy.wait('@apiSearchUsersAndGroups')

styleguide.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ module.exports = {
6262
{
6363
rel: 'stylesheet',
6464
href:
65-
'https://d2yp1lwhqo78df.cloudfront.net/assets/application-e76695f8303afddec6a82969f396f1657d3d42393f6c36d3bbf5f16c3d054ddf.css'
66-
}
67-
]
68-
}
65+
'https://d2yp1lwhqo78df.cloudfront.net/assets/application-e76695f8303afddec6a82969f396f1657d3d42393f6c36d3bbf5f16c3d054ddf.css',
66+
},
67+
],
68+
},
6969
},
7070
serverPort: 8000,
7171
webpackConfig,

0 commit comments

Comments
 (0)