mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-13 22:42:38 -05:00
20 lines
479 B
TypeScript
20 lines
479 B
TypeScript
/// <reference types="cypress" />
|
|
|
|
context("Actions", () => {
|
|
// beforeEach(() => {
|
|
// cy.visit('/plus/history')
|
|
// })
|
|
|
|
it("show 404 if invalid route ([[...slug]])", () => {
|
|
cy.visit("/plus/history/asd", { failOnStatusCode: false });
|
|
cy.contains("Not Found");
|
|
|
|
cy.visit("/plus/history/1/2000/1", { failOnStatusCode: false });
|
|
cy.contains("Not Found");
|
|
});
|
|
|
|
it("correctly calculates voting percentage", () => {
|
|
getPercentageFromCounts;
|
|
});
|
|
});
|