task: update Airtable Cypress test as per the new sentence case (#23946)
## Description - As per the new ADS design changes, the labels and helper texts for SaaS plugins have been updated to follow the sentence case model from the current title case model. e.g `Auth Type` to `Auth type` . Hence, the Airtable test needs to be updated accordingly. Fixes #23832
This commit is contained in:
parent
9a8e82b794
commit
a579a00b3c
|
|
@ -18,7 +18,7 @@ describe("excludeForAirgap", "Validate Airtable Ds", () => {
|
||||||
_.dataSources.ValidateNSelectDropdown(
|
_.dataSources.ValidateNSelectDropdown(
|
||||||
"Commands",
|
"Commands",
|
||||||
"Please select an option",
|
"Please select an option",
|
||||||
"List Records",
|
"List records",
|
||||||
);
|
);
|
||||||
|
|
||||||
_.agHelper.EnterValue(datasourceFormData.AirtableBase, {
|
_.agHelper.EnterValue(datasourceFormData.AirtableBase, {
|
||||||
|
|
@ -29,7 +29,7 @@ describe("excludeForAirgap", "Validate Airtable Ds", () => {
|
||||||
_.agHelper.EnterValue(datasourceFormData.AirtableTable, {
|
_.agHelper.EnterValue(datasourceFormData.AirtableTable, {
|
||||||
propFieldName: "",
|
propFieldName: "",
|
||||||
directInput: false,
|
directInput: false,
|
||||||
inputFieldName: "Table Name",
|
inputFieldName: "Table name",
|
||||||
});
|
});
|
||||||
|
|
||||||
_.dataSources.RunQuery();
|
_.dataSources.RunQuery();
|
||||||
|
|
@ -70,12 +70,12 @@ describe("excludeForAirgap", "Validate Airtable Ds", () => {
|
||||||
_.agHelper.EnterValue("11", {
|
_.agHelper.EnterValue("11", {
|
||||||
propFieldName: "",
|
propFieldName: "",
|
||||||
directInput: false,
|
directInput: false,
|
||||||
inputFieldName: "Max Records",
|
inputFieldName: "Max records",
|
||||||
});
|
});
|
||||||
_.agHelper.EnterValue("", {
|
_.agHelper.EnterValue("", {
|
||||||
propFieldName: "",
|
propFieldName: "",
|
||||||
directInput: false,
|
directInput: false,
|
||||||
inputFieldName: "Page Size",
|
inputFieldName: "Page size",
|
||||||
});
|
});
|
||||||
_.dataSources.RunQuery();
|
_.dataSources.RunQuery();
|
||||||
cy.get("@postExecute").then((resObj: any) => {
|
cy.get("@postExecute").then((resObj: any) => {
|
||||||
|
|
@ -87,7 +87,7 @@ describe("excludeForAirgap", "Validate Airtable Ds", () => {
|
||||||
_.agHelper.EnterValue("6", {
|
_.agHelper.EnterValue("6", {
|
||||||
propFieldName: "",
|
propFieldName: "",
|
||||||
directInput: false,
|
directInput: false,
|
||||||
inputFieldName: "Page Size",
|
inputFieldName: "Page size",
|
||||||
});
|
});
|
||||||
_.dataSources.RunQuery();
|
_.dataSources.RunQuery();
|
||||||
cy.get("@postExecute").then((resObj: any) => {
|
cy.get("@postExecute").then((resObj: any) => {
|
||||||
|
|
@ -119,7 +119,7 @@ describe("excludeForAirgap", "Validate Airtable Ds", () => {
|
||||||
_.agHelper.EnterValue('NOT({Taxa} = "Rodent")', {
|
_.agHelper.EnterValue('NOT({Taxa} = "Rodent")', {
|
||||||
propFieldName: "",
|
propFieldName: "",
|
||||||
directInput: false,
|
directInput: false,
|
||||||
inputFieldName: "Filter by Formula",
|
inputFieldName: "Filter by formula",
|
||||||
});
|
});
|
||||||
_.dataSources.RunQuery();
|
_.dataSources.RunQuery();
|
||||||
|
|
||||||
|
|
@ -137,17 +137,17 @@ describe("excludeForAirgap", "Validate Airtable Ds", () => {
|
||||||
_.agHelper.EnterValue("", {
|
_.agHelper.EnterValue("", {
|
||||||
propFieldName: "",
|
propFieldName: "",
|
||||||
directInput: false,
|
directInput: false,
|
||||||
inputFieldName: "Page Size",
|
inputFieldName: "Page size",
|
||||||
}); //Removing Page Size
|
}); //Removing Page Size
|
||||||
_.agHelper.EnterValue("", {
|
_.agHelper.EnterValue("", {
|
||||||
propFieldName: "",
|
propFieldName: "",
|
||||||
directInput: false,
|
directInput: false,
|
||||||
inputFieldName: "Filter by Formula",
|
inputFieldName: "Filter by formula",
|
||||||
}); //Removing Filter by Formula
|
}); //Removing Filter by Formula
|
||||||
_.agHelper.EnterValue("10", {
|
_.agHelper.EnterValue("10", {
|
||||||
propFieldName: "",
|
propFieldName: "",
|
||||||
directInput: false,
|
directInput: false,
|
||||||
inputFieldName: "Max Records",
|
inputFieldName: "Max records",
|
||||||
});
|
});
|
||||||
_.agHelper.EnterValue("sort%5B0%5D%5Bfield%5D=Species_ID", {
|
_.agHelper.EnterValue("sort%5B0%5D%5Bfield%5D=Species_ID", {
|
||||||
propFieldName: "",
|
propFieldName: "",
|
||||||
|
|
@ -256,8 +256,8 @@ describe("excludeForAirgap", "Validate Airtable Ds", () => {
|
||||||
//Create
|
//Create
|
||||||
_.dataSources.ValidateNSelectDropdown(
|
_.dataSources.ValidateNSelectDropdown(
|
||||||
"Commands",
|
"Commands",
|
||||||
"List Records",
|
"List records",
|
||||||
"Create Records",
|
"Create records",
|
||||||
);
|
);
|
||||||
_.agHelper.EnterValue(createReq, {
|
_.agHelper.EnterValue(createReq, {
|
||||||
propFieldName: "",
|
propFieldName: "",
|
||||||
|
|
@ -277,8 +277,8 @@ describe("excludeForAirgap", "Validate Airtable Ds", () => {
|
||||||
insertedRecordId = jsonSpecies.records[0].id;
|
insertedRecordId = jsonSpecies.records[0].id;
|
||||||
_.dataSources.ValidateNSelectDropdown(
|
_.dataSources.ValidateNSelectDropdown(
|
||||||
"Commands",
|
"Commands",
|
||||||
"Create Records",
|
"Create records",
|
||||||
"Retrieve A Record",
|
"Retrieve a record",
|
||||||
);
|
);
|
||||||
_.agHelper.EnterValue(insertedRecordId, {
|
_.agHelper.EnterValue(insertedRecordId, {
|
||||||
propFieldName: "",
|
propFieldName: "",
|
||||||
|
|
@ -304,8 +304,8 @@ describe("excludeForAirgap", "Validate Airtable Ds", () => {
|
||||||
//Update Records
|
//Update Records
|
||||||
_.dataSources.ValidateNSelectDropdown(
|
_.dataSources.ValidateNSelectDropdown(
|
||||||
"Commands",
|
"Commands",
|
||||||
"Retrieve A Record",
|
"Retrieve a record",
|
||||||
"Update Records",
|
"Update records",
|
||||||
);
|
);
|
||||||
_.agHelper.EnterValue(
|
_.agHelper.EnterValue(
|
||||||
`[{ "id" : ${insertedRecordId},
|
`[{ "id" : ${insertedRecordId},
|
||||||
|
|
@ -341,8 +341,8 @@ describe("excludeForAirgap", "Validate Airtable Ds", () => {
|
||||||
//insertedRecordId = jsonSpecies.id;
|
//insertedRecordId = jsonSpecies.id;
|
||||||
_.dataSources.ValidateNSelectDropdown(
|
_.dataSources.ValidateNSelectDropdown(
|
||||||
"Commands",
|
"Commands",
|
||||||
"Update Records",
|
"Update records",
|
||||||
"Delete A Record",
|
"Delete a record",
|
||||||
);
|
);
|
||||||
|
|
||||||
_.dataSources.RunQuery();
|
_.dataSources.RunQuery();
|
||||||
|
|
|
||||||
|
|
@ -494,12 +494,12 @@ export class DataSources {
|
||||||
|
|
||||||
public FillAirtableDSForm() {
|
public FillAirtableDSForm() {
|
||||||
this.ValidateNSelectDropdown(
|
this.ValidateNSelectDropdown(
|
||||||
"Authentication Type",
|
"Authentication type",
|
||||||
"Please select an option",
|
"Please select an option",
|
||||||
"Bearer Token",
|
"Bearer token",
|
||||||
);
|
);
|
||||||
this.agHelper.UpdateInput(
|
this.agHelper.UpdateInput(
|
||||||
this.locator._inputFieldByName("Bearer Token"),
|
this.locator._inputFieldByName("Bearer token"),
|
||||||
Cypress.env("AIRTABLE_BEARER"),
|
Cypress.env("AIRTABLE_BEARER"),
|
||||||
);
|
);
|
||||||
this.agHelper.Sleep();
|
this.agHelper.Sleep();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user