Skip to content

Instantly share code, notes, and snippets.

View NilukaSripalim's full-sized avatar
🏢
Working From Office

Niluka Sripali Monnankulama NilukaSripalim

🏢
Working From Office
View GitHub Profile
/// <reference types="cypress" />
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************
public static void assertResponseCodeIs
( final HttpResponse response, final int expectedCode ){
final int statusCode = httpResponse.getStatusLine().getStatusCode();
assertEquals( expectedCode, statusCode );
}