changed fixture to have multiple users and let code it up one
This commit is contained in:
@@ -98,16 +98,15 @@ describe('As a visitor, I can only create an account the right way.', function (
|
||||
})
|
||||
});
|
||||
|
||||
describe("As a user, I can only log in and out the right way", function () {
|
||||
describe.only("As a user, I can only log in and out the right way", function () {
|
||||
|
||||
before(function () {
|
||||
//cy.server();
|
||||
cy.fixture("userMutoid.json").as("Mutoid").then(() => {
|
||||
expect(this.Mutoid.email).to.exist;
|
||||
expect(this.Mutoid.password).to.exist;
|
||||
Mutoid = this.Mutoid;
|
||||
cy.fixture("users.json").as("users").then((users) => {
|
||||
Mutoid = users["Mutoid"];
|
||||
expect(Mutoid.email).to.exist;
|
||||
expect(Mutoid.password).to.exist;
|
||||
expect(Mutoid.type).eq("user");
|
||||
});
|
||||
//cy.route('GET', '/mutoid', 'fx:userMutoid').as("Mutoid");
|
||||
})
|
||||
|
||||
beforeEach(function () {
|
||||
|
Reference in New Issue
Block a user