mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-04-25 23:37:59 +00:00
20 lines
701 B
JavaScript
20 lines
701 B
JavaScript
import { When, Then } from "cypress-cucumber-preprocessor/steps";
|
|
|
|
Then("the search should not contain posts by the annoying user", () => {
|
|
cy.get(".searchable-input .ds-select-dropdown").should($li => {
|
|
expect($li).to.have.length(1);
|
|
})
|
|
cy.get(".ds-select-dropdown")
|
|
.should("not.have.class", '.search-post')
|
|
.should("not.contain", 'Spam')
|
|
});
|
|
|
|
Then("the search should contain the annoying user", () => {
|
|
cy.get(".searchable-input .ds-select-dropdown").should($li => {
|
|
expect($li).to.have.length(1);
|
|
})
|
|
cy.get(".ds-select-dropdown .user-teaser .slug").should("contain", '@spammy-spammer');
|
|
cy.get(".searchable-input .ds-select input")
|
|
.focus()
|
|
.type("{esc}");
|
|
}) |