parent
ed8a2f5a1d
commit
c43ec344fd
@ -1,21 +1,19 @@
|
||||
const path = require('path')
|
||||
const root = 'http://localhost:8080'
|
||||
const path = require('path');
|
||||
const root = 'http://localhost:8080';
|
||||
|
||||
describe('nginx.config.io', function () {
|
||||
describe('nginxconfig.io', function () {
|
||||
|
||||
beforeEach(function () {
|
||||
cy.visit(root)
|
||||
})
|
||||
cy.visit(root);
|
||||
});
|
||||
|
||||
it('<title> is correct', function () {
|
||||
// https://on.cypress.io/visit
|
||||
cy.title().should('include', 'nginxconfig.io')
|
||||
})
|
||||
cy.title().should('include', 'nginxconfig.io');
|
||||
});
|
||||
|
||||
it('should use passed params', function () {
|
||||
cy.visit(root + '?domain=mydomain.fr')
|
||||
cy.get('input.domain').should('have.value', 'mydomain.fr')
|
||||
cy.get('#file-nginx').contains('server_name mydomain.fr;')
|
||||
})
|
||||
|
||||
})
|
||||
cy.visit(root + '?domain=nginxconfig.io');
|
||||
cy.get('input.domain').should('have.value', 'nginxconfig.io');
|
||||
cy.get('#file-nginx').contains('server_name nginxconfig.io;');
|
||||
});
|
||||
});
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue