Test stabilization: MX check for example.com mail address should be false but it true sometimes which causes test to be flanky.
This commit is contained in:
parent
4b2630e713
commit
8c1ae9fe9d
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ RSpec.describe 'Form', type: :request, searchindex: true do
|
||||||
expect(json_response['errors']['title']).to eq('required')
|
expect(json_response['errors']['title']).to eq('required')
|
||||||
expect(json_response['errors']['body']).to eq('required')
|
expect(json_response['errors']['body']).to eq('required')
|
||||||
|
|
||||||
post '/api/v1/form_submit', params: { fingerprint: fingerprint, token: token, name: 'Bob Smith', email: 'somebody@example.com', title: 'test', body: 'hello' }, as: :json
|
post '/api/v1/form_submit', params: { fingerprint: fingerprint, token: token, name: 'Bob Smith', email: 'somebody@somedomainthatisinvalid.com', title: 'test', body: 'hello' }, as: :json
|
||||||
expect(response).to have_http_status(200)
|
expect(response).to have_http_status(200)
|
||||||
expect(json_response).to be_a_kind_of(Hash)
|
expect(json_response).to be_a_kind_of(Hash)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue