feat(e2e): Add cypress globals to eslint overrides (#43234)
fix(docs): Remove cypress eslint note on e2e docs
This commit is contained in:
committed by
GitHub
parent
b3cae635e1
commit
e2d6639773
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const locations = {
|
||||
index:
|
||||
'learn/back-end-development-and-apis/managing-packages-with-npm/' +
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const selectors = {
|
||||
defaultOutput: '.output-text',
|
||||
editor: '.react-monaco-editor-container'
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const selectors = {
|
||||
defaultOutput: '.output-text',
|
||||
editor: '.monaco-editor',
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const projects = {
|
||||
superBlock: 'machine-learning-with-python',
|
||||
block: 'machine-learning-with-python-projects',
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
describe('Certification intro page', () => {
|
||||
before(() => {
|
||||
cy.clearCookies();
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const selectors = {
|
||||
footer: '.site-footer'
|
||||
};
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
describe('Help Button', () => {
|
||||
it('should be visible', () => {
|
||||
cy.visit(
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const selectors = {
|
||||
heading: "[data-test-label='landing-header']",
|
||||
smallCallToAction: "[data-test-label='landing-small-cta']",
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const search = query => {
|
||||
cy.get('.ais-SearchBox').within(() => {
|
||||
cy.get('input').type(query);
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const selectors = {
|
||||
donateSupport: {
|
||||
firstTitle: '.donate-support h4:first-of-type b',
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const selectors = {
|
||||
donateAlert: {
|
||||
firstText: '.alert-info p:first-child',
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
describe('Donate page', () => {
|
||||
before(() => {
|
||||
cy.clearCookies();
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
describe('Navigation links', () => {
|
||||
it('should render the expected forum and news links.', () => {
|
||||
cy.visit('/learn');
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const selectors = {
|
||||
challengeMap: "[data-test-label='learn-curriculum-map']"
|
||||
};
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const challengeUrl =
|
||||
'/learn/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements';
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const selectors = {
|
||||
tableOfContents: '.intro-toc',
|
||||
warningMessage: '.flash-message-enter-active'
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const projects = {
|
||||
superBlock: 'responsive-web-design',
|
||||
block: 'responsive-web-design-projects',
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* global cy */
|
||||
|
||||
const selectors = {
|
||||
firstBlock: '.block-ui > .block:nth-child(1) > .map-title'
|
||||
};
|
||||
|
Reference in New Issue
Block a user