You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
663 B
JavaScript

/* global cy Cypress */
7 years ago
import { editorVisible } from '../support'
7 years ago
describe('Gist', () => {
const test = Cypress.env('CI') ? it.skip : it
test('Should pull text from the first Gist file', () => {
7 years ago
cy.visit('/3208813b324d82a9ebd197e4b1c3bae8')
editorVisible()
cy.contains('Y-Combinator implemented in JavaScript')
cy.get('#downshift-input-JavaScript').should('have.value', 'JavaScript')
7 years ago
})
const pages = ['/', '/embed/', '/82d742f4efad9757cc826d20f2a5e5af']
pages.forEach(page => {
test(`${page} should not contain a query string in the url`, () => {
cy.visit(page)
cy.url().should('not.contain', '?')
})
})
7 years ago
})