You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mvfront-react/cypress/integration/1-create-election/create-election.spec.ts

24 lines
822 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/// <reference types="cypress" />
describe("signup flow", () => {
beforeEach(() => {
// Cypress starts out with a blank slate for each test
// so we must tell it to visit our website with the `cy.visit()` command.
// Since we want to visit the same URL at the start of all our tests,
// we include it in our beforeEach function so that it runs before each test
cy.visit("/");
});
it("allows to fill an election form", () => {
cy.get('[data-test="question-input"]').type(
"Pour faire gagner lécologie et la justice sociale à lélection présidentielle, jestime que chacune de ces personnalités serait…"
);
cy.screenshot();
cy.get('[data-test="question-input"]').type("{enter}");
cy.url().should("include", "/new?title=");
cy.screenshot();
});
});