mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Sledgehammer cypress flaky tests with force
This commit is contained in:
parent
1d41d6d070
commit
6cd857c731
@ -39,10 +39,10 @@ Given('I am logged in with a {string} role', role => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
When('I click on "Report Post" from the triple dot menu of the post', () => {
|
When('I click on "Report Post" from the content menu of the post', () => {
|
||||||
cy.contains('.ds-card', davidIrvingPostTitle)
|
cy.contains('.ds-card', davidIrvingPostTitle)
|
||||||
.find('.content-menu-trigger')
|
.find('.content-menu-trigger')
|
||||||
.click()
|
.click({force: true})
|
||||||
|
|
||||||
cy.get('.popover .ds-menu-item-link')
|
cy.get('.popover .ds-menu-item-link')
|
||||||
.contains('Report Post')
|
.contains('Report Post')
|
||||||
@ -50,7 +50,7 @@ When('I click on "Report Post" from the triple dot menu of the post', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
When(
|
When(
|
||||||
'I click on "Report User" from the triple dot menu in the user info box',
|
'I click on "Report User" from the content menu in the user info box',
|
||||||
() => {
|
() => {
|
||||||
cy.contains('.ds-card', davidIrvingName)
|
cy.contains('.ds-card', davidIrvingName)
|
||||||
.find('.content-menu-trigger')
|
.find('.content-menu-trigger')
|
||||||
|
|||||||
@ -15,7 +15,7 @@ Feature: Report and Moderate
|
|||||||
Scenario Outline: Report a post from various pages
|
Scenario Outline: Report a post from various pages
|
||||||
Given I am logged in with a "user" role
|
Given I am logged in with a "user" role
|
||||||
When I see David Irving's post on the <Page>
|
When I see David Irving's post on the <Page>
|
||||||
And I click on "Report Post" from the triple dot menu of the post
|
And I click on "Report Post" from the content menu of the post
|
||||||
And I confirm the reporting dialog because it is a criminal act under German law:
|
And I confirm the reporting dialog because it is a criminal act under German law:
|
||||||
"""
|
"""
|
||||||
Do you really want to report the contribution "The Truth about the Holocaust"?
|
Do you really want to report the contribution "The Truth about the Holocaust"?
|
||||||
@ -33,7 +33,7 @@ Feature: Report and Moderate
|
|||||||
Given I am logged in with a "user" role
|
Given I am logged in with a "user" role
|
||||||
And I see David Irving's post on the post page
|
And I see David Irving's post on the post page
|
||||||
When I click on the author
|
When I click on the author
|
||||||
And I click on "Report User" from the triple dot menu in the user info box
|
And I click on "Report User" from the content menu in the user info box
|
||||||
And I confirm the reporting dialog because he is a holocaust denier:
|
And I confirm the reporting dialog because he is a holocaust denier:
|
||||||
"""
|
"""
|
||||||
Do you really want to report the user "David Irving"?
|
Do you really want to report the user "David Irving"?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user