Skip to content
Snippets Groups Projects
Unverified Commit ba723aed authored by Aleksandr Lesnenko's avatar Aleksandr Lesnenko Committed by GitHub
Browse files

Fix `cypress.js` included twice (#23490)

parent 752ab5d6
Branches
Tags
No related merge requests found
Showing
with 43 additions and 44 deletions
import { cypressWaitAll } from "__support__/e2e/cypress";
import { cypressWaitAll } from "__support__/e2e/helpers";
Cypress.Commands.add(
"createDashboardWithQuestions",
......
import { cypressWaitAll } from "__support__/e2e/cypress";
import { cypressWaitAll } from "__support__/e2e/helpers";
Cypress.Commands.add("createTimelineWithEvents", ({ timeline, events }) => {
return cy.createTimeline(timeline).then(({ body: timeline }) => {
......
......@@ -6,30 +6,4 @@ import "@cypress/skip-test/support";
import "@percy/cypress";
import "./commands";
export * from "./helpers/e2e-setup-helpers";
export * from "./helpers/e2e-ui-elements-helpers";
export * from "./helpers/e2e-dashboard-helpers";
export * from "./helpers/e2e-database-metadata-helpers";
export * from "./helpers/e2e-qa-databases-helpers";
export * from "./helpers/e2e-ad-hoc-question-helpers";
export * from "./helpers/e2e-enterprise-helpers";
export * from "./helpers/e2e-mock-app-settings-helpers";
export * from "./helpers/e2e-notebook-helpers";
export * from "./helpers/e2e-assertion-helpers";
export * from "./helpers/e2e-cloud-helpers";
export * from "./helpers/e2e-collection-helpers";
export * from "./helpers/e2e-data-model-helpers";
export * from "./helpers/e2e-misc-helpers";
export * from "./helpers/e2e-email-helpers";
export * from "./helpers/e2e-slack-helpers";
export * from "./helpers/e2e-snowplow-helpers";
export * from "./helpers/e2e-custom-column-helpers";
export * from "./helpers/e2e-dimension-list-helpers";
export * from "./helpers/e2e-downloads-helpers";
export * from "./helpers/e2e-bi-basics-helpers";
export * from "./helpers/e2e-boolean-helpers";
export * from "./helpers/e2e-embedding-helpers";
export * from "./helpers/e2e-permissions-helpers";
export * from "./helpers/e2e-visual-tests-helpers";
Cypress.on("uncaught:exception", (err, runnable) => false);
import { popover } from "__support__/e2e/cypress";
import { popover } from "__support__/e2e/helpers";
/**
* Clicks the "+" icon on the collection page and selects one of the menu options
......
import { popover } from "__support__/e2e/cypress";
import { popover } from "__support__/e2e/helpers";
export function selectSidebarItem(item) {
cy.findAllByRole("menuitem")
......
export * from "./e2e-setup-helpers";
export * from "./e2e-ui-elements-helpers";
export * from "./e2e-dashboard-helpers";
export * from "./e2e-database-metadata-helpers";
export * from "./e2e-qa-databases-helpers";
export * from "./e2e-ad-hoc-question-helpers";
export * from "./e2e-enterprise-helpers";
export * from "./e2e-mock-app-settings-helpers";
export * from "./e2e-notebook-helpers";
export * from "./e2e-assertion-helpers";
export * from "./e2e-cloud-helpers";
export * from "./e2e-collection-helpers";
export * from "./e2e-data-model-helpers";
export * from "./e2e-misc-helpers";
export * from "./e2e-email-helpers";
export * from "./e2e-slack-helpers";
export * from "./e2e-snowplow-helpers";
export * from "./e2e-custom-column-helpers";
export * from "./e2e-dimension-list-helpers";
export * from "./e2e-downloads-helpers";
export * from "./e2e-bi-basics-helpers";
export * from "./e2e-boolean-helpers";
export * from "./e2e-embedding-helpers";
export * from "./e2e-permissions-helpers";
export * from "./e2e-visual-tests-helpers";
......@@ -2,7 +2,7 @@ import {
describeEE,
restore,
visitQuestionAdhoc,
} from "__support__/e2e/cypress";
} from "__support__/e2e/helpers";
import { SAMPLE_DB_ID } from "__support__/e2e/cypress_data";
import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database";
......
import { restore, describeEE } from "__support__/e2e/cypress";
import { restore, describeEE } from "__support__/e2e/helpers";
describeEE("visual tests > admin > fonts", () => {
beforeEach(() => {
......
import { restore } from "__support__/e2e/cypress";
import { restore } from "__support__/e2e/helpers";
describe("visual tests > admin > permissions", () => {
beforeEach(() => {
......
import { restore, navigationSidebar } from "__support__/e2e/cypress";
import { restore, navigationSidebar } from "__support__/e2e/helpers";
import { getSidebarSectionTitle as getSectionTitle } from "__support__/e2e/helpers/e2e-collection-helpers";
describe("Bookmarks in a collection page", () => {
......
import { restore, visitQuestionAdhoc } from "__support__/e2e/cypress";
import { restore, visitQuestionAdhoc } from "__support__/e2e/helpers";
import { SAMPLE_DB_ID } from "__support__/e2e/cypress_data";
import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database";
......
import { restore, visitDashboard } from "__support__/e2e/cypress";
import { restore, visitDashboard } from "__support__/e2e/helpers";
import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database";
const { ORDERS_ID } = SAMPLE_DATABASE;
......
import { restore, visitDashboard } from "__support__/e2e/cypress";
import { restore, visitDashboard } from "__support__/e2e/helpers";
import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database";
const { PRODUCTS, PRODUCTS_ID } = SAMPLE_DATABASE;
......
import { restore, visitDashboard } from "__support__/e2e/cypress";
import { restore, visitDashboard } from "__support__/e2e/helpers";
import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database";
const { PRODUCTS_ID } = SAMPLE_DATABASE;
......
import { restore } from "__support__/e2e/cypress";
import { restore } from "__support__/e2e/helpers";
import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database";
const { ORDERS, ORDERS_ID, PRODUCTS, PRODUCTS_ID } = SAMPLE_DATABASE;
......
import _ from "underscore";
import { restore, popover, startNewQuestion } from "__support__/e2e/cypress";
import { restore, popover, startNewQuestion } from "__support__/e2e/helpers";
describe("visual tests > notebook > major UI elements", () => {
const VIEWPORT_WIDTH = 2500;
......
import { restore } from "__support__/e2e/cypress";
import { restore } from "__support__/e2e/helpers";
describe("visual tests > onboarding > URLs", () => {
beforeEach(() => {
......
......@@ -4,7 +4,7 @@ import {
openEmailPage,
sendSubscriptionsEmail,
visitDashboard,
} from "__support__/e2e/cypress";
} from "__support__/e2e/helpers";
import { USERS, SAMPLE_DB_ID } from "__support__/e2e/cypress_data";
......
......@@ -4,7 +4,7 @@ import {
openEmailPage,
sendSubscriptionsEmail,
visitDashboard,
} from "__support__/e2e/cypress";
} from "__support__/e2e/helpers";
import { USERS, SAMPLE_DB_ID } from "__support__/e2e/cypress_data";
import { SAMPLE_DATABASE } from "__support__/e2e/cypress_sample_database";
......
......@@ -4,7 +4,7 @@ import {
openEmailPage,
sendSubscriptionsEmail,
visitDashboard,
} from "__support__/e2e/cypress";
} from "__support__/e2e/helpers";
import { USERS, SAMPLE_DB_ID } from "__support__/e2e/cypress_data";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment