Remove hep id as default
This commit is contained in:
parent
e9713c736b
commit
c93d2f6843
|
|
@ -32,14 +32,14 @@ import '@iam4x/cypress-graphql-mock';
|
|||
|
||||
Cypress.Commands.add('apolloLogin', (username, password) => {
|
||||
const payload = {
|
||||
'operationName': 'Login',
|
||||
'operationName': 'LocalLogin',
|
||||
'variables': {
|
||||
'input': {
|
||||
'usernameInput': username,
|
||||
'passwordInput': password
|
||||
}
|
||||
},
|
||||
'query': 'mutation Login($input: LoginInput!) {\n login(input: $input) {\n success\n errors {\n field\n __typename\n }\n __typename\n }\n}\n'
|
||||
'query': 'mutation LocalLogin($input: LocalLoginInput!) {\n localLogin(input: $input) {\n success\n errors {\n field\n __typename\n }\n __typename\n }\n}\n'
|
||||
};
|
||||
|
||||
cy.request({
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ class UserFactory(factory.django.DjangoModelFactory):
|
|||
first_name = factory.LazyAttribute(lambda x: fake.first_name())
|
||||
last_name = factory.LazyAttribute(lambda x: fake.last_name())
|
||||
email = factory.LazyAttribute(lambda x: fake.ascii_safe_email())
|
||||
hep_id = factory.Sequence(lambda n: n)
|
||||
|
||||
@factory.post_generation
|
||||
def post(self, create, extracted, **kwargs):
|
||||
|
|
|
|||
Loading…
Reference in New Issue