mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-18 19:01:24 +00:00
Remove TODOs
This commit is contained in:
parent
7c629ed4f0
commit
a14a819420
@ -11,7 +11,6 @@ When('I navigate to the administration dashboard', () => {
|
||||
})
|
||||
|
||||
Then('I can see a list of categories ordered by post count:', table => {
|
||||
// TODO: match the table in the feature with the html table
|
||||
cy.get('thead')
|
||||
.find('tr th')
|
||||
.should('have.length', 3)
|
||||
@ -24,7 +23,6 @@ Then('I can see a list of categories ordered by post count:', table => {
|
||||
})
|
||||
|
||||
Then('I can see a list of tags ordered by user count:', table => {
|
||||
// TODO: match the table in the feature with the html table
|
||||
cy.get('thead')
|
||||
.find('tr th')
|
||||
.should('have.length', 4)
|
||||
|
||||
@ -111,12 +111,8 @@ Then(`I can't see the moderation menu item`, () => {
|
||||
.should('not.exist')
|
||||
})
|
||||
|
||||
When(/^I confirm the reporting dialog .*:$/, () => {
|
||||
//TODO: take message from method argument
|
||||
//TODO: match the right post
|
||||
const message = 'Do you really want to report the'
|
||||
When(/^I confirm the reporting dialog .*:$/, (message) => {
|
||||
cy.contains(message) // wait for element to become visible
|
||||
//TODO: cy.get('.ds-modal').contains(davidIrvingPostTitle)
|
||||
cy.get('.ds-modal').within(() => {
|
||||
cy.get('button')
|
||||
.contains('Send Report')
|
||||
@ -141,14 +137,12 @@ Given('somebody reported the following posts:', table => {
|
||||
})
|
||||
|
||||
Then('I see all the reported posts including the one from above', () => {
|
||||
//TODO: match the right post
|
||||
cy.get('table tbody').within(() => {
|
||||
cy.contains('tr', davidIrvingPostTitle)
|
||||
})
|
||||
})
|
||||
|
||||
Then('each list item links to the post page', () => {
|
||||
//TODO: match the right post
|
||||
cy.contains(davidIrvingPostTitle).click()
|
||||
cy.location('pathname').should('contain', '/post')
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user