Commit code with double quotes instead of single quotes

This commit is contained in:
Dmitry Yankowski
2020-02-24 21:06:23 -05:00
parent 3bd7c00038
commit 48100ead55
74 changed files with 3184 additions and 3184 deletions

View File

@@ -1,34 +1,34 @@
describe('Authentication', () => {
describe("Authentication", () => {
it(`Change default auth user and pass with url`, () => {
cy.visit(`?&auth=Basic Auth&httpUser=foo&httpPassword=bar`, { retryOnStatusCodeFailure: true })
.get('input[name="http_basic_user"]', { timeout: 500 })
.invoke('val')
.invoke("val")
.then(user => {
expect(user === 'foo').to.equal(true)
expect(user === "foo").to.equal(true)
})
.get('input[name="http_basic_passwd"]')
.invoke('val')
.invoke("val")
.then(pass => {
expect(pass === 'bar').to.equal(true)
expect(pass === "bar").to.equal(true)
})
})
it('Enable user and pass at url with toggler', () => {
cy.visit('/', { retryOnStatusCodeFailure: true })
.get('#auth')
.select('Basic Auth')
it("Enable user and pass at url with toggler", () => {
cy.visit("/", { retryOnStatusCodeFailure: true })
.get("#auth")
.select("Basic Auth")
.get('input[name="http_basic_user"]', { timeout: 500 })
.type('foo')
.type("foo")
.get('input[name="http_basic_passwd"]', { timeout: 500 })
.type('bar')
.type("bar")
.url()
.should('not.contain', 'foo')
.should('not.contain', 'bar')
.get('.toggle')
.should("not.contain", "foo")
.should("not.contain", "bar")
.get(".toggle")
.click()
.url()
.should('contain', 'foo')
.should('contain', 'bar')
.should("contain", "foo")
.should("contain", "bar")
})
})