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.
nginxconfig.io/cypress/integration/nginxconfig_spec.js

26 lines
729 B

const path = require('path');
const root = 'http://localhost:8080';
describe('nginxconfig.io', function () {
beforeEach(function () {
cy.visit(root);
});
it('<title> is correct', function () {
cy.title().should('include', 'nginxconfig.io');
});
it('should use passed params', function () {
cy.visit(root + '?0.domain=nginxconfig.io');
cy.get('input.domain').should('have.value', 'nginxconfig.io');
cy.get('#file-domain-0').contains('server_name nginxconfig.io;');
});
it('should use legacy passed params', function () {
cy.visit(root + '?domain=nginxconfig.io');
cy.get('input.domain').should('have.value', 'nginxconfig.io');
cy.get('#file-domain-0').contains('server_name nginxconfig.io;');
});
});